-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
64 lines (64 loc) · 1.89 KB
/
Copy path.eslintrc.js
File metadata and controls
64 lines (64 loc) · 1.89 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
module.exports = {
extends: 'erb',
rules: {
'import/no-extraneous-dependencies': 'off',
'import/no-unresolved': 'error',
'import/prefer-default-export': 'off',
'react/require-default-props': 'off',
'no-unused-vars': 'off',
'no-plusplus': 'off',
'no-prototype-builtins': 'off',
'prefer-destructuring': 'off',
'jsx-a11y/interactive-supports-focus': 'off',
'consistent-return': 'off',
'react/no-danger': 'off',
'no-restricted-syntax': 'off',
'default-param-last': 'off',
'no-param-reassign': 'off',
'no-nested-ternary': 'off',
'no-new': 'off',
'import/no-relative-packages': 'off',
'no-bitwise': 'off',
'react/no-array-index-key': 'off',
'react/react-in-jsx-scope': 'off',
'react/function-component-definition': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-filename-extension': [
2,
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] },
],
'import/extensions': [
'error',
'ignorePackages',
{
'': 'never',
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
mjs: 'never',
},
],
},
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'],
},
},
};