forked from mathieustan/vue-datepicker
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.5 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
module.exports = {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/essential', '@vue/standard'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'comma-dangle': ['error', 'always-multiline'],
'no-multi-spaces': ['error', { ignoreEOLComments: false }],
'max-len': [
1,
{
code: 100,
ignoreComments: true,
ignoreTemplateLiterals: true,
},
],
semi: [2, 'always'],
'no-undef': 2,
'no-unused-vars': [2, { vars: 'all' }],
'no-underscore-dangle': ['error', { allow: ['_id'] }],
'func-names': ['error', 'never'],
'new-cap': ['error', { capIsNew: false }],
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: true,
},
],
'import/prefer-default-export': 0,
'no-use-before-define': ['error', { functions: false }],
'consistent-return': 0,
'no-useless-return': 0,
'no-param-reassign': 0,
'vue/require-default-prop': 0,
'vue/require-prop-types': 0,
'vue/max-attributes-per-line': [
2,
{
singleline: 5,
multiline: {
max: 1,
allowFirstLine: false,
},
},
],
'vue/name-property-casing': [2, 'PascalCase'],
'padded-blocks': 'off',
'meteor/audit-argument-checks': 'off',
'no-multiple-empty-lines': ['error', { max: 1 }],
},
parserOptions: {
parser: 'babel-eslint',
},
};