-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
40 lines (40 loc) · 1023 Bytes
/
.eslintrc
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": ["@nuxtjs/eslint-config"],
"parserOptions": {
"parser": "@typescript-eslint/parser"
},
"rules": {
"vue/max-attributes-per-line": ["warn", {
"singleline": {
"max": 6
},
"multiline": {
"max": 6
}
}],
"vue/html-closing-bracket-newline": ["off"],
"vue/first-attribute-linebreak": ["off"],
// rule for no console.log stuff
"no-console": ["warn", {
"allow": ["warn", "error"]
}],
// Don't put a space before function parentheses, because it's ugly
"space-before-function-paren": ["off"],
"multiline-ternary": ["off"],
"vue/component-definition-name-casing": ["off"]
},
"overrides": [{
"files": ["*.ts", "*.vue"],
"rules": {
// We don't need this no-undef rule because TypeScript will catch it
"no-undef": "off"
}
}, {
"files": ["*.ts"],
"excludedFiles": ["nuxt.config.ts"],
"rules": {
// We want indent 4 spaces for TS files
"indent": ["warn", 4]
}
}]
}