-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
62 lines (60 loc) · 1.73 KB
/
Copy patheslint.config.js
File metadata and controls
62 lines (60 loc) · 1.73 KB
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
import antfu from '@antfu/eslint-config'
export default antfu(
{
vue: true,
typescript: true,
prettier: true,
},
{
ignores: [
'node_modules/**',
'.husky/**',
'.vscode/**',
'dist/**',
'.parcel-cache/**',
],
rules: {
// Regras herdadas do Biome
'no-console': 'warn',
'no-debugger': 'warn',
'no-unused-vars': 'off',
'no-undef': 'error',
'no-unreachable': 'error',
'no-constant-condition': 'error',
'no-empty': ['error', { allowEmptyCatch: false }],
'no-self-assign': 'error',
'no-redeclare': 'error',
'no-shadow': ['error', { builtinGlobals: false }],
'no-with': 'error',
'no-useless-catch': 'error',
'no-setter-return': 'error',
'no-unused-labels': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'no-duplicate-case': 'error',
'no-duplicate-imports': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-func-assign': 'error',
'no-class-assign': 'error',
'no-import-assign': 'error',
'no-global-assign': 'error',
'use-isnan': 'error',
'valid-typeof': 'error',
'no-extra-boolean-cast': 'error',
'no-empty-character-class': 'error',
'no-empty-pattern': 'error',
'no-control-regex': 'error',
'no-misleading-character-class': 'error',
'no-prototype-builtins': 'error',
'prefer-exponentiation-operator': 'off',
'getter-return': 'error',
// Vue
'vue/no-deprecated-slot-attribute': 'off',
'vue/no-template-target-blank': 'error',
'vue/no-v-html': 'off',
'vue/require-valid-default-prop': 'off',
'vue/no-unused-components': 'warn',
},
},
)