File tree 4 files changed +75
-393
lines changed
4 files changed +75
-393
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @sveltejs/eslint-config " : major
3
+ ---
4
+
5
+ switch from eslint-plugin-unicorn to eslint-plugin-n
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import js from '@eslint/js';
2
2
import ts from 'typescript-eslint' ;
3
3
import svelte from 'eslint-plugin-svelte' ;
4
4
import prettier from 'eslint-config-prettier' ;
5
- import unicorn from 'eslint-plugin-unicorn ' ;
5
+ import node from 'eslint-plugin-n ' ;
6
6
import stylistic from '@stylistic/eslint-plugin-js' ;
7
7
import globals from 'globals' ;
8
8
@@ -15,7 +15,6 @@ export default [
15
15
...svelte . configs [ 'flat/prettier' ] ,
16
16
{
17
17
plugins : {
18
- unicorn,
19
18
'@stylistic' : stylistic
20
19
} ,
21
20
languageOptions : {
@@ -58,7 +57,7 @@ export default [
58
57
'object-shorthand' : [ 'error' , 'always' ] ,
59
58
'prefer-arrow-callback' : 'error' ,
60
59
'svelte/no-inner-declarations' : 'off' ,
61
- 'unicorn /prefer-node-protocol' : 'error'
60
+ 'n /prefer-node-protocol' : 'error'
62
61
}
63
62
}
64
63
] ;
Original file line number Diff line number Diff line change 33
33
"eslint" : " ^9.0.0" ,
34
34
"eslint-config-prettier" : " ^9.1.0" ,
35
35
"eslint-plugin-svelte" : " ^2.36.0" ,
36
- "eslint-plugin-unicorn " : " ^52.0 .0" ,
36
+ "eslint-plugin-n " : " ^17.9 .0" ,
37
37
"svelte" : " ^4.2.12" ,
38
38
"typescript" : " ^5.4.4" ,
39
39
"typescript-eslint" : " ^7.6.0"
43
43
"eslint" : " >= 9" ,
44
44
"eslint-config-prettier" : " >= 9" ,
45
45
"eslint-plugin-svelte" : " >= 2.36" ,
46
- "eslint-plugin-unicorn " : " >= 50 " ,
46
+ "eslint-plugin-n " : " >= 17 " ,
47
47
"typescript" : " >= 5" ,
48
48
"typescript-eslint" : " >= 7.5"
49
49
},
You can’t perform that action at this time.
0 commit comments