generated from 8bu/vitesse-enterprise
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (41 loc) · 1.15 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
const inProductionEnv = process.env.NODE_ENV === 'production'
const rulesSeverityOff = inProductionEnv ? 'warn' : 'off'
module.exports = {
root: true,
env: {
node: true,
},
extends: ['@antfu', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2020,
},
rules: {
'@typescript-eslint/no-namespace': ['error', { allowDeclarations: true }],
'@typescript-eslint/no-explicit-any': rulesSeverityOff,
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_', varsIgnorePattern: '^_' },
],
'comma-dangle': ['error', 'only-multiline'],
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-console': rulesSeverityOff,
'no-debugger': rulesSeverityOff,
'max-len': [
'error',
{
code: 100,
tabWidth: 2,
},
],
// Delegates import sorting order to import-sort plugin
'import/order': 'off',
// Delegates curly brace spacing to prettier
'object-curly-spacing': 'off',
},
globals: {
defineProps: 'readonly',
defineEmits: 'readonly',
defineExpose: 'readonly',
withDefaults: 'readonly',
},
}