1
- import globals from "globals" ;
2
- import pluginJs from "@ eslint/js" ;
3
- import tseslint from "typescript-eslint" ;
4
- import prettierConfig from "eslint-config-prettier" ;
1
+ import pluginJs from '@eslint/js' ;
2
+ import prettierConfig from ' eslint-config-prettier' ;
3
+ import globals from 'globals' ;
4
+ import tseslint from 'typescript-eslint' ;
5
5
6
6
/** @type {import('eslint').Linter.Config[] } */
7
7
export default [
8
- { files : [ " **/*.{js,mjs,cjs,ts}" ] } ,
8
+ { files : [ ' **/*.{js,mjs,cjs,ts}' ] } ,
9
9
{ languageOptions : { globals : globals . node } } ,
10
10
pluginJs . configs . recommended ,
11
11
...tseslint . configs . recommended ,
12
12
{
13
13
ignores : [
14
- " **/node_modules/**" ,
15
- " **/build/**" ,
16
- " scripts/**" ,
17
- " .yarn/**" ,
18
- " **/*.json" ,
19
- " **/*.md"
20
- ]
14
+ ' **/node_modules/**' ,
15
+ ' **/build/**' ,
16
+ ' scripts/**' ,
17
+ ' .yarn/**' ,
18
+ ' **/*.json' ,
19
+ ' **/*.md' ,
20
+ ] ,
21
21
} ,
22
22
{
23
23
rules : {
24
24
// Disallow console.log but allow console.error, console.warn, and console.info
25
- "no-console" : [ "error" , { allow : [ "error" , "warn" , "info" ] } ] ,
26
-
27
- // TypeScript specific rules
28
- "@typescript-eslint/no-unused-vars" : [ "error" , { argsIgnorePattern : "^_" } ] ,
29
- "@typescript-eslint/no-explicit-any" : "warn" ,
30
- "@typescript-eslint/explicit-module-boundary-types" : "off" ,
25
+ 'no-console' : [ 'error' , { allow : [ 'error' , 'warn' , 'info' ] } ] ,
31
26
32
- }
27
+ // TypeScript specific rules
28
+ '@typescript-eslint/no-unused-vars' : [
29
+ 'error' ,
30
+ { argsIgnorePattern : '^_' } ,
31
+ ] ,
32
+ '@typescript-eslint/no-explicit-any' : 'warn' ,
33
+ '@typescript-eslint/explicit-module-boundary-types' : 'off' ,
34
+ } ,
33
35
} ,
34
36
// Make sure Prettier config is last to override other formatting rules
35
- prettierConfig
36
- ] ;
37
+ prettierConfig ,
38
+ ] ;
0 commit comments