Skip to content

Commit 21b119e

Browse files
chore: add .node-version and remove husky (#281)
1 parent c6b864c commit 21b119e

File tree

7 files changed

+11
-40
lines changed

7 files changed

+11
-40
lines changed

.githooks/pre-commit

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
npm run pre-commit

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- 'beta'
88
pull_request: {}
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
build_test_release:
1216
strategy:
@@ -34,4 +38,3 @@ jobs:
3438
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3539
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3640
CI: true
37-
HUSKY: 0

.husky/_/husky.sh

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

.husky/pre-commit

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

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

lint-staged.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
'*.{ts,js}': ['eslint --fix', 'git add'],
3-
'*.{json,md}': ['prettier --write', 'git add'],
2+
'*.{ts,js}': ['eslint --fix'],
3+
'*.{json,md}': ['prettier --write'],
44
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"format:check": "nx format:check",
2626
"pre-commit": "lint-staged",
2727
"semantic-release": "semantic-release",
28-
"prepare": "husky install"
28+
"prepare": "git config core.hookspath .githooks"
2929
},
3030
"dependencies": {
3131
"@angular/animations": "13.1.1",
@@ -77,7 +77,6 @@
7777
"eslint-plugin-jest": "~25.3.4",
7878
"eslint-plugin-jest-dom": "~4.0.1",
7979
"eslint-plugin-testing-library": "~5.0.1",
80-
"husky": "^7.0.0",
8180
"jasmine-core": "^3.10.1",
8281
"jasmine-spec-reporter": "^7.0.0",
8382
"jest": "27.4.7",

0 commit comments

Comments
 (0)