Skip to content

Commit

Permalink
chore: update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 15, 2024
1 parent 6033b85 commit e09027f
Show file tree
Hide file tree
Showing 11 changed files with 2,448 additions and 2,223 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

12 changes: 0 additions & 12 deletions .eslintrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- name: Fix lint issues
run: pnpm run lint:fix
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
with:
commit-message: "chore: apply automated lint fixes"
commit-message: "chore: apply automated updates"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: pnpm lint
Expand Down
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";

// https://github.com/unjs/eslint-config
export default unjs({
ignores: [
"benchmark"
],
rules: {
"unicorn/no-null": 0,
"unicorn/prevent-abbreviations": 0,
"unicorn/prefer-math-trunc": 0,
"numeric-separators-style": 0,
"unicorn/prefer-code-point": 0,
"unicorn/prefer-ternary": 0,
"unicorn/prefer-spread": 0
},
});
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
"scripts": {
"build": "unbuild",
"dev": "vitest dev",
"lint": "eslint --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
"lint:fix": "eslint --fix --ext .ts,.js,.mjs,.cjs . && prettier -w src test",
"lint": "eslint . && prettier -c src test",
"lint:fix": "eslint --fix . && prettier -w src test",
"prepack": "unbuild",
"release": "pnpm test && changelogen --release --push && pnpm publish",
"benchmark": "node benchmark/object-hash.mjs",
"test": "pnpm lint && vitest run && pnpm typecheck",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^20.12.8",
"@vitest/coverage-v8": "^0.34.6",
"@types/node": "^22.5.5",
"@vitest/coverage-v8": "^2.1.1",
"benchmark": "^2.1.4",
"changelogen": "^0.5.5",
"eslint": "^8.57.0",
"eslint-config-unjs": "^0.2.1",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"eslint": "^9.10.0",
"eslint-config-unjs": "^0.3.2",
"prettier": "^3.3.3",
"typescript": "^5.6.2",
"unbuild": "^2.0.0",
"vitest": "^0.34.6"
"vitest": "^2.1.1"
},
"packageManager": "pnpm@9.0.6"
}
"packageManager": "pnpm@9.10.0"
}
Loading

0 comments on commit e09027f

Please sign in to comment.