-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.json
35 lines (35 loc) · 1.08 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"shared-node-browser": true,
"amd": true,
"jest": true
},
"rules": {
"arrow-body-style": ["error", "always"],
"brace-style": ["error", "stroustrup"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-style": ["error", "last"],
"curly": "error",
"global-require": "error",
"indent": ["error", 4, { "VariableDeclarator": "first" }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always"],
"no-prototype-builtins": "off",
"no-unused-vars": ["error", { "argsIgnorePattern": "^(req|res|next)$" }],
"quote-props": ["error", "as-needed"],
"quotes": ["error", "double"],
"semi": "error",
"semi-style": ["error", "last"]
}
}