1
1
import { fixupPluginRules } from "@eslint/compat" ;
2
2
import { FlatCompat } from "@eslint/eslintrc" ;
3
3
import js from "@eslint/js" ;
4
- import globals from "globals " ;
4
+ import prettier from "eslint-plugin-prettier/recommended " ;
5
5
import reactPlugin from "eslint-plugin-react" ;
6
6
import reactHooks from "eslint-plugin-react-hooks" ;
7
7
import reactRefresh from "eslint-plugin-react-refresh" ;
8
+ import globals from "globals" ;
8
9
import tseslint from "typescript-eslint" ;
9
- import prettier from "eslint-plugin-prettier/recommended" ;
10
10
11
11
const project = "./tsconfig.app.json" ;
12
12
// eslint flat structure backwards compatibility
@@ -23,7 +23,7 @@ function legacyPlugin(name, alias = name) {
23
23
}
24
24
25
25
export default tseslint . config (
26
- { ignores : [ "node_modules" , "dist" , "build " ] } ,
26
+ { ignores : [ "node_modules" , "dist" , "coverage " ] } ,
27
27
{
28
28
extends : [
29
29
js . configs . recommended ,
@@ -32,7 +32,7 @@ export default tseslint.config(
32
32
...compat . extends ( "plugin:import/typescript" ) ,
33
33
reactPlugin . configs . flat . recommended ,
34
34
] ,
35
- files : [ "**/*.{ts,tsx}" ] ,
35
+ files : [ "**/*.{js, ts,tsx}" ] ,
36
36
languageOptions : {
37
37
ecmaVersion : 2020 ,
38
38
globals : globals . browser ,
0 commit comments