-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.63 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
module.exports = {
"ignorePatterns": ["dist/**/*"],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
plugins: ['prefer-arrow'],
settings: {
react: {
version: '18.2.0'
}
},
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:react-hooks/recommended'
],
rules: {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
'prettier/prettier': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'off', // explicit return type on react functions should be disabled
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-expect-error': 'allow-with-description',
'ts-ignore': 'allow-with-description',
'ts-nocheck': 'allow-with-description',
'ts-check': 'allow-with-description'
}
],
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-var-requires': 'warn',
'prefer-arrow/prefer-arrow-functions': [
'error',
{
disallowPrototype: true,
singleReturnOnly: false,
classPropertiesAllowed: false,
}
],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "multiline-block-like", "next": "*" }
]
}
};