-
Notifications
You must be signed in to change notification settings - Fork 22
/
.eslintrc.js
35 lines (35 loc) · 931 Bytes
/
.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
module.exports = {
root: true,
env: {
node: true,
browser: true
},
plugins: ['prettier'],
extends: ['plugin:vue/essential', 'airbnb/base'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'object-curly-newline': ['error', { consistent: true }],
'max-len': ['error', { code: 120 }],
'comma-dangle': ['error', 'never'],
'arrow-parens': ['error', 'as-needed'],
'prettier/prettier': 'error',
'no-return-assign': 0,
'no-param-reassign': 0,
'implicit-arrow-linebreak': 0,
'import/prefer-default-export': 0,
'import/no-extraneous-dependencies': 0,
'vue/multi-word-component-names': 0
},
parserOptions: {
parser: '@babel/eslint-parser'
},
overrides: [
{
files: ['**/*.spec.{j,t}s?(x)'],
env: {
mocha: true
}
}
]
};