-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.js
49 lines (49 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
44
45
46
47
48
49
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/recommended',
'@vue/standard',
'airbnb-base'
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/html-self-closing': 'off',
'vue/component-name-in-template-casing': 'off',
'vue/no-v-html': 'off',
'comma-dangle': ['error', 'never'],
'semi': ['error', 'never'],
'quote-props': ['error', 'consistent-as-needed'],
'import/no-unresolved': 'off',
'space-before-function-paren': 'off',
'object-curly-newline': 'off',
'no-underscore-dangle': 'off',
'no-useless-escape': 'off',
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'acc', // for reduce accumulators
'state',
'el',
'Vue'
]
}]
},
parserOptions: {
parser: 'babel-eslint'
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)'
],
env: {
jest: true
}
}
]
}