jam/package.json
Daniel 08232d7d36
feat: setup code formatting (#21)
* Install prettier

* Install husky

* Add npm lint and format scripts

* Format files

* Remove unused import

* Setup prettier config

* Update line width

* Update package.json

Co-authored-by: d11n <mail@dennisreimann.de>

* Reformat

Co-authored-by: d11n <mail@dennisreimann.de>
2022-01-27 10:20:31 +01:00

74 lines
1.9 KiB
JSON

{
"name": "joinmarket-webui",
"version": "0.0.2",
"private": true,
"description": "JoinMarket Web UI",
"repository": "git@github.com:joinmarket-webui/joinmarket-webui.git",
"license": "MIT",
"engines": {
"node": ">=16.0.0",
"npm": ">=7.0.0"
},
"homepage": ".",
"devDependencies": {
"@ibunker/bitcoin-react": "^0.1.13-cd",
"@popperjs/core": "^2.11.2",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"bootstrap": "^5.1.3",
"buffer": "^6.0.3",
"http-proxy-middleware": "^2.0.1",
"husky": "^7.0.4",
"lint-staged": "^12.3.1",
"moving-letters": "^1.0.1",
"nth-check": ">=2.0.1",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-bootstrap": "^2.1.1",
"react-dom": "^17.0.2",
"react-router-bootstrap": "^0.26.0",
"react-router-dom": "^6.2.1",
"react-scripts": "^5.0.0",
"web-vitals": "^2.1.4"
},
"dependencies": {
"react-icons": "^4.3.1",
"serve": "13.0.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"prepare": "husky install",
"lint": "prettier --check --no-error-on-unmatched-pattern src/**/*.{js,jsx,json,css,md}",
"format": "prettier --write --no-error-on-unmatched-pattern src/**/*.{js,jsx,json,css,md}"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": true
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"src/**/*.{js,jsx,json,css,md}": "prettier --no-error-on-unmatched-pattern --write"
}
}