-
Notifications
You must be signed in to change notification settings - Fork 18
/
.eslintrc.json
40 lines (40 loc) · 1.05 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
{
"extends": ["eslint:recommended", "plugin:lodash-template/all"],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"overrides": [
{
"files": ["*.ejs"],
"processor": "lodash-template/html",
"parserOptions": {
"templateSettings": {
"evaluate": "(?:(?:<%_)|(?:<%(?!%)))([\\s\\S]*?)[_\\-]?%>",
"interpolate": "<%-([\\s\\S]*?)[_\\-]?%>",
"escape": "<%=([\\s\\S]*?)[_\\-]?%>"
}
}
}
],
"ignorePatterns": ["src/scripts/*.js", "**/main.js"],
"rules": {
"semi": 0,
"no-var": "error",
// hack for ejs lint
"no-undef": 0,
"init-declarations": 2,
"camelcase": 0,
"quotes": ["error", "single"],
"indent": ["error", 2, { "SwitchCase": 1 }],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"lodash-template/prefer-escape-template-interpolations": 0
},
"env": {
"browser": true,
"node": true,
"es6": true
}
}