-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
executable file
·38 lines (38 loc) · 913 Bytes
/
.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
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'react-app',
'plugin:prettier/recommended',
],
overrides: [
{
files: ['**/*.js', '**/*.ts', '**/*.tsx'],
excludedFiles: [
'config/**/*.js',
'node_modules/**/*.ts',
'coverage/lcov-report/*.js',
],
},
],
plugins: ['@typescript-eslint', 'react'],
rules: {
'interface-name': 2,
'no-angle-bracket-type-assertion': 2,
'no-empty': 0,
'no-unused-vars': false,
'object-literal-sort-keys': false,
'react-hooks-nesting': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'jsx-boolean-value': [true, 'never'],
'trailing-comma': [
true,
{
multiline: 'always',
singleline: 'never',
esSpecCompliant: true,
},
],
},
};