-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
59 lines (59 loc) · 1.27 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
50
51
52
53
54
55
56
57
58
59
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'airbnb-base',
'@nuxtjs',
'plugin:vue/recommended',
'prettier',
'plugin:prettier/recommended',
'plugin:lodash/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
Vue: 'readonly',
Bus: true,
SparkForm: true,
Spark: true,
_: true,
Popper: false,
axios: false,
Stripe: false,
$: false,
utils: true,
__: true,
RRule: false,
},
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['vue', 'prettier', 'lodash'],
rules: {
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'vue/max-attributes-per-line': 'off',
'no-param-reassign': 'off',
'no-plusplus': 'off',
'global-require': 'off',
'vue/require-prop-types': 'off',
'vue/component-name-in-template-casing': 'off',
'vue/require-prop-type-constructor': 'off',
'vue/no-v-html': 'off',
'vue/valid-v-slot': 'off',
'no-bitwise': 'off',
'vue/no-unused-vars': 'off',
'lodash/prefer-noop': 'off',
'import/no-unresolved': 'off',
'import/extensions': 'off',
},
settings: {
lodash: {
pragma: '_',
},
},
}