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