//eslint-config-unjsbyshinGangan

eslint-config-unjs

πŸ“– Shared ESLint config for unjs repositories

0
0
0
TypeScript

eslint-config-unjs

Sharable ESLint config preset for usage across unjs repositories.

βœ… Includes:

Getting started

[!NOTE]
This preset uses the new ESLint flat config.

Install dependencies:

npx nypm install -D eslint typescript eslint-config-unjs

Create eslint.config.mjs in your project root:

import unjs from "eslint-config-unjs";

export default unjs({
  ignores: [
    // ignore paths
  ],
  rules: {
    // rule overrides
  },
  markdown: {
    rules: {
      // markdown rule overrides
    },
  },
});

undefinedTips:undefined

  • You can pass any number of flat configs to unjs preset wrapper
  • Types for rules are auto generated using antfu/eslint-typegen.

License

MIT

[beta]v0.14.0