forked from Efficy/bootstrap-vue-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
70 lines (70 loc) · 1.94 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
60
61
62
63
64
65
66
67
68
69
70
module.exports = {
root: true,
env: {
'browser': true,
'es6': true,
'node': true,
'vue/setup-compiler-macros': true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'prettier',
],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: 2021,
},
rules: {
'prettier/prettier': ['warn', {endOfLine: 'auto'}],
'no-alert': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'arrow-body-style': 'warn',
'arrow-parens': 'warn',
'eqeqeq': 'error',
'generator-star-spacing': 'warn',
'grouped-accessor-pairs': 'warn',
'no-caller': 'error',
'no-duplicate-imports': 'error',
'no-else-return': 'warn',
'no-eval': 'error',
'no-extra-bind': 'warn',
'no-implied-eval': 'error',
'no-labels': 'warn',
'no-lone-blocks': 'warn',
'no-new-func': 'error',
'no-new-wrappers': 'error',
'no-return-await': 'warn',
'no-template-curly-in-string': 'warn',
'no-throw-literal': 'error',
'no-undef-init': 'warn',
'no-useless-call': 'warn',
'no-useless-constructor': 'warn',
'no-useless-rename': 'warn',
'no-useless-return': 'warn',
'no-var': 'error',
'object-shorthand': 'warn',
'prefer-const': 'warn',
'prefer-destructuring': 'warn',
'prefer-numeric-literals': 'warn',
'prefer-rest-params': 'warn',
'prefer-spread': 'warn',
'prefer-template': 'warn',
'require-atomic-updates': 'warn',
'rest-spread-spacing': 'warn',
'sort-imports': [
'warn',
{
ignoreCase: true,
ignoreDeclarationSort: true,
},
],
'template-curly-spacing': 'warn',
'yield-star-spacing': 'warn',
'yoda': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'vue/require-default-prop': 'off',
},
}