Lint-staged configuration for ApiTree projects.
npm install @apitree.cz/lint-staged-config``bash`
pnpm add --save-dev @apitree.cz/lint-staged-config lint-staged
Install the package with lint-staged and create a lint-staged.config.js file in the root of your monorepo:
`js`
export { root as default } from '@apitree.cz/lint-staged-config';
Then, create a lint-staged.config.js file in each workspace:
`js`
export { workspace as default } from '@apitree.cz/lint-staged-config';
> Note: The library export was previously recommended for workspaces with distributable packages but is now deprecated. Use workspace for all workspace configurations.
Install the package and create a lint-staged.config.js file in the root of your project:
`js``
export { singlePackage as default } from '@apitree.cz/lint-staged-config';