forked from taniarascia/webpack-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
57 lines (57 loc) · 1.3 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
{
"ignorePatterns": ["dist", "node_modules"],
"rules": {
"max-len": [
"error",
{
"ignoreUrls": true,
"code": 80
}
],
"prefer-template": "off",
"indent": ["error", 2],
"object-curly-spacing": ["error", "always"],
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 1
}
],
"no-var": "error",
"one-var": ["error", "never"],
"camelcase": "error",
"no-multi-assign": "error",
"quotes": ["error", "single"],
"no-array-constructor": "error",
"no-new-object": "error",
"no-new-wrappers": "error",
"no-nested-ternary": "error",
"no-console": [
"error",
{
"allow": ["error"]
}
],
"no-template-curly-in-string": "error",
"no-self-compare": "error",
"func-names": ["error", "as-needed"],
"semi": [2, "never"],
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }]
},
"env": {
"browser": true,
"es6": true
},
"extends": ["eslint:recommended", "airbnb-base", "prettier"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["prettier"],
"settings": { "import/resolver": "webpack" }
}