Skip to content

Instantly share code, notes, and snippets.

@bengrunfeld
Created September 3, 2020 08:02
Show Gist options
  • Save bengrunfeld/3bb7a750f471caadc03cc62173c8b0ff to your computer and use it in GitHub Desktop.
Save bengrunfeld/3bb7a750f471caadc03cc62173c8b0ff to your computer and use it in GitHub Desktop.
Package.json for ESLint, TypeScript, and Prettier, with config for Husky and Lint-Staged
{
"name": "your-app",
"version": "0.1.0",
"private": true,
"license": "UNLICENSED",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "eslint '*/**/*.{js,ts,tsx}' --fix",
"test": "jest --watch"
},
"dependencies": {
"babel-plugin-styled-components": "^1.11.1",
"formik": "^2.1.5",
"isomorphic-unfetch": "^3.0.0",
"next": "9.5.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"styled-components": "^5.1.1",
"swr": "^0.3.1",
"yup": "^0.29.3"
},
"devDependencies": {
"@types/node": "^14.6.2",
"@types/react": "^16.9.48",
"@types/styled-components": "^5.1.2",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"babel-jest": "^26.3.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.6",
"husky": "^4.2.5",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.4.2",
"lint-staged": "^10.2.13",
"prettier": "^2.1.1",
"typescript": "^4.0.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment