-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
52 lines (52 loc) · 1.33 KB
/
.eslintrc.cjs
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
module.exports = {
"env": {
"browser": true,
"node": true,
"es2021": true,
"jest": true
},
"extends": [
"@nuxt/eslint-config"
],
"overrides": [{
"files": ["*.vue", "*.js", "*.ts"],
"rules": {
"no-undef": "off"
}
}],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["vue"],
"rules": {
"indent": ["error", 2],
"linebreak-style": ["error", process.platform === "win32" ? "windows" : "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"camelcase": "off",
"arrow-spacing": ["error", { "before": true, "after": true }],
"no-console": ["error", {
"allow": ["info", "warn"]
}],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"no-multi-spaces": "error",
"space-before-blocks": "error",
"no-trailing-spaces": "error",
"@typescript-eslint/consistent-type-imports": "error",
"vue/first-attribute-linebreak": ["error", {
"singleline": "ignore", "multiline": "ignore"
}],
"vue/max-attributes-per-line": ["error", {
"singleline": 100
}],
"vue/singleline-html-element-content-newline": ["off"],
"vue/no-multiple-template-root": ["off"]
},
"ignorePatterns": [
"node_modules/**/*",
".nuxt/**/*",
"dist/**/*",
".output/**/*"
]
};