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
@@ -120,20 +120,5 @@ export default defineConfig([
120120 "n/no-missing-import" : "off" ,
121121 } ,
122122 } ,
123- {
124- files : [ "**/*.vue" ] ,
125- extends : compat . extends ( "plugin:vue/recommended" ) ,
126-
127- languageOptions : {
128- parser : vueParser ,
129- ecmaVersion : "latest" ,
130- sourceType : "module" ,
131-
132- parserOptions : {
133- ecmaFeatures : {
134- modules : true ,
135- } ,
136- } ,
137- } ,
138- } ,
123+ ...pluginVue . configs [ "flat/recommended" ] ,
139124] ) ;
0 commit comments