Skip to content

Instantly share code, notes, and snippets.

@annguyenwasd
Last active April 26, 2020 14:19
Show Gist options
  • Save annguyenwasd/68101f675c8c6cb5d43e8d1d31f42bd6 to your computer and use it in GitHub Desktop.
Save annguyenwasd/68101f675c8c6cb5d43e8d1d31f42bd6 to your computer and use it in GitHub Desktop.
my work flow with reactjs
{
"dependencies": {
"babel-plugin-styled-components": "^1.10.7",
"prop-types": "^15.7.2",
"react": "^16.13.1",
"react-dom": "^16.12.0",
"react-helmet": "^5.2.1",
"react-responsive": "^8.0.3",
"react-spring": "^8.0.27",
"react-typography": "^0.16.19",
"react-use-gesture": "^7.0.15",
"redux": "^4.0.5",
"styled-components": "^5.1.0",
"typography": "^0.16.19"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@storybook/addon-actions": "^5.3.18",
"@storybook/addon-docs": "^5.3.18",
"@storybook/addon-links": "^5.3.18",
"@storybook/addons": "^5.3.18",
"@storybook/react": "^5.3.18",
"babel-loader": "^8.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"husky": "^4.2.5",
"import-sort-cli": "^6.0.0",
"import-sort-style-react": "^5.1.0",
"prettier": "^1.19.1",
"react-is": "^16.13.1"
},
"scripts": {
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"eslint": "eslint --fix --color ./src/",
"build-storybook": "build-storybook",
"sort-imports": "./node_modules/import-sort-cli/lib/index.js --write ./src/**/*.js"
},
"husky": {
"hooks": {
"pre-commit": "npm run sort-imports; git add .;npm run eslint"
}
},
"importSort": {
".js": {
"style": "react"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment