-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.2 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
module.exports = {
root: true,
parser: 'vue-eslint-parser',
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier-vue/recommended',
'prettier',
],
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2022,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'simple-import-sort', 'unused-imports'],
rules: {
'no-console': 'warn',
'no-debugger': 'warn',
eqeqeq: 'error',
'prefer-const': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'unused-imports/no-unused-imports-ts': 'error',
'@typescript-eslint/no-namespace': 'off',
'vue/no-multiple-template-root': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-v-model-argument': 'off',
'vue/attribute-hyphenation': 'off',
'vue/v-on-event-hyphenation': 'off',
},
overrides: [
{
files: ['docs/components/examples/*.js'],
globals: {
Bndr: 'readonly',
scalar: 'readonly',
vec2: 'readonly',
mat2d: 'readonly',
p: 'readonly',
},
},
],
}