-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
75 lines (75 loc) · 1.93 KB
/
.eslintrc.js
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
70
71
72
73
74
75
module.exports = {
env: {
browser: true,
es6: true,
},
extends: [
'airbnb',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
tsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
'import',
'import-helpers',
'react-hooks',
'prettier',
],
rules: {
'prettier/prettier': 'error',
'class-methods-use-this': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'import-helpers/order-imports': [
'warn',
{
newlinesBetween: 'always',
groups: [
'/^react/',
'module',
'/\/assets/',
'/\/styles/',
['parent', 'sibling', 'index'],
],
alphabetize: { order: 'asc', ignoreCase: true },
},
],
'linebreak-style': 'off',
'comma-spacing': 2,
'no-multiple-empty-lines': [2, { max: 1 }],
'no-trailing-spaces': 2,
'import/extensions': 'off',
'import/no-unresolved': 'off',
camelcase: 'off',
'object-curly-newline': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-indent': 'off',
'max-len': 'off',
'react/jsx-indent-props': 'off',
'react/jsx-one-expression-per-line': 'off',
'import/prefer-default-export': 'off',
'react/react-in-jsx-scope': 'off',
'lines-between-class-members': 'off',
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/anchor-is-valid': 'off',
'react/prop-types': 'off',
'no-restricted-syntax': 'off'
},
};