-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
95 lines (95 loc) · 2.89 KB
/
.eslintrc.json
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"rules": {
"linebreak-style": "off",
"padded-blocks": "off",
"lines-between-class-members": "off",
"object-curly-newline": "off",
"arrow-body-style": "off",
"no-continue": "off",
"no-param-reassign": "off",
"no-useless-constructor": "off",
"class-methods-use-this": "off",
"no-multi-str": "off",
"vars-on-top": "off",
"no-await-in-loop": "off",
"radix": 0,
"no-plusplus": "off",
"no-bitwise": "off",
"no-undef": [ "error" ],
"prefer-destructuring": [ "error", { "array": false, "object": false }, { "enforceForRenamedProperties": false } ],
"max-len": [ "error", { "code": 1000 } ],
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"semi": "off",
"no-unused-vars": "off",
"no-console": [ "warn", { "allow": [ "log", "warn", "error" ] } ],
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"no-fallthrough": "warn",
"quotes": [ "warn", "single" ],
"one-var": "off",
"one-var-declaration-per-line": "off",
"nonblock-statement-body-position": "off",
"no-extend-native": "off",
"import/no-extraneous-dependencies": "off",
"import/no-useless-path-segments": "off",
"prefer-rest-params": "off",
"no-use-before-define": "off",
"quote-props": "off",
"import/order": "off",
"arrow-parens": [2, "always"],
"no-multi-assign": "off",
"dot-notation": "off",
"newline-per-chained-call": "off",
"import/extensions": [ "error", "ignorePackages", {
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
} ],
"import/prefer-default-export": "off",
"max-classes-per-file": "off"
},
"globals": {
"PLATFORM": false
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
},
"allowImportExportEverywhere": true
},
"plugins": [
"react"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".css",
".json",
".svg"
]
}
}
}
}