-
Notifications
You must be signed in to change notification settings - Fork 31
/
.eslintrc.js
60 lines (60 loc) · 1.64 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
module.exports = {
root: true,
env: {
browser: true,
es6: true,
},
globals: {
window: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
parser: '@babel/eslint-parser',
ecmaVersion: 6,
sourceType: 'module',
},
extends: [
'airbnb',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
],
settings: {
'import/resolver': {
node: {
paths: ['.', 'src'],
extensions: ['.js', '.ts'],
},
},
},
plugins: ['prettier', 'react', 'jsx-a11y', 'react-hooks', '@typescript-eslint'],
rules: {
'import/extensions': 'off',
'import/prefer-default-export': 'off',
'import/no-webpack-loader-syntax': 'off',
'import/no-unresolved': 'off',
'import/no-extraneous-dependencies': 'off',
'no-use-before-define': 'off',
'no-console': 'off',
'no-extend-native': 'off',
'no-param-reassign': 'off',
'class-methods-use-this': 'off',
'node/no-unpublished-require': 'off',
'node/no-missing-import': 'off',
'node/no-unpublished-import': 'off',
'dot-notation': ['error', { allowKeywords: true }],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'func-names': 'off',
'no-underscore-dangle': 'off',
camelcase: 'warn',
'no-plusplus': 'off',
'no-nested-ternary': 'off',
'@typescript-eslint/ban-types': 'warn',
'no-unused-expressions': 'off',
},
};