-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
60 lines (53 loc) · 1.5 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 = {
extends: ['erb'],
rules: {
'import/no-unresolved': 2,
// disable rules
'no-console': 0,
'no-param-reassign': 0,
'no-empty': 0,
'default-case': 0,
'global-require': 0,
'consistent-return': 0,
'promise/always-return': 0,
'promise/no-callback-in-promise': 0,
'import/no-cycle': 0,
'import/order': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'react/react-in-jsx-scope': 0,
'react/jsx-props-no-spreading': 0,
'react/require-default-props': 0,
'react/no-unescaped-entities': 0,
'react-hooks/exhaustive-deps': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-unused-expressions': 0,
'@typescript-eslint/no-non-null-assertion': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-shadow': 0,
'@typescript-eslint/naming-convention': 0,
'jest/no-deprecated-functions': 0
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true
},
settings: {
'import/resolver': {
node: {},
webpack: {
config: require.resolve('./.erb/configs/webpack.config.eslint.ts')
},
typescript: {}
},
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx']
}
},
ignorePatterns: ['.eslintrc.js']
};