-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
79 lines (79 loc) Β· 1.96 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
module.exports = {
extends: [
'react-app',
'prettier',
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'airbnb-typescript',
],
plugins: ['prettier', 'jest', 'cypress', '@typescript-eslint'],
// parser: 'babel-eslint',
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
env: {
browser: true,
'cypress/globals': true,
es6: true,
'jest/globals': true,
},
settings: {
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': 'warn',
'adjacent-overload-signatures': true,
'ban-comma-operator': true,
'no-namespace': true,
'no-parameter-reassignment': true,
'no-reference': true,
'no-unnecessary-type-assertion': true,
'label-position': true,
'no-conditional-assignment': true,
'no-construct': true,
'no-duplicate-super': true,
'no-duplicate-switch-case': true,
'no-duplicate-variable': [true, 'check-parameters'],
'no-shadowed-variable': true,
'no-empty': [true, 'allow-empty-catch'],
'no-floating-promises': true,
'no-implicit-dependencies': true,
'no-invalid-this': true,
'no-string-throw': true,
'no-unsafe-finally': true,
'no-void-expression': [true, 'ignore-arrow-function-shorthand'],
'no-duplicate-imports': true,
// Warn when an empty interface is defined. These are generally not useful.
'no-empty-interface': {
severity: 'warning',
},
'no-import-side-effect': {
severity: 'warning',
},
'no-var-keyword': {
severity: 'warning',
},
'triple-equals': {
severity: 'warning',
},
deprecation: {
severity: 'warning',
},
'prefer-for-of': {
severity: 'warning',
},
'unified-signatures': {
severity: 'warning',
},
'prefer-const': {
severity: 'warning',
},
'trailing-comma': {
severity: 'warning',
},
},
};