Skip to content

Commit 9955efc

Browse files
authored
Run prettier in CI (#382)
Run Prettier as part of the CI-pipeline. Also, remove an ESLint rule which is already covered by Prettier (and otherwise turned off by `eslint-config-prettier`).
1 parent e0328c2 commit 9955efc

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ jobs:
1717
node-version-file: '.nvmrc'
1818
- run: npm install
1919
- run: npm run lint
20+
- run: npm run prettier

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"execute": "tsx src/bin/cli.ts",
1717
"version": "auto-changelog -p && git add CHANGELOG.md",
1818
"release": "npm run build && npm run build-cli && npm publish",
19-
"prepare": "husky install"
19+
"prepare": "husky install",
20+
"prettier": "prettier --ignore-path .gitignore --check ."
2021
},
2122
"engines": {
2223
"node": ">10.0.0"
@@ -50,11 +51,6 @@
5051
"project": "./tsconfig.eslint.json"
5152
},
5253
"rules": {
53-
"quotes": [
54-
2,
55-
"single",
56-
"avoid-escape"
57-
],
5854
"no-debugger": "error",
5955
"no-process-env": "off",
6056
"import/prefer-default-export": "off",

0 commit comments

Comments
 (0)