This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (67 loc) · 2.26 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
56
57
58
59
60
61
62
63
64
65
66
67
module.exports = {
root: true,
env: {
node: true
},
'extends': [
'plugin:vue/essential',
'eslint:recommended'
],
rules: {
'array-callback-return': 'error',
'array-bracket-spacing': 'error',
'arrow-body-style': ['error', 'always'],
'arrow-parens': ['error', 'always'],
'curly': 'error',
'dot-notation': 'error',
'eol-last': 'error',
'eqeqeq': 'error',
'function-paren-newline': 'error',
'generator-star-spacing': 'error',
'implicit-arrow-linebreak': ['error', 'below'],
'no-array-constructor': 'error',
'no-case-declarations': 'error',
'no-confusing-arrow': 'error',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-const-assign': 'error',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-dupe-class-members': 'error',
'no-duplicate-imports': 'error',
'no-else-return': 'error',
'no-iterator': 'error',
'no-loop-func': 'error',
'no-mixed-operators': 'error',
'no-multi-assign': 'error',
'no-nested-ternary': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
'no-param-reassign': 'error',
'no-plusplus': 'error',
'no-prototype-builtins': 'error',
'no-restricted-properties': 'error',
'no-restricted-syntax': 'error',
'no-undef': 'error',
'no-unneeded-ternary': 'error',
'no-unused-vars': 'error',
'no-useless-constructor': 'error',
'no-whitespace-before-property': 'error',
'nonblock-statement-body-position': 'error',
'object-shorthand': 'error',
'one-var': ['error', 'never'],
'operator-linebreak': 'error',
'prefer-const': 'error',
'prefer-destructuring': 'error',
'prefer-rest-params': 'error',
'prefer-spread': 'error',
'prefer-template': 'error',
'space-before-blocks': 'error',
'space-in-parens': 'error',
'space-infix-ops': 'error',
'spaced-comment': 'error',
'template-curly-spacing': 'error',
'wrap-iife': 'error'
},
parserOptions: {
parser: 'babel-eslint'
}
};