forked from opencast/opencast-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (43 loc) · 1.24 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
module.exports = {
extends: [
"@opencast/eslint-config-ts-react",
"react-app/jest"
],
rules: {
// Semicolon usage is inconsistent right now. Both, "always" and "never",
// result in a significant number of warnings.
"semi": "off",
// Both kinds of quotes are used a lot
"quotes": "off",
// "always" gives 319 warning, "never" gives 991.
"object-curly-spacing": "off",
// Many multiline lists do not have a trailing comma right now
"comma-dangle": ["warn", "only-multiline"],
// Currently there are quite a lot of lines longer than 120 chars (85 ones).
// And 34 even longer than 140 chars.
"max-len": "off",
// Currently 120 warnings.
"@typescript-eslint/no-explicit-any": "off",
// `else` in new line is used often, and often an `if` condition is on the
// same line as `{`.
"brace-style": "off",
// A few of those are used.
"@typescript-eslint/no-non-null-assertion": "off",
// Until we figure out how to get to React 18
"react/no-deprecated": "off",
},
overrides: [
{
files: ["./*.js"],
env: {
node: true,
},
},
{
files: ["./*.ts", "tests/**"],
parserOptions: {
project: false,
},
},
],
};