Skip to content

Commit

Permalink
[Feature]: Automate the process to check and fix lint issues (#1241)
Browse files Browse the repository at this point in the history
* feat: added husky for lint and prettier

* chore: changed access permission for file

---------

Co-authored-by: Supriya M <[email protected]>
  • Loading branch information
supminn and supriya-ck12 authored Sep 21, 2023
1 parent 883c114 commit 49072ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn pre-commit
12 changes: 11 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,15 @@
"cypress:run": "cypress run",
"lint": "eslint src/**/*.{js,jsx,ts,tsx}",
"lint:fix": "eslint --fix src/**/*.{js,jsx,ts,tsx}",
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,css,md}\" --config ./.prettierrc"
"format": "prettier --write \"./src/**/*.{js,jsx,ts,tsx,css,md}\" --config ./.prettierrc",
"prepare": "husky install",
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.+(js|jsx|ts|tsx)": [
"eslint --fix",
"prettier --write"
]
},
"reactSnap": {
"puppeteerArgs": [
Expand Down Expand Up @@ -132,6 +140,8 @@
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.2",
"postcss": "^8.4.13",
"prettier": "^2.7.1",
"puppeteer": "^13.7.0",
Expand Down

1 comment on commit 49072ff

@vercel
Copy link

@vercel vercel bot commented on 49072ff Sep 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-play – ./

reactoplay.vercel.app
react-play-git-main-reactplayio.vercel.app
react-play-reactplayio.vercel.app

Please sign in to comment.