Skip to content

Commit

Permalink
chore(ci): use eslint with ts config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Oct 10, 2024
1 parent 71f857b commit 8eb4a25
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: npx oxlint

- name: Run eslint
run: npx eslint
run: npx eslint --flag unstable_ts_config
2 changes: 1 addition & 1 deletion eslint.config.js → eslint.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import oxlint from './lib/index.cjs';
import oxlint from './src/index.ts';
import unicorn from 'eslint-plugin-unicorn';
import { FlatCompat } from '@eslint/eslintrc';
import eslint from '@eslint/js';
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"generate": "node --import @oxc-node/core/register ./scripts/generate.ts && pnpm format",
"clone": "node --import @oxc-node/core/register ./scripts/sparse-clone.ts",
"build": "vite build",
"lint": "npx oxlint && npx eslint",
"lint": "npx oxlint && npx eslint --flag unstable_ts_config",
"format": "npx prettier --write .",
"release": "bumpp package.json",
"prepare": "husky",
Expand Down Expand Up @@ -77,7 +77,7 @@
"vitest": "^2.0.0"
},
"lint-staged": {
"*.{js,cjs,ts}": "eslint",
"*.{js,cjs,ts}": "eslint --flag unstable_ts_config",
"*": "prettier --ignore-unknown --write"
},
"dependencies": {
Expand Down

0 comments on commit 8eb4a25

Please sign in to comment.