Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 17, 2024
1 parent 9bd4aef commit 8ffe898
Show file tree
Hide file tree
Showing 14 changed files with 4,659 additions and 4,374 deletions.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc

This file was deleted.

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

export default unjs(
{
ignores: [
"**/.nuxt"
]
},
{
rules: {
"unicorn/no-null": "off",
"unicorn/number-literal-case": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"unicorn/expiring-todo-comments": "off"
}
}
);
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test playground examples docs",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test playground examples docs -w",
"lint": "eslint --cache . && prettier -c src test playground examples docs",
"lint:fix": "eslint --cache . --fix && prettier -c src test playground examples docs -w",
"play": "listhen -w ./playground/app.ts",
"profile": "0x -o -D .profile -P 'autocannon -c 100 -p 10 -d 40 http://localhost:$PORT' ./playground/server.cjs",
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
Expand Down Expand Up @@ -52,8 +52,8 @@
"automd": "^0.3.7",
"changelogen": "^0.5.5",
"connect": "^3.7.0",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.2.1",
"eslint": "^9.0.0",
"eslint-config-unjs": "^0.3.0-rc.6",
"express": "^4.19.2",
"get-port": "^7.1.0",
"jiti": "^1.21.0",
Expand All @@ -68,5 +68,5 @@
"vitest": "^1.5.0",
"zod": "^3.22.4"
},
"packageManager": "pnpm@8.15.5"
}
"packageManager": "pnpm@9.0.1"
}
Loading

0 comments on commit 8ffe898

Please sign in to comment.