Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
matrix:
node-version: [20.x, 24.x]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
version: ${{ env.INPUT_VENDOR_VERSION }}
prerelease: ${{ steps.versioning.outputs.is-prerelease }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- name: Determine release version
id: versioning
uses: Fresa/trunk-based-release-versioning@v0
Expand Down Expand Up @@ -57,8 +57,8 @@ jobs:
runs-on: ubuntu-latest
needs: create_release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
Expand Down
35 changes: 35 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import pluginJs from "@eslint/js";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import globals from "globals";
import tseslint from "typescript-eslint";

export default [
{
ignores: ["dist", "node_modules", ".eslintrc.cjs", "eslint.config.js"],
},
{
files: ["**/*.{js,mjs,cjs,ts}"],
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: import.meta.dirname,
},
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
eslintPluginPrettierRecommended,
{
rules: {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "warn",
},
},
];
1 change: 1 addition & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ module.exports = {
},
collectCoverageFrom: ["**/*.(t|j)s"],
coverageDirectory: "../coverage",
passWithNoTests: true,
};
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"email": "hello@malang.dev",
"url": "https://malang.dev/"
},
"type": "module",
"license": "MIT",
"private": true,
"scripts": {
Expand All @@ -26,21 +27,21 @@
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^22.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"@types/node": "^20.0.0",
"cross-env": "^10.0.0",
"eslint": "^9.39.0",
"eslint-config-prettier": "^10.0.0",
"eslint-plugin-prettier": "^5.1.3",
"globals": "^17.2.0",
"husky": "^9.0.11",
"jest": "^30.0.0",
"lint-staged": "^16.0.0",
"prettier": "^3.2.5",
"prettier-plugin-organize-imports": "^4.0.0",
"rimraf": "^6.0.0",
"ts-jest": "^29.1.2",
"typescript": "^5.4.2"
"typescript": "^5.4.2",
"typescript-eslint": "^8.0.0"
},
"lint-staged": {
"src/**/*.ts": [
Expand Down
Loading