lint staged config
npm install @forter/lint-staged-config- Install @forter/lint-staged-config
``bash`
npm add --save-dev @forter/lint-staged-config
.lintstagedrc.js
- Then add like so`
> js`
> module.exports = {
> ...require("@forter/lint-staged-config"),
> };
> @forter/lint-staged-config
If you've installed locally within your project, just set your lint-staged config to:
This will install @forter/lint-staged-config, a config based on forter will run different checks on different files commit
If you don't want to use package.json, you can use any of the supported extensions to export a string, e.g. .lintstagedrc.js:
`json`
"@forter/lint-staged-config"
An example configuration repository is available here.
> Note: This method does not offer a way to _extend_ the configuration to overwrite some properties from the shared configuration. If you need to do that, import the file in a .lintstagedrc.js file and export the modifications, e.g:`
>
> js``
> module.exports = {
> ...require("@forter/lint-staged-config"),
> };
>