Skip to content

Commit fa5cbb0

Browse files
Revert "chore: setup cache input and format files when committing (#419)" (#425)
This reverts commit ecb3584.
1 parent 8f6f7e6 commit fa5cbb0

File tree

6 files changed

+9
-199
lines changed

6 files changed

+9
-199
lines changed

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
yarn format:check
5+
yarn lint

lint-staged.config.mjs

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

nx.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"runner": "@nrwl/nx-cloud",
99
"options": {
1010
"cacheableOperations": ["build", "test", "lint"],
11-
"accessToken": "ZDc5YjI3NDItNzg5OS00YWM4LWE4ODItZjAzNjFkOWUwNzE3fHJlYWQtd3JpdGU=",
12-
"runtimeCacheInputs": ["node -v", "node ./scripts/get-os.js"]
11+
"accessToken": "ZDc5YjI3NDItNzg5OS00YWM4LWE4ODItZjAzNjFkOWUwNzE3fHJlYWQtd3JpdGU="
1312
}
1413
}
1514
},

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"build": "nx build",
1313
"watch": "nx build --watch --configuration development",
1414
"test": "nx test",
15-
"format:write": "nx format:write",
16-
"format:check": "nx format:check",
15+
"format:check": "prettier --config ./.prettierrc --list-different \"{projects,src}/**/*{.ts,.js,.json,.html,.scss}\"",
16+
"format:all": "prettier --config ./.prettierrc --write \"{projects,src}/**/*{.ts,.js,.json,.html,.scss}\"",
1717
"build:lib": "nx build @ngu/carousel",
1818
"build:lib:watch": "nx build @ngu/carousel --watch",
1919
"build:app": "nx build",
@@ -70,7 +70,6 @@
7070
"karma-coverage": "2.2.0",
7171
"karma-jasmine": "5.1.0",
7272
"karma-jasmine-html-reporter": "2.0.0",
73-
"lint-staged": "^13.2.0",
7473
"ng-packagr": "15.0.1",
7574
"nx": "15.4.1",
7675
"postcss": "^8.4.5",

scripts/get-os.js

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

0 commit comments

Comments
 (0)