Commit bb03d6a 1 parent ead9aff commit bb03d6a Copy full SHA for bb03d6a
File tree 1 file changed +12
-14
lines changed
1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change
1
+ import { defineConfig , globalIgnores } from "eslint/config" ;
1
2
import eslint from "@eslint/js" ;
2
3
import simpleImportSort from "eslint-plugin-simple-import-sort" ;
3
4
import globals from "globals" ;
4
5
import tsEslint from "typescript-eslint" ;
5
6
6
7
const __dirname = import . meta. dirname ;
7
8
8
- /** @type {import("eslint").Linter.Config[] } */
9
- export default [
9
+ export default defineConfig ( [
10
10
{
11
11
plugins : {
12
12
"@typescript-eslint" : tsEslint . plugin ,
13
13
"simple-import-sort" : simpleImportSort ,
14
14
} ,
15
15
} ,
16
- {
17
- ignores : [
18
- "dist" ,
19
- "_site" ,
20
- "eslint.config.js" ,
21
- ".prettierrc.js" ,
22
- "src/temporal.d.ts" ,
23
- ] ,
24
- } ,
16
+ globalIgnores ( [
17
+ "dist" ,
18
+ "_site" ,
19
+ "eslint.config.js" ,
20
+ ".prettierrc.js" ,
21
+ "src/temporal.d.ts" ,
22
+ ] ) ,
25
23
{
26
24
languageOptions : {
27
25
parser : tsEslint . parser ,
@@ -33,8 +31,8 @@ export default [
33
31
} ,
34
32
} ,
35
33
eslint . configs . recommended ,
36
- ... tsEslint . configs . strictTypeChecked ,
37
- ... tsEslint . configs . stylisticTypeChecked ,
34
+ tsEslint . configs . strictTypeChecked ,
35
+ tsEslint . configs . stylisticTypeChecked ,
38
36
{
39
37
rules : {
40
38
camelcase : "error" ,
@@ -84,4 +82,4 @@ export default [
84
82
] ,
85
83
} ,
86
84
} ,
87
- ] ;
85
+ ] ) ;
You can’t perform that action at this time.
0 commit comments