forked from xmmedia/starter_symfony_4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.35 KB
/
.eslintrc.js
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
module.exports = {
root: true,
env: {
browser: true,
"cypress/globals": true,
},
'extends': ['plugin:vue/recommended', 'eslint:recommended'],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"max-len": ["error", {
"code": 120, // so we have a bit of grace
"ignoreComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "never",
"exports": "never",
"functions": "never",
}],
"vue/max-attributes-per-line": [3, {
"singleline": 3,
"multiline": {
"max": 1,
"allowFirstLine": true,
},
}],
"vue/html-indent": ["error", 4],
"vue/html-self-closing": ["error", {
"html": {
"void": "never",
"normal": "never",
"component": "always",
},
"svg": "any",
"math": "always",
}],
},
parserOptions: {
parser: "babel-eslint",
},
plugins: [
"cypress",
],
};