-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
38 lines (37 loc) · 1.02 KB
/
.eslintrc.cjs
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
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier',
],
env: {
'vue/setup-compiler-macros': true,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'prettier/prettier': [
'warn',
{
singleQuote: true,
semi: false,
trailingComma: 'es5',
printWidth: 120,
arrowParens: 'always',
endOfLine: 'lf',
},
],
// "import/no-unresolved": 0,
'no-unused-vars': 0,
// "no-unused-vars": ["warn", { "vars": "local", "args": "after-used", "caughtErrors": "none" }],
'no-prototype-builtins': 0,
// "no-useless-escape": 0,
// 'no-control-regex': 0,
'@typescript-eslint/ban-ts-comment': 0,
'no-implicit-any': 0,
},
}