1.1.2 โข Published 6 years ago
@forter/lint-staged-config v1.1.2
Linting lint-staged
Use lint-staged to make sure your code you enter pass linters.
๐จโ๐ญInstalling
- Install
@forter/lint-staged-confignpm add --save-dev @forter/lint-staged-config - Then add
.lintstagedrc.jslike somodule.exports = { ...require("@forter/lint-staged-config"), };If you've installed
@forter/lint-staged-configlocally within your project, just set yourlint-stagedconfig to:
๐ฉโ๐ What you get
This will install @forter/lint-staged-config, a config based on forter will run different checks on different files commit
๐จโ๐ป Usage
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:
"@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.jsfile and export the modifications, e.g:module.exports = { ...require("@forter/lint-staged-config"), };