@hi8u/lint-staged
TypeScript icon, indicating that this package has built-in type declarations

0.1.8 • Public • Published

@hi8u/lint-staged

lint-staged config for awesome projects

Install

$ yarn add -D lint-staged @hi8u/lint-staged

Usage

// lint-staged.config.js

const { buildPrettierCmd, buildEslintCmd } = require('@hi8u/lint-staged');

/**
 * @type {import("@hi8u/lint-staged").LintStagedConfig}
 */
module.exports = {
  '**/*.{js,jsx,ts,tsx}': (filenames) => {
    return [buildEslintCmd({ filenames, cwd: __dirname })];
  },
  '**/*.{json,md,mdx,css,html,yml,yaml,scss}': (filenames) => {
    return [buildPrettierCmd({ filenames })];
  },
};

Package Sidebar

Install

npm i @hi8u/lint-staged

Weekly Downloads

1

Version

0.1.8

License

MIT

Unpacked Size

4.59 kB

Total Files

6

Last publish

Collaborators

  • hi3u