Skip to content

Commit 877b550

Browse files
authored
chore: remove eslint and commitlint (#13)
1 parent fb6f3d6 commit 877b550

8 files changed

Lines changed: 4 additions & 2592 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515

1616
jobs:
1717
lint:
18-
name: Lint - ${{ matrix.os }} - Node v${{ matrix.node-version }}
18+
name: Checks - ${{ matrix.os }} - Node v${{ matrix.node-version }}
1919

2020
env:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -32,8 +32,6 @@ jobs:
3232
cancel-in-progress: true
3333
steps:
3434
- uses: actions/checkout@v6
35-
with:
36-
fetch-depth: 0
3735

3836
- name: Install Pnpm
3937
run: |
@@ -49,7 +47,7 @@ jobs:
4947
- name: Install dependencies
5048
run: pnpm install --frozen-lockfile
5149

52-
- name: Lint
50+
- name: Run checks
5351
run: pnpm run lint
5452

5553
- name: Build types
@@ -58,10 +56,6 @@ jobs:
5856
- name: Check types
5957
run: if [ -n "$(git status types --porcelain)" ]; then echo "Missing types. Update types by running 'pnpm run build:types'"; exit 1; else echo "All types are valid"; fi
6058

61-
- name: Validate PR commits with commitlint
62-
if: github.event_name == 'pull_request'
63-
run: pnpm exec commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
64-
6559
test:
6660
name: Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}
6761

.husky/commit-msg

Lines changed: 0 additions & 1 deletion
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

commitlint.config.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

lint-staged.config.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

package.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,12 @@
2424
"types"
2525
],
2626
"scripts": {
27-
"commitlint": "commitlint --from=main",
2827
"lint:prettier": "prettier --cache --list-different .",
29-
"lint:code": "eslint --cache .",
3028
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
3129
"lint:types": "tsc --pretty --noEmit",
3230
"lint": "npm-run-all -l -p \"lint:**\"",
33-
"fix:js": "pnpm run lint:code -- --fix",
3431
"fix:prettier": "pnpm run lint:prettier -- --write",
35-
"fix": "npm-run-all -l fix:js fix:prettier",
32+
"fix": "pnpm run fix:prettier",
3633
"clean": "del-cli dist types",
3734
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
3835
"build:code": "babel src -d dist --copy-files",
@@ -42,7 +39,7 @@
4239
"test:coverage": "pnpm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
4340
"pretest": "pnpm run lint",
4441
"test": "pnpm run test:coverage",
45-
"prepare": "husky && pnpm run build",
42+
"prepare": "pnpm run build",
4643
"release": "standard-version"
4744
},
4845
"dependencies": {
@@ -56,8 +53,6 @@
5653
"@babel/cli": "^7.16.7",
5754
"@babel/core": "^7.16.7",
5855
"@babel/preset-env": "^7.16.7",
59-
"@commitlint/cli": "^20.2.0",
60-
"@commitlint/config-conventional": "^20.2.0",
6156
"@fastify/express": "^4.0.2",
6257
"@hapi/hapi": "^21.3.7",
6358
"@hono/node-server": "^1.12.0",
@@ -71,19 +66,15 @@
7166
"cspell": "^9.6.2",
7267
"deepmerge": "^4.2.2",
7368
"del-cli": "^6.0.0",
74-
"eslint": "^9.28.0",
75-
"eslint-config-webpack": "^4.5.0",
7669
"execa": "^5.1.1",
7770
"express-4": "npm:express@^4",
7871
"express": "^5.1.0",
7972
"fastify": "^5.2.1",
8073
"file-loader": "^6.2.0",
8174
"finalhandler": "^2.1.0",
8275
"hono": "^4.4.13",
83-
"husky": "^9.1.3",
8476
"jest": "^30.1.3",
8577
"koa": "^3.0.0",
86-
"lint-staged": "^16.2.7",
8778
"npm-run-all": "^4.1.5",
8879
"prettier": "^3.6.0",
8980
"router": "^2.2.0",

0 commit comments

Comments
 (0)