This repository was archived by the owner on Nov 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc.js
More file actions
69 lines (69 loc) · 1.78 KB
/
.eslintrc.js
File metadata and controls
69 lines (69 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'prettier',
'plugin:jsx-a11y/recommended',
],
rules: {
indent: 'off',
'linebreak-style': 0,
quotes: 'off',
semi: ['error', 'always'],
'no-console': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'no-mixed-operators': 'off',
strict: 0,
'react/prop-types': 0,
'function-paren-newline': 'off',
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'ignore',
},
],
'no-unexpected-multiline': ['off'],
'no-spaced-func': ['off'],
'import/prefer-default-export': ['off'],
'no-underscore-dangle': 'off',
// We disable max length, makes no sense when using prettier
'max-len': 'off',
'import-helpers/order-imports': [
'warn',
{
newlinesBetween: 'always', // new line between groups
groups: ['module', '/^@/', ['parent', 'sibling', 'index']],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/ban-ts-comment': [
'warn',
{
'ts-ignore': 'allow-with-description',
},
],
'react/react-in-jsx-scope': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
},
settings: {
'html/html-extensions': ['.html'],
react: {
version: 'detect',
},
},
plugins: ['eslint-plugin-import-helpers'],
};