-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.3 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
],
rules: {
'react-hooks/rules-of-hooks': 'off',
'react/react-in-jsx-scope': 'off',
'react/display-name': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'quotes': ['error', 'single', { 'allowTemplateLiterals': true }],
'semi': ['error', 'never'],
'react/prop-types': 'off',
'eol-last': ['error', 'always'],
'eqeqeq': ['error'],
'@typescript-eslint/no-this-alias': [
'error',
{
'allowDestructuring': true, // Allow `const { props, state } = this`; false by default
'allowedNames': ['self', 'node'] // Allow `const self = this`; `[]` by default
}
],
'@typescript-eslint/no-empty-function': [
'error',
{
'allow': [
'private-constructors',
'protected-constructors',
'methods',
'asyncMethods',
'arrowFunctions'
]
}
],
'@typescript-eslint/no-unused-vars': ["error", { "argsIgnorePattern": "^_" }],
},
settings: {
react: {
version: 'detect'
}
}
}