-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy patheslint.config.js
52 lines (49 loc) · 1.58 KB
/
eslint.config.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
import pluginVue from 'eslint-plugin-vue'
import globals from 'globals'
import { globalIgnores } from 'eslint/config'
import { defineConfigWithVueTs, vueTsConfigs } from '@vue/eslint-config-typescript'
export default defineConfigWithVueTs([
...pluginVue.configs['flat/essential'],
vueTsConfigs.recommended,
globalIgnores(['dist/*', 'node_modules/*', 'patches/*', 'types/*']),
{
rules: {
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': 'off',
'react/no-string-refs': 'off',
'react/no-unknown-property': 'off',
'react/display-name': 'off',
'no-sparse-arrays': 0,
'no-inner-declarations': 0,
'no-constant-condition': 0,
'no-unused-vars': [
2,
{
vars: 'local',
args: 'none',
},
],
'node/no-callback-literal': 'off',
'import/namespace': 'off',
'import/default': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'vue/attributes-order': 'off',
'vue/one-component-per-file': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/max-attributes-per-line': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/attribute-hyphenation': 'off',
'vue/require-default-prop': 'off',
},
languageOptions: {
sourceType: 'module',
globals: {
...globals.browser,
},
},
},
])