Skip to content

Commit

Permalink
Merge pull request #77 from MofuMofu2/add-package-json-sort
Browse files Browse the repository at this point in the history
package-json-sortでソートしてみた
  • Loading branch information
MofuMofu2 committed Nov 11, 2023
2 parents 348174d + a9290d5 commit e1f9b4b
Show file tree
Hide file tree
Showing 3 changed files with 205 additions and 39 deletions.
1 change: 0 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"plugins": ["prettier-plugin-sort-json"],
"semi": true,
"singleQuote": false,
"tabWidth": 2,
Expand Down
201 changes: 182 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 23 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
{
"name": "reactjs-sandbox",
"version": "1.0.0",
"license": "MIT",
"author": "MofuMofu2",
"scripts": {
"dev": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --watchAll=false",
"dev": "react-scripts start",
"eject": "react-scripts eject",
"format": "prettier -w src/*",
"format-json": "npm run sort-json && npm run prettify-json",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src",
"prepare": "husky install",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src"
"prettify-json": "prettier --write \"**/*.json\"",
"sort-json": "sort-package-json",
"test": "react-scripts test --watchAll=false"
},
"lint-staged": {
"*.ts": "prettier --write",
"*.tsx": "prettier --write"
"*.tsx": "prettier --write",
"*.json": "npm run sort-json && npm run prettify-json"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"author": "MofuMofu2",
"license": "MIT",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-regular-svg-icons": "^6.4.2",
Expand Down Expand Up @@ -62,22 +78,10 @@
"lint-staged": "^13.0.3",
"msw": "^1.2.1",
"prettier": "^3.0.3",
"prettier-plugin-sort-json": "^3.1.0",
"prop-types": "^15.8.1",
"sort-package-json": "^2.6.0",
"webpack": "^5.75.0"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"msw": {
"workerDirectory": "public"
}
Expand Down

0 comments on commit e1f9b4b

Please sign in to comment.