-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
.eslintrc.js
46 lines (46 loc) · 1.12 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'eslint:recommended',
'@nuxtjs',
'plugin:nuxt/recommended',
'plugin:vue/recommended',
],
parser: 'vue-eslint-parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
parser: 'babel-eslint',
},
overrides: [
{
files: ['**/*.vue'],
rules: {
indent: 0,
},
},
],
rules: {
indent: ['error', 4],
'no-console': 0,
'linebreak-style': ['error', 'unix'],
semi: ['error', 'always'],
quotes: ['error', 'single'],
'comma-dangle': ['error', 'always-multiline'],
'vue/require-v-for-key': 0,
'vue/require-default-prop': 0,
'vue/no-v-html': 0,
'vue/valid-v-for': 0,
'vue/max-attributes-per-line': 0,
'vue/html-indent': ['error', 4],
'vue/script-indent': ['error', 4, {
baseIndent: 1,
}],
'vue/no-unused-vars': 0,
'vue/html-self-closing': 0,
},
};