forked from mengxiong10/vue2-datepicker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
38 lines (36 loc) · 1.02 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
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
},
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', 'prettier/vue'],
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',
},
};