-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
32 lines (32 loc) · 805 Bytes
/
Copy path.eslintrc.cjs
File metadata and controls
32 lines (32 loc) · 805 Bytes
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
module.exports = {
extends: ['react-app', 'plugin:jsx-a11y/recommended'],
parserOptions: {
project: 'tsconfig.eslint.json',
},
plugins: ['jsx-a11y'],
rules: {
'react/jsx-key': 'warn',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/prefer-optional-chain': 'warn',
'@typescript-eslint/naming-convention': [
'warn',
{
selector: ['variable'],
modifiers: ['const', 'global'],
format: ['UPPER_CASE'],
},
{
selector: ['variable'],
modifiers: ['const', 'exported'],
format: null,
},
{
selector: ['variable'],
modifiers: ['const'],
types: ['function'],
format: null,
},
],
'@typescript-eslint/no-unnecessary-condition': 'warn',
},
}