Skip to content

Commit

Permalink
Update prettier to have config in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
plural committed Jan 15, 2024
1 parent 028e087 commit 83f8c5b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"format": "prettier --plugin=prettier-plugin-sort-json --no-color --json-recursive-sort --write '{{**,.}/*.json,.*.json,*.json}'",
"format-check": "prettier --plugin=prettier-plugin-sort-json --no-color --json-recursive-sort --check '{{**,.}/*.json,.*.json,*.json}'",
"format": "prettier --no-color --write '{{**,.}/*.json,.*.json,*.json}'",
"format-check": "prettier --no-color --check '{{**,.}/*.json,.*.json,*.json}'",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"prepare": "husky install",
"test": "mocha -R list -r ts-node/register test/*.ts test/**/*.ts",
Expand Down Expand Up @@ -42,5 +42,11 @@
},
"lint-staged": {
"{{**,.}/*.json,.*.json,*.json}": "prettier --write"
},
"prettier": {
"jsonRecursiveSort": true,
"plugins": [
"prettier-plugin-sort-json"
]
}
}

0 comments on commit 83f8c5b

Please sign in to comment.