Skip to content

Commit 305df38

Browse files
committed
chore: remove usage of git hooks (husky, lint-staged, commitlint) + usage of node --run
1 parent 8b3d910 commit 305df38

15 files changed

+407
-1797
lines changed

.commitlintrc.json

-1
This file was deleted.

.github/workflows/lint.yml

+11-5
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ jobs:
2121
- name: "Install dependencies"
2222
run: "npm clean-install"
2323

24-
- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
25-
- run: "npm run lint:editorconfig"
26-
- run: "npm run lint:markdown"
27-
- run: "npm run lint:eslint"
28-
- run: "npm run lint:prettier"
24+
- run: "node --run lint:editorconfig"
25+
- run: "node --run lint:markdown"
26+
- run: "node --run lint:eslint"
27+
- run: "node --run lint:prettier"
28+
29+
commitlint:
30+
runs-on: "ubuntu-latest"
31+
steps:
32+
- uses: "actions/[email protected]"
33+
34+
- uses: "wagoid/[email protected]"

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: "npm audit signatures"
3232

3333
- name: "Release"
34-
run: "npm run release"
34+
run: "node --run release"
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
run: "npm clean-install"
2323

2424
- name: "Test"
25-
run: "npm run test"
25+
run: "node --run test"

.husky/commit-msg

-2
This file was deleted.

.husky/pre-commit

-3
This file was deleted.

.lintstagedrc.json

-7
This file was deleted.

.npmrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
save-exact=true
2-
provenance=true
1+
save-exact = true
2+
provenance = true

.releaserc.json

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
{
22
"branches": ["main", { "name": "beta", "prerelease": true }],
33
"plugins": [
4-
[
5-
"@semantic-release/commit-analyzer",
6-
{
7-
"preset": "conventionalcommits"
8-
}
9-
],
10-
[
11-
"@semantic-release/release-notes-generator",
12-
{
13-
"preset": "conventionalcommits"
14-
}
15-
],
4+
"@semantic-release/commit-analyzer",
5+
"@semantic-release/release-notes-generator",
166
"@semantic-release/npm",
177
"@semantic-release/github"
188
]

.vscode/extensions.json

-8
This file was deleted.

.vscode/settings.json

-10
This file was deleted.

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ We discourage usage of [eslint-config-prettier](https://github.com/prettier/esli
124124
### Usage
125125

126126
```sh
127-
npm run lint:eslint
127+
node --run lint:eslint
128128
# or to apply automatic fixes to code
129-
npm run lint:eslint -- --fix
129+
node --run lint:eslint -- --fix
130130

131131
# Validate code formatting in all supported languages by Prettier
132-
npm run lint:prettier
132+
node --run lint:prettier
133133
```
134134

135135
## 💡 Contributing

0 commit comments

Comments
 (0)