Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 11, 2024
1 parent 80d7aa9 commit dab1753
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Binary file modified bun.lockb
Binary file not shown.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
"@eslint/markdown": "^6.2.0",
"@stacksjs/path": "^0.65.0",
"@stylistic/eslint-plugin": "^2.9.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@types/bun": "^1.1.11",
"@types/node": "^22.7.5",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@vitest/eslint-plugin": "^1.1.7",
"bumpp": "^9.7.1",
"changelogen": "^0.5.7",
"unbuild": "2.0.0",
"eslint-config-flat-gitignore": "^0.3.0",
"eslint-flat-config-utils": "^0.4.0",
"eslint-merge-processors": "^0.1.0",
Expand All @@ -80,6 +80,7 @@
"eslint-plugin-yml": "^1.14.0",
"eslint-processor-vue-blocks": "^0.1.2",
"eslint-vitest-rule-tester": "^0.6.1",
"unbuild": "2.0.0",
"vitest": "^2.1.2",
"vue-eslint-parser": "^9.4.3"
}
Expand Down
5 changes: 3 additions & 2 deletions src/worker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { BlocklistMeta, UnoGenerator } from '@unocss/core'
import { path } from '@stacksjs/path'
import process from 'node:process'
import { loadConfig } from '@unocss/config'
import { createGenerator } from '@unocss/core'
Expand All @@ -12,11 +13,11 @@ process.env.ESLINT ||= 'true'

async function _getGenerator(configPath?: string) {
const { config, sources } = await loadConfig(
process.cwd(),
path.uiPath(),
configPath,
)
if (!sources.length)
throw new Error('[@unocss/eslint-plugin] No config file found, create a `uno.config.ts` file in your project root and try again.')
throw new Error('[@stacksjs/eslint-plugin] No config file found, create a `uno.config.ts` file in your project root and try again.')
return createGenerator({
...config,
warn: false,
Expand Down

0 comments on commit dab1753

Please sign in to comment.