File tree Expand file tree Collapse file tree 4 files changed +51
-46
lines changed Expand file tree Collapse file tree 4 files changed +51
-46
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import js from '@eslint/js' ;
2
+ import ts from 'typescript-eslint' ;
3
+ import svelte from 'eslint-plugin-svelte' ;
4
+ import prettier from 'eslint-config-prettier' ;
5
+ import globals from 'globals' ;
6
+
7
+ export default [
8
+ {
9
+ ignores : [
10
+ '.DS_Store' ,
11
+ 'node_modules/' ,
12
+ 'build/' ,
13
+ '.svelte-kit/' ,
14
+ 'package/' ,
15
+ 'dist/' ,
16
+ '.env' ,
17
+ '.env.*' ,
18
+ '!.env.example' ,
19
+ 'pnpm-lock.yaml' ,
20
+ 'package-lock.json' ,
21
+ 'yarn.lock'
22
+ ]
23
+ } ,
24
+ js . configs . recommended ,
25
+ ...ts . configs . recommended ,
26
+ ...svelte . configs [ 'flat/recommended' ] ,
27
+ prettier ,
28
+ ...svelte . configs [ 'flat/prettier' ] ,
29
+ {
30
+ languageOptions : {
31
+ globals : {
32
+ ...globals . browser ,
33
+ ...globals . node
34
+ }
35
+ }
36
+ } ,
37
+ {
38
+ files : [ '**/*.svelte' ] ,
39
+ languageOptions : {
40
+ parserOptions : {
41
+ parser : ts . parser
42
+ }
43
+ }
44
+ }
45
+ ] ;
Original file line number Diff line number Diff line change 1
- import tseslint from '@typescript-eslint/eslint-plugin' ;
2
- import tsParser from '@typescript-eslint/parser' ;
3
- import eslint from '@eslint/js' ;
1
+ import js from '@eslint/js' ;
2
+ import ts from 'typescript-eslint' ;
4
3
import turbo from 'eslint-config-turbo' ;
5
4
import prettier from 'eslint-config-prettier' ;
6
5
@@ -33,14 +32,14 @@ export default [
33
32
'**/next-env.d.ts'
34
33
]
35
34
} ,
36
- eslint . configs . recommended ,
37
- ...tseslint . configs . recommended ,
35
+ js . configs . recommended ,
36
+ ...ts . configs . recommended ,
38
37
turbo ,
39
38
prettier ,
40
39
{
41
- plugins : { '@typescript-eslint' : typescriptEslint } ,
40
+ plugins : { '@typescript-eslint' : ts . plugin } ,
42
41
languageOptions : {
43
- parser : tsParser ,
42
+ parser : ts . parser ,
44
43
ecmaVersion : 'latest' ,
45
44
sourceType : 'module'
46
45
}
You can’t perform that action at this time.
0 commit comments