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 Nov 9, 2024
1 parent cc6a127 commit e9a6207
Show file tree
Hide file tree
Showing 22 changed files with 2,912 additions and 5,117 deletions.
1 change: 0 additions & 1 deletion .commitlintrc.json

This file was deleted.

11 changes: 5 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{
"root": true,
"extends": ["conventions"],
"plugins": ["import", "promise", "unicorn"],
"rules": {
"import/extensions": ["error", "always"],
"unicorn/prevent-abbreviations": "error"
},
"plugins": ["promise", "unicorn"],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"parserOptions": {
"project": "./tsconfig.json"
"projectService": true
},
"rules": {
"@typescript-eslint/no-unnecessary-condition": "off"
}
}
]
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/BUG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ labels: "bug"
---

<!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please make sure your issue has not already been fixed.
Please provide a clear and concise description of what the bug is.
Include screenshots if needed. Please make sure your issue has not already been fixed.
-->

## Steps To Reproduce
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
branches: [main, develop]

jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.6"
- uses: "actions/checkout@v4.2.2"

- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2"
uses: "actions/setup-node@v4.1.0"
with:
node-version: "lts/*"
cache: "npm"
Expand All @@ -22,6 +22,6 @@ jobs:
run: "npm clean-install"

- name: "Build"
run: "npm run build"
run: "node --run build"

- run: "npm run build:typescript"
- run: "node --run build:typescript"
13 changes: 6 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@ on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
branches: [main, develop]

jobs:
lint:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.6"
- uses: "actions/checkout@v4.2.2"

- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2"
uses: "actions/setup-node@v4.1.0"
with:
node-version: "lts/*"
cache: "npm"

- name: "Install dependencies"
run: "npm clean-install"

- run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: "npm run lint:editorconfig"
- run: "npm run lint:eslint"
- run: "npm run lint:prettier"
- run: "node --run lint:editorconfig"
- run: "node --run lint:eslint"
- run: "node --run lint:prettier"
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Release"

on:
push:
branches: [master]
branches: [main]

jobs:
release:
Expand All @@ -13,13 +13,13 @@ jobs:
pull-requests: "write"
id-token: "write"
steps:
- uses: "actions/checkout@v4.1.6"
- uses: "actions/checkout@v4.2.2"
with:
fetch-depth: 0
persist-credentials: false

- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2"
uses: "actions/setup-node@v4.1.0"
with:
node-version: "lts/*"
cache: "npm"
Expand All @@ -28,15 +28,15 @@ jobs:
run: "npm clean-install"

- name: "Build"
run: "npm run build"
run: "node --run build"

- run: "npm run build:typescript"
- run: "node --run build:typescript"

- name: "Verify the integrity of provenance attestations and registry signatures for installed dependencies"
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 }}
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ on:
push:
branches: [develop]
pull_request:
branches: [master, develop]
branches: [main, develop]

jobs:
test:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4.1.6"
- uses: "actions/checkout@v4.2.2"

- name: "Setup Node.js"
uses: "actions/setup-node@v4.0.2"
uses: "actions/setup-node@v4.1.0"
with:
node-version: "lts/*"
cache: "npm"
Expand All @@ -22,7 +22,7 @@ jobs:
run: "npm clean-install"

- name: "Build"
run: "npm run build"
run: "node --run build"

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

This file was deleted.

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

This file was deleted.

6 changes: 0 additions & 6 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
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["master"],
"branches": ["main"],
"plugins": [
[
"@semantic-release/commit-analyzer",
Expand Down
6 changes: 1 addition & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,5 @@
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"eslint.options": {
"ignorePath": ".gitignore"
},
"prettier.ignorePath": ".gitignore"
}
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ npm install --save-dev html-w3c-validator start-server-and-test

```jsonc
{
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/master/schema/html-w3c-validatorrc-schema.json",
"$schema": "https://raw.githubusercontent.com/theoludwig/html-w3c-validator/main/schema/html-w3c-validatorrc-schema.json",

// URLs to validate.
"urls": ["http://127.0.0.1:3000/", "http://127.0.0.1:3000/about"],
Expand All @@ -82,7 +82,7 @@ npm install --save-dev html-w3c-validator start-server-and-test
## Usage

```sh
npm run test:html-w3c-validator
node --run test:html-w3c-validator
```

Example of output (in case of success):
Expand Down
Loading

0 comments on commit e9a6207

Please sign in to comment.