-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path.eslintrc.js
40 lines (38 loc) · 990 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
36
37
38
39
40
module.exports = {
root: true,
parser: '@babel/eslint-parser',
env: {
browser: true,
jest: true,
es6: true,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.vue'],
},
},
'import/extensions': ['.js', '.jsx', '.vue'],
},
extends: [
'airbnb-base',
'plugin:vue/recommended',
'prettier',
],
plugins: ['vue'],
rules: {
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': ['error', { allow: ['warn', 'error'] }],
'no-plusplus': 'off',
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-restricted-globals': 'off',
'import/prefer-default-export': 'off',
'import/no-unresolved': [2, { ignore: ['vue2-datepicker'] }],
'import/no-extraneous-dependencies': 'off',
'vue/require-default-prop': 'off',
'vue/require-prop-types': 'off',
'vue/no-v-html': 'off',
},
};