Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
chore: update to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 1, 2024
1 parent 0b1aa9c commit 7b8c51e
Show file tree
Hide file tree
Showing 5 changed files with 345 additions and 599 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

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

export default unjs({
ignores: [
"drivers",
"/server*",
"docs/.*"
],
rules: {
"unicorn/no-null": 0,
"unicorn/prevent-abbreviations": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"unicorn/prefer-string-replace-all": 0,
"unicorn/prefer-at": 0,
"unicorn/catch-error-name": 0,
"unicorn/prefer-logical-operator-over-ternary": 0,
"unicorn/prefer-ternary": 0,
},
});
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"build": "unbuild",
"demo": "vite demo",
"dev": "vitest",
"lint": "eslint --ext .ts . && prettier -c src test demo",
"lint:fix": "eslint --ext .ts . --fix && prettier -w src test demo",
"lint": "eslint . && prettier -c src test demo",
"lint:fix": "eslint . --fix && prettier -w src test demo",
"prepack": "pnpm build",
"release": "pnpm test && changelogen --release && git push --follow-tags && pnpm publish",
"test": "pnpm lint && pnpm test:types && vitest run --coverage",
Expand Down Expand Up @@ -75,8 +75,8 @@
"@vue/compiler-sfc": "^3.4.26",
"azurite": "^3.30.0",
"changelogen": "^0.5.5",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.2.1",
"eslint": "^9.1.1",
"eslint-config-unjs": "0.3.0-rc.7",
"fake-indexeddb": "^5.0.2",
"idb-keyval": "^6.2.1",
"ioredis": "^5.4.1",
Expand Down
Loading

0 comments on commit 7b8c51e

Please sign in to comment.