Skip to content

Commit

Permalink
docs: added linting steps in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Gusain committed Feb 4, 2024
1 parent 5519d60 commit e0c940b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
node-version: 18.x
cache: 'npm'
- run: npm ci
- run: npm run validate
- run: npm run validate
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ Instead, it will copy all the configuration files and the transitive dependencie

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More
## Other Information

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
1. Linting and CI setup - [Link](https://karthickragavendran.medium.com/protect-react-codebase-with-eslint-prettier-typescript-lint-staged-and-husky-9dd549bdb1c)
5 changes: 1 addition & 4 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
'*.{ts,tsx,js,jsx,css,md}': (filenames) => [
'npm run format:fix',
'npm run validate'
]
'*.{ts,tsx,js,jsx,css,md}': (filenames) => ['npm run validate']
}

0 comments on commit e0c940b

Please sign in to comment.