forked from DavidAnson/simple-website-with-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.17 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
{
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"env":{
"browser": true,
"node": true,
"es6": true
},
"extends": "eslint:all",
"rules": {
"function-call-argument-newline": "off",
"indent": ["error", 2],
"linebreak-style": "off",
"max-len": ["error", 100],
"max-lines": "off",
"max-lines-per-function": ["error", 100],
"max-params": ["error", 10],
"max-statements": ["error", 30],
"multiline-comment-style": ["error", "separate-lines"],
"multiline-ternary": ["error", "always-multiline"],
"new-cap": ["error", {"capIsNew": false}],
"no-confusing-arrow": ["error", {"allowParens": true}],
"no-extra-parens": ["error", "functions"],
"no-magic-numbers": "off",
"no-process-env": "off",
"no-ternary": "off",
"object-curly-newline": ["error", {
"ObjectExpression": {"consistent": true},
"ObjectPattern": {"consistent": true},
"ImportDeclaration": "always",
"ExportDeclaration": "always"
}],
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"prefer-named-capture-group": "off",
"sort-keys": "off"
}
}