-
Notifications
You must be signed in to change notification settings - Fork 102
/
.eslintrc.json
69 lines (69 loc) · 1.68 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"env": {
"browser": true,
"serviceworker": true
},
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:import/recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser"
},
"rules": {
"class-methods-use-this": "off",
"no-console": "off",
"no-param-reassign": ["error", { "props": false }],
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
"object-curly-newline": "off",
"operator-linebreak": ["error", "after"],
"quotes": ["error", "double", { "allowTemplateLiterals": true }],
"max-len": ["error", 170, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"vue/no-unused-components": "off",
"vue/component-name-in-template-casing": ["error", "kebab-case"],
"vue/max-attributes-per-line": ["warn", {
"singleline": {
"max": 8
},
"multiline": {
"max": 1
}
}],
"vue/multi-word-component-names": "off",
"vue/html-self-closing": ["error", {
"html": {
"void": "never",
"normal": "never",
"component": "always"
},
"svg": "always",
"math": "always"
}],
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"ts": "never"
}
],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off"
},
"globals": {
"cc": true
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack/webpack.config.js"
}
}
}
}