Skip to content

Commit dab1753

Browse files
committed
chore: wip
1 parent 80d7aa9 commit dab1753

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

bun.lockb

361 Bytes
Binary file not shown.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
"devDependencies": {
5353
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
5454
"@eslint/markdown": "^6.2.0",
55+
"@stacksjs/path": "^0.65.0",
5556
"@stylistic/eslint-plugin": "^2.9.0",
56-
"@typescript-eslint/eslint-plugin": "^8.8.1",
57-
"@typescript-eslint/parser": "^8.8.1",
5857
"@types/bun": "^1.1.11",
5958
"@types/node": "^22.7.5",
59+
"@typescript-eslint/eslint-plugin": "^8.8.1",
60+
"@typescript-eslint/parser": "^8.8.1",
6061
"@vitest/eslint-plugin": "^1.1.7",
6162
"bumpp": "^9.7.1",
6263
"changelogen": "^0.5.7",
63-
"unbuild": "2.0.0",
6464
"eslint-config-flat-gitignore": "^0.3.0",
6565
"eslint-flat-config-utils": "^0.4.0",
6666
"eslint-merge-processors": "^0.1.0",
@@ -80,6 +80,7 @@
8080
"eslint-plugin-yml": "^1.14.0",
8181
"eslint-processor-vue-blocks": "^0.1.2",
8282
"eslint-vitest-rule-tester": "^0.6.1",
83+
"unbuild": "2.0.0",
8384
"vitest": "^2.1.2",
8485
"vue-eslint-parser": "^9.4.3"
8586
}

src/worker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { BlocklistMeta, UnoGenerator } from '@unocss/core'
2+
import { path } from '@stacksjs/path'
23
import process from 'node:process'
34
import { loadConfig } from '@unocss/config'
45
import { createGenerator } from '@unocss/core'
@@ -12,11 +13,11 @@ process.env.ESLINT ||= 'true'
1213

1314
async function _getGenerator(configPath?: string) {
1415
const { config, sources } = await loadConfig(
15-
process.cwd(),
16+
path.uiPath(),
1617
configPath,
1718
)
1819
if (!sources.length)
19-
throw new Error('[@unocss/eslint-plugin] No config file found, create a `uno.config.ts` file in your project root and try again.')
20+
throw new Error('[@stacksjs/eslint-plugin] No config file found, create a `uno.config.ts` file in your project root and try again.')
2021
return createGenerator({
2122
...config,
2223
warn: false,

0 commit comments

Comments
 (0)