-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
65 lines (64 loc) · 1.94 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
extends: [
'airbnb',
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended'
],
plugins: ['simple-import-sort'],
rules: {
// Customize rules or add on top of presets
'max-len': [
'error',
{ 'code': 120, 'ignoreComments': true, 'ignoreStrings': true, 'ignoreTemplateLiterals': true },
],
'@typescript-eslint/consistent-type-imports': 'error',
'simple-import-sort/imports': ['error', {
'groups': [
['^', '^\\.', '\\.s?css$']
]
}],
'no-restricted-exports': ['error', {
'restrictDefaultExports': {
'direct': true,
'named': true,
'defaultFrom': true,
'namedFrom': true,
'namespaceFrom': true
}
}],
// Disabled rules from presets
'object-curly-newline': 'off',
'implicit-arrow-linebreak': 'off',
'no-restricted-globals': 'off',
'default-case': 'off',
'import/no-cycle': 'off',
'import/prefer-default-export': 'off',
'import/no-extraneous-dependencies': 'off',
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'react/no-unused-prop-types': 'off',
'react/function-component-definition': 'off',
'react/no-array-index-key': 'off',
'react/no-unstable-nested-components': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/jsx-props-no-spreading': 'off',
'react/jsx-no-useless-fragment': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/lines-between-class-members': 'off'
},
overrides: [
{
files: ['*.test.*', '*.spec.*'],
rules: {
'prefer-promise-reject-errors': 'off',
'no-param-reassign': 'off',
'react/no-children-prop': 'off',
'@typescript-eslint/no-shadow': 'off'
}
}
]
};