-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
45 lines (42 loc) · 1.16 KB
/
index.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
module.exports = {
extends: ['airbnb', 'airbnb/hooks', 'plugin:@typescript-eslint/recommended', 'prettier', 'prettier/prettier'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
env: {
es6: true,
},
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/{spec,test}/**',
'**/__tests__/**',
'**/__mocks__/**',
'**/*_spec.{js,jsx,ts,tsx}',
'**/*.{spec,test}.{js,jsx,ts,tsx}',
'**/webpack.config.js',
],
optionalDependencies: false,
},
],
// rule deprecated in favor of jsx-a11y/label-has-associated-control
'jsx-a11y/label-has-for': 'off',
'jsx-a11y/label-has-associated-control': [
'error',
{
assert: 'either',
},
],
'no-restricted-syntax': 'off',
'react/destructuring-assignment': 'off',
'react/function-component-definition': 'off',
// There are plenty of reasons to not use full deps so we go with the plugin-recommended value here
'react-hooks/exhaustive-deps': 'warn',
},
settings: {
react: {
version: 'detect',
},
},
};