Skip to content

Commit

Permalink
chore: improve prettier and eslint scripts (#155)
Browse files Browse the repository at this point in the history
* Improve prettier scripts

* Update package.json

Co-authored-by: Marcel Schwarz <[email protected]>

* Update package.json

* Don't pin `prettier` version

* Rm `eslint` dev dependency

* `npm_config_yes=true` for `eslint` script

* Use latest `eslint` version

---------

Co-authored-by: Marcel Schwarz <[email protected]>
  • Loading branch information
hm23 and schwma authored Apr 12, 2024
1 parent 435045b commit 3220650
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"node": ">=14"
},
"scripts": {
"prettier": "npx prettier --write app lib test",
"prettier:check": "npx prettier --check app lib test",
"lint": "npx eslint .",
"prettier": "npm_config_yes=true npx prettier@latest --write app lib test",
"prettier:check": "npm_config_yes=true npx prettier@latest --check app lib test",
"lint": "npm_config_yes=true npx eslint@latest .",
"test": "jest --silent",
"test:generate-schemas": "node ./test/scripts/generate-schemas.js"
},
Expand All @@ -41,7 +41,6 @@
"devDependencies": {
"@cap-js/graphql": "file:.",
"axios": "^1",
"eslint": "^8",
"express": "^4.17.1",
"jest": "^29.3.1",
"semver": "^7.4.0",
Expand Down

0 comments on commit 3220650

Please sign in to comment.