forked from ruxailab/RUXAILAB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
43 lines (42 loc) · 1.14 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
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/recommended'],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': 'off',
semi: ['warn', 'never'],
quotes: ['warn', 'single'],
'prefer-const': 'warn',
indent: 'off',
eqeqeq: 'off',
'no-plusplus': 'off',
'max-len': ['warn', {
'code': 200,
'ignoreStrings': true,
'ignoreComments': true,
'ignoreTemplateLiterals': true,
}],
'no-empty': 'warn',
'arrow-parens': 'warn',
'no-trailing-spaces': 'warn',
'comma-dangle': ['warn', 'always-multiline'],
'object-curly-newline': 'off',
'class-methods-use-this': 'off',
'no-continue': 'off',
'no-loop-func': 'off',
'linebreak-style': 'off',
'no-restricted-syntax': 'off',
'operator-linebreak': 'off',
'vue/max-attributes-per-line': 'off',
'vue/require-prop-types':'warn',
'vue/require-default-prop':'warn',
'vue/prop-name-casing': 'warn',
},
}