Skip to content

Commit 5136fc5

Browse files
committed
Refactor ESLint configuration and Prettier integration
1 parent 884c14b commit 5136fc5

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

eslint.config.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ export default [
88
// Base ESLint recommended rules
99
js.configs.recommended,
1010

11+
// Prettier configuration to disable conflicting rules
12+
{
13+
rules: {
14+
...prettierConfig.rules,
15+
'unicode-bom': 'off'
16+
}
17+
},
18+
1119
// Vue plugin configuration
1220
{
1321
files: ['**/*.vue'],
@@ -26,9 +34,12 @@ export default [
2634
...vue.configs.base.rules,
2735
...vue.configs['vue3-recommended'].rules,
2836

37+
'@stylistic/js/indent': 'off',
38+
'@stylistic/js/quotes': 'off',
39+
2940
// Disable specific Vue rules
3041
'vue/no-v-html': 'off',
31-
'vue/comment-directive': 'off' // Previously disabled
42+
'vue/comment-directive': 'off'
3243

3344
// You can add other Vue-specific rules here
3445
}
@@ -43,14 +54,7 @@ export default [
4354
}
4455
},
4556

46-
// Prettier configuration to disable conflicting rules
47-
{
48-
rules: {
49-
...prettierConfig.rules
50-
}
51-
},
52-
53-
// Custom rules and environment settings
57+
// Custom rules (if any)
5458
{
5559
languageOptions: {
5660
globals: {

0 commit comments

Comments
 (0)