-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
46 lines (46 loc) · 1.27 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
module.exports = {
extends: [
'erb',
'plugin:prettier/recommended',
'plugin:@typescript-eslint/recommended',
],
plugins: ['import'],
settings: {
'import/resolver': {
typescript: {},
},
},
rules: {
// A temporary hack related to IDE not resolving correct package.json
'import/no-extraneous-dependencies': 'off',
'jsx-a11y/label-has-associated-control': [
'error',
{
required: {
some: ['nesting', 'id'],
},
},
],
'global-require': 'off',
'no-restricted-syntax': [
'error',
'ForInStatement',
'LabeledStatement',
'WithStatement',
],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'react/jsx-props-no-spreading': 'off',
'react/require-default-props': 'off',
'class-methods-use-this': 'off',
'react/prop-types': 'off',
'no-await-in-loop': 'off',
curly: 'error',
},
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
tsconfigRootDir: __dirname,
createDefaultProgram: true,
},
};