@@ -5,35 +5,35 @@ import pluginJest from "eslint-plugin-jest";
55import pluginPrettier from "eslint-config-prettier" ;
66
77export default pluginTs . config (
8- // config to all javascript and typescript files
9- {
10- files : [ "**/*.ts" , "**/*.js" ] ,
11- extends : [ pluginJs . configs . recommended , pluginPrettier ] ,
12- rules : {
13- "no-duplicate-imports" : "error" ,
14- }
8+ // config to all javascript and typescript files
9+ {
10+ files : [ "**/*.ts" , "**/*.js" ] ,
11+ extends : [ pluginJs . configs . recommended , pluginPrettier ] ,
12+ rules : {
13+ "no-duplicate-imports" : "error" ,
1514 } ,
16- {
17- // config to all typescript files only
18- files : [ "**/*.ts" ] ,
19- extends : [ pluginTs . configs . recommended , pluginTs . configs . stylistic ] ,
20- rules : {
21- "@typescript-eslint/no-unused-vars" : [
22- "error" ,
23- {
24- argsIgnorePattern : '^_' ,
25- caughtErrorsIgnorePattern : '^_' ,
26- ignoreRestSiblings : true ,
27- } ,
28- ] ,
29- }
15+ } ,
16+ {
17+ // config to all typescript files only
18+ files : [ "**/*.ts" ] ,
19+ extends : [ pluginTs . configs . recommended , pluginTs . configs . stylistic ] ,
20+ rules : {
21+ "@typescript-eslint/no-unused-vars" : [
22+ "error" ,
23+ {
24+ argsIgnorePattern : "^_" ,
25+ caughtErrorsIgnorePattern : "^_" ,
26+ ignoreRestSiblings : true ,
27+ } ,
28+ ] ,
3029 } ,
31- {
32- // config to test files only
33- files : [ '**/*.spec.ts' ] ,
34- ... pluginJest . configs [ 'flat/recommended' ] ,
35- rules : {
36- ... pluginJest . configs [ 'flat/recommended' ] . rules ,
37- }
30+ } ,
31+ {
32+ // config to test files only
33+ files : [ "**/*.spec.ts" ] ,
34+ ... pluginJest . configs [ "flat/recommended" ] ,
35+ rules : {
36+ ... pluginJest . configs [ "flat/recommended" ] . rules ,
3837 } ,
38+ } ,
3939) ;
0 commit comments