Skip to content

Commit

Permalink
chore: upgrade to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 28, 2024
1 parent 91f062a commit 57890c8
Show file tree
Hide file tree
Showing 5 changed files with 271 additions and 1,132 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

5 changes: 0 additions & 5 deletions .eslintrc

This file was deleted.

9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unjs from "eslint-config-unjs";

// https://github.com/unjs/eslint-config
export default unjs({
ignores: [
"test/fixtures/**",
],
rules: {},
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"scripts": {
"build": "automd && unbuild",
"dev": "vitest dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --ext .ts,.js,.mjs,.cjs . --fix && prettier -w src test",
"lint": "eslint . && prettier -c src test",
"lint:fix": "eslint . --fix && prettier -w src test",
"prepack": "unbuild",
"nypm": "jiti src/cli.ts",
"release": "pnpm test && pnpm build && changelogen --release --push && pnpm publish",
Expand All @@ -46,8 +46,8 @@
"@vitest/coverage-v8": "^1.6.0",
"automd": "^0.3.7",
"changelogen": "^0.5.5",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.2.1",
"eslint": "^9.5.0",
"eslint-config-unjs": "^0.3.2",
"jiti": "^1.21.6",
"prettier": "^3.3.2",
"std-env": "^3.7.0",
Expand Down
Loading

0 comments on commit 57890c8

Please sign in to comment.