-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
114 lines (114 loc) · 3.13 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": ["airbnb-base", "plugin:prettier/recommended", "prettier"],
"globals": {
"fetch": true,
"importScripts": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier"],
"root": true,
"rules": {
"arrow-body-style": "off",
"babel/object-curly-spacing": "off",
"block-scoped-var": "warn",
"camelcase": "warn",
"comma-dangle": "off",
"curly": "warn",
"dot-notation": "off",
"eqeqeq": "off",
"global-require": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"indent": [
"off",
4,
{
"CallExpression": { "arguments": 1 },
"flatTernaryExpressions": false,
"FunctionDeclaration": { "body": 1, "parameters": 1 },
"FunctionExpression": { "body": 1, "parameters": 1 },
"MemberExpression": 1,
"SwitchCase": 1
}
],
"new-cap": "off",
"no-alert": "off",
"no-bitwise": "off",
"no-caller": "warn",
"no-console": "off",
"no-debugger": "error",
"no-empty": "warn",
"no-eq-null": "off",
"no-extra-semi": "warn",
"no-invalid-regexp": "error",
"no-multiple-empty-lines": [
"warn",
{
"max": 1
}
],
"no-nested-ternary": "off",
"no-new": "warn",
"no-obj-calls": "error",
"no-shadow": "off",
"no-tabs": ["warn", { "allowIndentationTabs": true }],
"no-undef": "warn",
"no-underscore-dangle": [
"error",
{
"allow": ["__REDUX_DEVTOOLS_EXTENSION__"]
}
],
"no-unreachable": "error",
"no-unused-expressions": [
"error",
{
"allowTaggedTemplates": true
}
],
"no-unused-vars": "off",
"no-use-before-define": "off",
"object-shorthand": "off",
"prettier/prettier": [
"warn",
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 150,
"proseWrap": "preserve",
"requirePragma": false,
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "none",
"useTabs": false
}
],
"quotes": [
"warn",
"single",
{
"allowTemplateLiterals": true
}
],
"semi": "error",
"strict": "error"
}
}