-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
63 lines (63 loc) · 1.76 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
{
"plugins": [
"@typescript-eslint",
"react"
],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2019,
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect",
"createClass": "createReactClass",
"pragma": "React",
"fragment": "Fragment"
},
"propWrapperFunctions": [
"forbidExtraProps",
{"property": "freeze", "object": "Object"},
{"property": "myFavoriteWrapper"}
],
"linkComponents": [
"Hyperlink",
{"name": "Link", "linkAttribute": "to"}
]
},
"rules": {
"semi": ["warn","never"],
"quotes": ["warn", "single"],
"semi-spacing": "warn",
"no-var": "off",
"no-console": "warn",
"object-curly-spacing": "warn",
"object-shorthand": "warn",
"react/jsx-first-prop-new-line": "off",
// "react/jsx-prop-new-line": "warn", //BUGGY. Definition for rule 'react/jsx-prop-new-line' was not found
"react/jsx-max-props-per-line": ["warn", {"maximum": 1}],
"react/jsx-closing-bracket-location": ["warn", "line-aligned"],
"react/jsx-uses-react": "warn",
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-indent-props": ["warn", "first"],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/prefer-as-const": "off",
"@typescript-eslint/indent": ["warn", 4, { "ignoredNodes": ["JSXAttribute", "JSXSpreadAttribute"]}]
}
}