@fundamend/config-lint-staged
v0.1.1
Published
_config-lint-staged_ is a configuration preset for [lint-staged] used by the [fundamend.dev] ecosystem.
Downloads
11
Readme
config-lint-staged
config-lint-staged is a configuration preset for lint-staged used by the fundamend.dev ecosystem.
Installation
Use your favorite Node.js package manager, for example npm, like so:
npm install --save-dev @fundamend/config-lint-staged
... or yarn, like so:
yarn add --dev @fundamend/config-lint-staged
Usage
In your .lintstagedrc.js, import config-lint-staged and use it in the exported object, like so:
const config = require('@fundamend/config-lint-staged');
module.exports = {
...config
};
You can extend the imported preset by adding additional configuration options to the exported configuration object, for example like this:
const config = require('@fundamend/config-lint-staged');
module.exports = {
...config,
'*.{js,ts}': 'eslint'
};