1- // https://github.com/super-linter/super-linter/blob/0d8f7aad449c1dc8ecaf2362684de5d379d2cd7d /TEMPLATES/eslint.config.mjs
1+ // https://github.com/super-linter/super-linter/blob/644fff4cf8f9c402888e29313139dd6e7cbce40e /TEMPLATES/eslint.config.mjs
22import { defineConfig , globalIgnores } from "eslint/config" ;
33import n from "eslint-plugin-n" ;
44import prettier from "eslint-plugin-prettier" ;
55import globals from "globals" ;
66import jsoncParser from "jsonc-eslint-parser" ;
77import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
88import tsParser from "@typescript-eslint/parser" ;
9- import vueParser from "vue- eslint-parser " ;
9+ import pluginVue from "eslint-plugin-vue " ;
1010import path from "node:path" ;
1111import { fileURLToPath } from "node:url" ;
1212import js from "@eslint/js" ;
@@ -82,7 +82,7 @@ export default defineConfig([
8282 } ,
8383 {
8484 files : [ "**/*.js" , "**/*.mjs" , "**/*.cjs" , "**/*.jsx" ] ,
85- // extends: compat.extends("plugin:react/recommended"),
85+ extends : compat . extends ( "plugin:react/recommended" ) ,
8686
8787 languageOptions : {
8888 ecmaVersion : "latest" ,
@@ -102,7 +102,7 @@ export default defineConfig([
102102 extends : compat . extends (
103103 "plugin:@typescript-eslint/recommended" ,
104104 "plugin:n/recommended" ,
105- // "plugin:react/recommended",
105+ "plugin:react/recommended" ,
106106 "prettier" ,
107107 ) ,
108108
@@ -116,20 +116,5 @@ export default defineConfig([
116116 sourceType : "module" ,
117117 } ,
118118 } ,
119- {
120- files : [ "**/*.vue" ] ,
121- extends : compat . extends ( "plugin:vue/recommended" ) ,
122-
123- languageOptions : {
124- parser : vueParser ,
125- ecmaVersion : "latest" ,
126- sourceType : "module" ,
127-
128- parserOptions : {
129- ecmaFeatures : {
130- modules : true ,
131- } ,
132- } ,
133- } ,
134- } ,
119+ ...pluginVue . configs [ "flat/recommended" ] ,
135120] ) ;
0 commit comments