-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
72 lines (70 loc) · 1.81 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:sonarjs/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"react",
"react-class-naming",
"filenames",
"only-warn",
"sonarjs"
],
"rules": {
"no-console": ["warn"],
"react-class-naming/react-classnaming-convention": ["warn"],
"linebreak-style": 0,
"@typescript-eslint/indent": 0,
"prefer-const": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-empty-function": "warn",
"react/prop-types": "off",
"react/boolean-prop-naming": [
"warn",
{ "rule": "^is[A-Z]([A-Za-z0-9]?)+" }
],
"react/destructuring-assignment": ["warn"],
"react/function-component-definition": [
"error",
{
"namedComponents": "arrow-function"
}
],
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["UPPER_CASE"]
}
],
"react/no-children-prop": ["error"],
"react/no-typos": ["error"],
"filenames/match-exported": ["error"]
},
"ignorePatterns": "[Components/Timeline/TimeSeries/js/*.js, Components/Timeline/TimeSeries/components/*.js]",
"globals": {
"React": true,
"JSX": true
}
}