diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2022-03-21 12:46:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-21 04:46:11 +0100 |
commit | 584d8b977b3b8276da3c9035a3d16e61840fc0dc (patch) | |
tree | e38ff4eaaa27e594cbd2cc084442384d99ee0146 /package.json | |
parent | cf5435bb27b38f317d7d02de4df49c517614b4be (diff) |
Format JSON and YAML using Prettier (#17823)
* Format JSON and YAML using Prettier * Add prettier to devDep
Diffstat (limited to 'package.json')
-rw-r--r-- | package.json | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json index d42c92ced..61b3622f7 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ "test:lint": "${npm_execpath} run test:lint:js && ${npm_execpath} run test:lint:sass", "test:lint:js": "eslint --ext=js . --cache", "test:lint:sass": "sass-lint -v", - "test:jest": "cross-env NODE_ENV=test jest" + "test:jest": "cross-env NODE_ENV=test jest", + "format": "prettier --write '**/*.{json,yml}", + "format-check": "prettier --write '**/*.{json,yml}" }, "repository": { "type": "git", @@ -182,6 +184,7 @@ "eslint-plugin-promise": "~6.0.0", "eslint-plugin-react": "~7.29.3", "jest": "^27.5.1", + "prettier": "^2.6.0", "raf": "^3.4.1", "react-intl-translations-manager": "^5.0.3", "react-test-renderer": "^16.14.0", |