@apitree.cz/lint-staged-config
v0.2.7
Published
Lint-staged configuration for ApiTree projects.
Readme
Lint-staged Config
Lint-staged configuration for ApiTree projects
Installation
pnpm add --save-dev @apitree.cz/lint-staged-config lint-stagedUsage
Monorepos
Install the package with lint-staged and create a lint-staged.config.js file in the root of your monorepo:
export { root as default } from '@apitree.cz/lint-staged-config';Then, create a lint-staged.config.js file in each workspace:
export { workspace as default } from '@apitree.cz/lint-staged-config';Workspaces with distributable packages
If the workspace contains a distributable package (aka library), use the following configuration instead:
export { library as default } from '@apitree.cz/lint-staged-config';See the WebStorm Settings in PNPM Monorepos section in
@apitree.cz/ts-configfor further information.
Single-package repos
Install the package and create a lint-staged.config.js file in the root of your project:
export { singlePackage as default } from '@apitree.cz/lint-staged-config';