Skip to content

Commit

Permalink
chore: update to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 29, 2024
1 parent b56866d commit 5923f1b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

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

// https://github.com/unjs/eslint-config
export default unjs({
ignores: ["**/.nitro"],
rules: {},
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"prepare": "nitropack prepare",
"build": "nitropack build",
"dev": "nitropack dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c .",
"lint:fix": "eslint --fix --ext .ts,.js,.mjs,.cjs . && prettier -w .",
"lint": "eslint . && prettier -c .",
"lint:fix": "eslint --fix . && prettier -w .",
"test": "pnpm lint && pnpm test:types",
"test:types": "tsc --noEmit"
},
Expand Down
1 change: 0 additions & 1 deletion utils/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export const ghRepoFiles = cachedFunction((repo: string, ref: string) => {
}, cacheOptions("files"));

export const ghMarkdown = cachedFunction(
// eslint-disable-next-line @typescript-eslint/no-unused-vars
(markdown: string, repo: string, _id: string) => {
if (!markdown) {
return "";
Expand Down

0 comments on commit 5923f1b

Please sign in to comment.