Ticket: Help with lint-staged setup in monorepo
@cao Just created a ticket
Question: Configuring lint-staged on monorepo Has anyone used it before?
Attempted: https://www.npmjs.com/package/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo
Working On: PR to setup eslint (lint-staged) and husky pre-commit
Using Postiz On: locally
Take it from here @Postiz
Question: Configuring lint-staged on monorepo Has anyone used it before?
Attempted: https://www.npmjs.com/package/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo
Working On: PR to setup eslint (lint-staged) and husky pre-commit
Using Postiz On: locally
Take it from here @Postiz
npm
lint-staged
Lint files staged by git. Latest version: 15.2.11, last published: 4 days ago. Start using lint-staged in your project by running
npm i lint-staged
. There are 2278 other projects in the npm registry using lint-staged.6 Replies
I followed whats provided in their docs, but seems not working.
also, something that happened.
i added this one to package json file in the root directory :
added "no-used-var" on .eslintrc.json :
when i run it, i have 2 unused var in a component, which are not caught by this lint
@Nevo David , this is how it should work ?
another test
now, got frontend and backend checks
@Postiz please help @cao