-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
67 lines (64 loc) · 1.68 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
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended", "prettier", "react"],
"plugins": ["@typescript-eslint", "prettier", "react"],
"parserOptions": {
"ecmaVersion": 2019,
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"jsx": true
},
"settings": {
"react": {
"pragma": "h",
"version": "16.12.0"
}
},
"env": {
"node": true,
"es6": true,
"browser": true,
"jest": true
},
"rules": {
"indent": [2, 2, { "SwitchCase": 1 }],
"semi": "off",
"comma-dangle": ["error", "only-multiline"],
"no-use-before-define": "off",
"camelcase": "off",
"operator-linebreak": "off",
"space-before-function-paren": "off",
"react/react-in-jsx-scope": "off",
"react/display-name": "off",
"react/jsx-no-bind": "off",
"react/jsx-tag-spacing": [2, { "beforeSelfClosing": "always" }],
"react/jsx-uses-react": 2,
"react/prefer-stateless-function": 1,
"react/require-render-return": 2,
"react/self-closing-comp": 2,
"react/no-unknown-property": [2, { "ignore": ["class"] }],
"react/sort-comp": [
1,
{
"order": [
"properties",
"static-methods",
"everything-else",
"lifecycle",
"rendering"
],
"groups": {
"properties": ["state"],
"rendering": ["/^render.+$/", "render"]
}
}
],
"prettier/prettier": "warn",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/member-delimiter-style": "off"
}
}