Skip to content

Commit 694f0b7

Browse files
committed
switch from eslint-plugin-unicorn to eslint-plugin-n
1 parent 1d55d12 commit 694f0b7

File tree

4 files changed

+75
-393
lines changed

4 files changed

+75
-393
lines changed

.changeset/great-oranges-move.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/eslint-config": major
3+
---
4+
5+
switch from eslint-plugin-unicorn to eslint-plugin-n

index.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import js from '@eslint/js';
22
import ts from 'typescript-eslint';
33
import svelte from 'eslint-plugin-svelte';
44
import prettier from 'eslint-config-prettier';
5-
import unicorn from 'eslint-plugin-unicorn';
5+
import node from 'eslint-plugin-n';
66
import stylistic from '@stylistic/eslint-plugin-js';
77
import globals from 'globals';
88

@@ -15,7 +15,6 @@ export default [
1515
...svelte.configs['flat/prettier'],
1616
{
1717
plugins: {
18-
unicorn,
1918
'@stylistic': stylistic
2019
},
2120
languageOptions: {
@@ -58,7 +57,7 @@ export default [
5857
'object-shorthand': ['error', 'always'],
5958
'prefer-arrow-callback': 'error',
6059
'svelte/no-inner-declarations': 'off',
61-
'unicorn/prefer-node-protocol': 'error'
60+
'n/prefer-node-protocol': 'error'
6261
}
6362
}
6463
];

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"eslint": "^9.0.0",
3434
"eslint-config-prettier": "^9.1.0",
3535
"eslint-plugin-svelte": "^2.36.0",
36-
"eslint-plugin-unicorn": "^52.0.0",
36+
"eslint-plugin-n": "^17.9.0",
3737
"svelte": "^4.2.12",
3838
"typescript": "^5.4.4",
3939
"typescript-eslint": "^7.6.0"
@@ -43,7 +43,7 @@
4343
"eslint": ">= 9",
4444
"eslint-config-prettier": ">= 9",
4545
"eslint-plugin-svelte": ">= 2.36",
46-
"eslint-plugin-unicorn": ">= 50",
46+
"eslint-plugin-n": ">= 17",
4747
"typescript": ">= 5",
4848
"typescript-eslint": ">= 7.5"
4949
},

0 commit comments

Comments
 (0)