1 | module.exports = {
|
2 | root: true,
|
3 |
|
4 | env: {
|
5 | node: true,
|
6 | },
|
7 |
|
8 | extends: [
|
9 | 'plugin:vue/essential',
|
10 | 'eslint:recommended',
|
11 | ],
|
12 |
|
13 | rules: {
|
14 | semi: ['error', 'always'],
|
15 | 'comma-dangle': ['error', 'always-multiline'],
|
16 | indent: ['error', 2, { SwitchCase: 1 }],
|
17 | quotes: ['error', 'single'],
|
18 | 'no-debugger': 'off',
|
19 | 'object-shorthand': 'error',
|
20 | 'space-before-function-paren': ['error', 'never'],
|
21 | 'keyword-spacing': 'error',
|
22 | 'vue/html-indent': ['error', 2, { alignAttributesVertically: false }],
|
23 | 'vue/html-closing-bracket-newline': ['error', {
|
24 | singleline: 'never',
|
25 | multiline: 'always',
|
26 | }],
|
27 | 'vue/html-self-closing': 'error',
|
28 | 'vue/mustache-interpolation-spacing': 'error',
|
29 | 'template-curly-spacing': 'error',
|
30 | },
|
31 |
|
32 | parserOptions: {
|
33 | parser: 'babel-eslint',
|
34 | },
|
35 | };
|