Skip to content

Instantly share code, notes, and snippets.

@deandex
Created August 28, 2020 17:24
Show Gist options
  • Save deandex/02fe1e60312848301ca1bea5879cbab7 to your computer and use it in GitHub Desktop.
Save deandex/02fe1e60312848301ca1bea5879cbab7 to your computer and use it in GitHub Desktop.
Package.json Scaffolding
"devDependencies": {
"commitizen": "^4.2.1",
"cz-conventional-changelog": "^3.3.0",
"env-cmd": "^10.1.0",
"eslint-config-airbnb": "^18.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"eslint-plugin-react-hooks": "^4.0.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.13",
"prettier": "^2.1.1",
"react-scripts": "^3.4.3"
},
"scripts": {
"commit": "cz",
"lint": "./node_modules/.bin/eslint --ignore-path .eslintIgnore . --fix",
"lint-staged": "lint-staged",
"check-formatting": "prettier --list-different 'src/**/*.js'"
},
"lint-staged": {
"*.js": "eslint",
"src/**/*.{js,json,css,scss}": [
"prettier --write",
"git add"
]
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment