-
Notifications
You must be signed in to change notification settings - Fork 92
/
.eslintrc
62 lines (62 loc) · 1.58 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["react", "@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true
}
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es6": true
},
"rules": {
"space-before-function-paren": "off",
"react/prefer-stateless-function": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-filename-extension": [1, { "extensions": [".ts", ".tsx"] }],
"linebreak-style": "off",
"global-require": "off",
"arrow-body-style": "off",
"no-multiple-empty-lines": ["warn", { "max": 1 }],
"max-len": 0,
"comma-dangle": 0,
"semi": ["error", "always"],
"no-extra-semi": "error",
"indent": ["warn", "tab", { "SwitchCase": 1 }],
"no-debugger": 0,
"no-console": [
"warn",
{
"allow": ["debug"]
}
],
"new-cap": 0,
"strict": 2,
"prefer-rest-params": 0,
"no-unused-vars": 0,
"no-self-assign": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-extra-boolean-cast": 0,
"eol-last": 2,
"quotes": [1, "single"],
"jsx-quotes": [1, "prefer-double"],
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/prop-types": 0,
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": 1
}
}