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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
| module.exports = {
| 'root': true,
| 'env': {
| browser: true,
| node: true,
| jest: true,
| es6: true
| },
| 'extends': [
| 'plugin:vue/essential',
| 'eslint:recommended'
| ],
| 'parserOptions': {
| parser: '@babel/eslint-parser'
| },
| 'rules': {
| 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
| 'no-': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
| 'prefer-const': 'error',
| 'no-const-assign': 'error',
| 'no-var': 'error',
| 'no-new-object': 'error',
| 'no-array-constructor': 'error',
| 'prefer-destructuring': 'error',
| 'quotes': ['error', 'single'],
| 'prefer-template': 'error',
| 'template-curly-spacing': 'error',
| 'no-eval': 'error',
| 'no-useless-escape': 'error',
| 'no-loop-func': 'error',
| 'prefer-rest-params': 'error',
| 'default-param-last': 'error',
| 'no-new-func': 'error',
| 'space-before-function-paren': 0,
| 'no-param-reassign': 'error',
| 'arrow-parens': 'error',
| 'no-confusing-arrow': 'error',
| 'implicit-arrow-linebreak': 'error',
| 'no-useless-constructor': 'error',
| 'no-dupe-class-members': 'error',
| 'class-methods-use-this': 'error',
| 'no-duplicate-imports': 'error',
| 'dot-notation': 'error',
| 'no-restricted-properties': 'error',
| 'no-undef': 'error',
| 'one-var': 'error',
| 'no-multi-assign': 'error',
| 'no-plusplus': 'error',
| 'no-unused-vars': ['error', {
| 'vars': 'all',
| 'args': 'none'
| }],
| 'eqeqeq': 'error',
| 'no-nested-ternary': 'error',
| 'no-unneeded-ternary': 'error',
| 'no-mixed-operators': 'error',
| 'nonblock-statement-body-position': 'error',
| 'brace-style': 'error',
| 'no-else-return': 'error',
| 'spaced-comment': 'error',
| 'space-before-blocks': 'error',
| 'keyword-spacing': 'error',
| 'space-infix-ops': 'error',
| 'eol-last': 'error',
| 'newline-per-chained-call': 'error',
| 'no-whitespace-before-property': 'error',
| 'space-in-parens': 'error',
| 'array-bracket-spacing': 'error',
| 'max-len': ['error', { code: 100, ignoreUrls: true }],
| 'block-spacing': 'error',
| 'comma-spacing': 'error',
| 'func-call-spacing': 'error',
| 'key-spacing': 'error',
| 'no-trailing-spaces': 'error',
| 'no-multiple-empty-lines': 'error',
| 'comma-style': 'error',
| 'comma-dangle': 'error',
| 'semi': ['error', 'never'],
| 'camelcase': 'error',
| 'no-underscore-dangle': 'error',
| 'no-restricted-globals': 'error',
| 'quote-props': ['error', 'consistent']
| }
| }
|
|