From e0c940ba786b9b97139d32c8dcc8f1a6f35a8c76 Mon Sep 17 00:00:00 2001 From: Gaurav Gusain Date: Sun, 4 Feb 2024 18:53:24 +0530 Subject: [PATCH] docs: added linting steps in readme --- .github/workflows/ci.yml | 2 +- README.md | 6 ++---- lint-staged.config.js | 5 +---- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cabdbbe..e05479c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,4 +20,4 @@ jobs: node-version: 18.x cache: 'npm' - run: npm ci - - run: npm run validate \ No newline at end of file + - run: npm run validate diff --git a/README.md b/README.md index ab7422c..48470be 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/lint-staged.config.js b/lint-staged.config.js index a431c4c..2fb5975 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -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'] }