-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.js
39 lines (39 loc) · 1.31 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
module.exports = {
plugins: ['vue'],
extends: ['plugin:vue/recommended', 'prettier'],
rules: {
'object-shorthand': 'error',
semi: ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
quotes: ['error', 'single', { allowTemplateLiterals: true }],
'prefer-template': 'error',
'no-useless-concat': 'error',
'no-unused-vars': 'error',
'no-undef-init': 'error',
'no-undef': 'error',
'no-const-assign': 'error',
'prefer-const': 'error',
'no-var': 'error',
'eol-last': ['error', 'always'],
'padding-line-between-statements': [
'error',
{ blankLine: 'always', prev: '*', next: 'return' },
{ blankLine: 'always', prev: 'directive', next: '*' },
{ blankLine: 'always', prev: '*', next: 'class' },
{ blankLine: 'always', prev: '*', next: 'export' },
{ blankLine: 'any', prev: 'export', next: 'export' },
{ blankLine: 'always', prev: '*', next: 'const' },
{ blankLine: 'any', prev: 'const', next: 'const' },
{ blankLine: 'always', prev: '*', next: 'function' },
{ blankLine: 'any', prev: 'const', next: 'function' },
{ blankLine: 'always', prev: '*', next: 'if' },
{ blankLine: 'any', prev: 'const', next: 'if' },
],
},
env: {
jest: true,
browser: true,
node: true,
es6: true,
},
};