1- import path from ' node:path'
2- import { fileURLToPath } from ' node:url'
1+ import path from " node:path" ;
2+ import { fileURLToPath } from " node:url" ;
33
4- import globals from ' globals'
4+ import globals from " globals" ;
55
6- import { includeIgnoreFile } from ' @eslint/compat'
6+ import { includeIgnoreFile } from " @eslint/compat" ;
77
8- import js from ' @eslint/js'
9- import ts from ' typescript-eslint'
10- import astro from ' eslint-plugin-astro'
8+ import js from " @eslint/js" ;
9+ import ts from " typescript-eslint" ;
10+ import astro from " eslint-plugin-astro" ;
1111
12- const __filename = fileURLToPath ( import . meta. url )
13- const srcDir = path . dirname ( __filename )
12+ const __filename = fileURLToPath ( import . meta. url ) ;
13+ const srcDir = path . dirname ( __filename ) ;
1414
15- const gitignorePath = path . resolve ( srcDir , ' .gitignore' )
15+ const gitignorePath = path . resolve ( srcDir , " .gitignore" ) ;
1616
1717export default [
1818 includeIgnoreFile ( gitignorePath ) ,
1919
2020 {
2121 languageOptions : {
22- ecmaVersion : ' latest' ,
23- sourceType : ' module' ,
22+ ecmaVersion : " latest" ,
23+ sourceType : " module" ,
2424 globals : {
2525 ...globals . node ,
2626 ...globals . browser ,
2727 } ,
2828 } ,
2929
3030 rules : {
31- ' import/prefer-default-export' : ' off' ,
32- ' @typescript-eslint/consistent-type-imports' : ' error' ,
31+ " import/prefer-default-export" : " off" ,
32+ " @typescript-eslint/consistent-type-imports" : " error" ,
3333 } ,
3434 } ,
3535
@@ -40,9 +40,9 @@ export default [
4040
4141 // Type definitions
4242 {
43- files : [ ' **/*.d.ts' ] ,
43+ files : [ " **/*.d.ts" ] ,
4444 rules : {
45- ' @typescript-eslint/triple-slash-reference' : ' off' ,
45+ " @typescript-eslint/triple-slash-reference" : " off" ,
4646 } ,
4747 } ,
48- ]
48+ ] ;
0 commit comments