-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
123 lines (122 loc) · 3.61 KB
/
.eslintrc
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
//"plugin:react/recommended",
//"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2021,
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [/*"react",*/ "@typescript-eslint", "jest"],
"settings": {
"react": {
"version": "detect"
}
},
"ignorePatterns": ["dist/**/*.js"],
"rules": {
"semi": "off",
"no-unused-vars": "off",
"no-undef": "error",
"no-empty-pattern": "warn",
"react/prop-types": "warn",
"promise/no-floating-promises": "warn",
"@typescript-eslint/await-thenable": "warn",
// "no-console": ["warn", { "allow": ["info", "warn", "error"] }],
"no-plusplus": 0,
// "prefer-destructuring": ["warn", { "object": true, "array": false }],
"no-underscore-dangle": 0,
"no-alert": 0,
"prefer-destructuring": 0,
"react/no-danger": 0,
// Start temporary rules
// These rules are here just to keep the lint error to 0 during the migration to the new rule set
// They need to be removed and fixed as soon as possible
"@typescript-eslint/ban-ts-comment": [1, { "ts-ignore": false, "ts-nocheck": false }],
"@typescript-eslint/no-use-before-define": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-extra-semi": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-this-alias": 0,
"no-cond-assign": 0,
"func-names": 0,
"no-func-assign": 0,
"no-console": 0,
"import/order": 0,
"max-len": 0,
"max-lines": 0,
"react/display-name": 0,
"quotes": 0,
"radix": 0,
"import/no-extraneous-dependencies": 0,
"jsx-a11y/media-has-caption": 0,
"import/no-unresolved": 0,
"react/no-unescaped-entities": 0,
"react/self-closing-comp": 0,
"react/no-array-index-key": 0,
"interactions": 0,
"import/no-duplicates": 0,
"no-param-reassign": 0,
"no-multi-assign": 0,
"jsx-a11y/no-static-element-interactions": 0,
"jsx-a11y/no-noninteractive-tabindex": 0,
"no-unused-expressions": 0,
"jsx-a11y/click-events-have-key-events": 0,
"import/no-useless-path-segments": 0,
"prefer-template": 0,
"guard-for-in": 0,
"no-restricted-syntax": 0,
"react/button-has-type": 0,
"import/extensions": 0,
"react/jsx-curly-brace-presence": 0,
"spaced-comment": 0,
"no-debugger": 0,
"consistent-return": 0,
"no-continue": 0,
"import/prefer-default-export": 0,
"dot-notation": 0,
"no-await-in-loop": 0,
"no-nested-ternary": 0,
"no-unneeded-ternary": 0,
"react/require-default-props": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"jsx-a11y/alt-text": 0,
"react/destructuring-assignment": 0,
"no-irregular-whitespace": 0,
"jsx-a11y/no-redundant-roles": 0,
"max-classes-per-file": 0,
"class-methods-use-this": 0,
"default-case": 0,
"no-case-declarations": 0,
"react/jsx-no-bind": 0,
"import/no-named-as-default": 0,
"jsx-a11y/anchor-is-valid": 0,
"jsx-a11y/anchor-has-content": 0,
"react/no-unknown-property": 0
// End temporary rules
},
"overrides": [
{
"files": ["*.ts", "*.tsx"]
}
]
}