npm

eslint-files
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

eslint-files

Created for use together with lint-staged, removes all files ESLint ignores.

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies:

npm install --save-dev eslint-files

or

for installation via yarn

yarn add --dev eslint-files

This library has a peerDependencies listing for eslint@>=7.0.0.

Example

// lint-staged.config.js
const { eslintFiles } = require("eslint-files");

module.exports = {
  "**/*.{ts,tsx,js,jsx}": async (files) =>
    `eslint --max-warnings=0 ${await eslintFiles(files)}`,
};

Dependents (0)

Package Sidebar

Install

npm i eslint-files

Weekly Downloads

7

Version

1.0.0

License

MIT

Unpacked Size

4.93 kB

Total Files

9

Last publish

Collaborators

  • paleite