1.1.2 โ€ข Published 4 years ago

@forter/lint-staged-config v1.1.2

Weekly downloads
6
License
Apache-2.0
Repository
github
Last release
4 years ago

Linting lint-staged

Use lint-staged to make sure your code you enter pass linters.

๐Ÿ‘จโ€๐ŸญInstalling

  • Install @forter/lint-staged-config
    npm add --save-dev @forter/lint-staged-config
  • Then add .lintstagedrc.js like so
    module.exports = {
      ...require("@forter/lint-staged-config"),
    };

    If you've installed @forter/lint-staged-config locally within your project, just set your lint-staged config 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.js file and export the modifications, e.g:

module.exports = {
  ...require("@forter/lint-staged-config"),
};
1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago