Skip to content

Commit 04f2d29

Browse files
committed
make unicorn a direct dependency as its included by default
1 parent 7d71b5f commit 04f2d29

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
"eslint-plugin-react-hooks": "^4.6.0",
5050
"eslint-plugin-react-refresh": "^0.4.4",
5151
"eslint-plugin-svelte": "^2.34.1",
52-
"eslint-plugin-unicorn": "^50.0.1",
5352
"svelte-eslint-parser": "^0.33.1"
5453
},
5554
"peerDependenciesMeta": {
@@ -77,9 +76,6 @@
7776
"eslint-plugin-svelte": {
7877
"optional": true
7978
},
80-
"eslint-plugin-unicorn": {
81-
"optional": true
82-
},
8379
"svelte-eslint-parser": {
8480
"optional": true
8581
}
@@ -106,6 +102,7 @@
106102
"eslint-plugin-no-only-tests": "^3.1.0",
107103
"eslint-plugin-perfectionist": "^2.5.0",
108104
"eslint-plugin-toml": "^0.8.0",
105+
"eslint-plugin-unicorn": "^50.0.1",
109106
"eslint-plugin-unused-imports": "^3.0.0",
110107
"eslint-plugin-vitest": "^0.3.20",
111108
"eslint-plugin-vue": "^9.19.2",

src/configs/unicorn.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { StylisticConfigDefaults } from '.';
22
import type { FlatConfigItem, OptionsOverrides, OptionsStylistic } from '../types';
3-
import { ensurePackages, interopDefault } from '../utils';
3+
import { interopDefault } from '../utils';
44

55
export async function unicorn(
66
options: OptionsOverrides & OptionsStylistic = {},
@@ -16,11 +16,6 @@ export async function unicorn(
1616
...StylisticConfigDefaults,
1717
...stylistic,
1818
};
19-
20-
await ensurePackages([
21-
'eslint-plugin-unicorn',
22-
]);
23-
2419
// @ts-expect-error no types
2520
const pluginUnicorn = await interopDefault(import('eslint-plugin-unicorn'));
2621

0 commit comments

Comments
 (0)