Repository navigation
Expand file tree
/
Copy patheslint.config.js
More file actions
73 lines (60 loc) · 1.94 KB
/
Copy patheslint.config.js
File metadata and controls
73 lines (60 loc) · 1.94 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
63
64
65
66
67
68
69
70
71
72
73
import js from '@eslint/js'
import tseslint from 'typescript-eslint'
import { defineConfig } from 'eslint/config'
import pluginVue from 'eslint-plugin-vue'
import eslintPluginVueScopedCSS from 'eslint-plugin-vue-scoped-css'
export default defineConfig([
{
ignores: ['dist/**', 'temp*/**'],
},
// Standard JavaScript rules
js.configs.recommended,
// TypeScript rules
...tseslint.configs.recommended,
// Vue 3 rules
...pluginVue.configs['flat/recommended'],
// Vue-specific overrides
{
files: ['**/*.vue'],
rules: {
'vue/attribute-hyphenation': 'off',
'vue/attributes-order': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/html-closing-bracket-newline': 'off',
'vue/html-closing-bracket-spacing': 'off',
'vue/html-indent': 'off',
'vue/html-quotes': 'off',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off',
'vue/order-in-components': 'off',
'vue/no-multi-spaces': 'off',
'vue/multiline-html-element-content-newline': 'off',
'vue/multi-word-component-names': 'off',
'vue/mustache-interpolation-spacing': 'off',
'vue/no-spaces-around-equal-signs-in-attribute': 'off',
'vue/no-v-html': 'off',
'vue/no-v-text-v-html-on-component': 'off',
'vue/singleline-html-element-content-newline': 'off',
},
},
// TypeScript + Vue configuration
{
files: ['**/*.{ts,vue}'],
languageOptions: {
parserOptions: {
parser: tseslint.parser,
sourceType: 'module',
},
},
},
// Vue scoped CSS
{
files: ['**/*.vue'],
plugins: {
vueScopedCss: eslintPluginVueScopedCSS,
},
extends: [
'vueScopedCss/recommended',
],
},
]);