Skip to content

Commit

Permalink
chore: remove usage of git hooks (husky, lint-staged, commitlint) + u…
Browse files Browse the repository at this point in the history
…sage of node --run
  • Loading branch information
theoludwig committed Jul 25, 2024
1 parent 8b3d910 commit 305df38
Show file tree
Hide file tree
Showing 15 changed files with 407 additions and 1,797 deletions.
1 change: 0 additions & 1 deletion .commitlintrc.json

This file was deleted.

16 changes: 11 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,14 @@ jobs:
- name: "Install dependencies"
run: "npm clean-install"

- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: "npm run lint:editorconfig"
- run: "npm run lint:markdown"
- run: "npm run lint:eslint"
- run: "npm run lint:prettier"
- run: "node --run lint:editorconfig"
- run: "node --run lint:markdown"
- run: "node --run lint:eslint"
- run: "node --run lint:prettier"

commitlint:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.7"

- uses: "wagoid/commitlint-github-action@v6.0.1"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: "npm audit signatures"

- name: "Release"
run: "npm run release"
run: "node --run release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
run: "npm clean-install"

- name: "Test"
run: "npm run test"
run: "node --run test"
2 changes: 0 additions & 2 deletions .husky/commit-msg

This file was deleted.

3 changes: 0 additions & 3 deletions .husky/pre-commit

This file was deleted.

7 changes: 0 additions & 7 deletions .lintstagedrc.json

This file was deleted.

4 changes: 2 additions & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
save-exact=true
provenance=true
save-exact = true
provenance = true
14 changes: 2 additions & 12 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,8 @@
{
"branches": ["main", { "name": "beta", "prerelease": true }],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
"@semantic-release/github"
]
Expand Down
8 changes: 0 additions & 8 deletions .vscode/extensions.json

This file was deleted.

10 changes: 0 additions & 10 deletions .vscode/settings.json

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ We discourage usage of [eslint-config-prettier](https://github.com/prettier/esli
### Usage

```sh
npm run lint:eslint
node --run lint:eslint
# or to apply automatic fixes to code
npm run lint:eslint -- --fix
node --run lint:eslint -- --fix

# Validate code formatting in all supported languages by Prettier
npm run lint:prettier
node --run lint:prettier
```

## 💡 Contributing
Expand Down
Loading

0 comments on commit 305df38

Please sign in to comment.