-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
55 lines (54 loc) · 1.18 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
49
50
51
52
53
54
55
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
browser: true,
},
settings: {
'import/resolver': {
webpack: {
config: '/node_modules/@vue/cli-service/webpack.config.js'
}
}
},
extends: [
'eslint:recommended',
'plugin:vue/strongly-recommended'
],
globals: {
},
rules: {
// override/add rules settings here, such as:
'vue/no-unused-vars': 'error',
"vue/name-property-casing": ["error", "kebab-case"],
'vue/attribute-hyphenation': [2, 'never'],
"eqeqeq": 1,
"no-var": 1,
"require-await": 1,
"yoda": 1,
"prefer-const": 1,
"prefer-arrow-callback": 1,
"object-shorthand": 1,
"vue/max-attributes-per-line": 0,
"vue/order-in-components": 0,
"vue/html-indent": 0,
"vue/require-default-prop": 0,
"no-mixed-spaces-and-tabs": 0,
"no-console": 0
}
}
// module.exports = {
// extends: [
// // add more generic rulesets here, such as:
// // 'eslint:recommended',
// 'plugin:vue/vue3-recommended',
// // 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
// ],
// rules: {
// // override/add rules settings here, such as:
// // 'vue/no-unused-vars': 'error'
// }
// }