npm.io
0.3.0 • Published 3d ago

@batou.dev/eslint-config

Licence
MIT
Version
0.3.0
Deps
0
Size
9 kB
Vulns
0
Weekly
0

eslint-config

This package provides a reusable ESLint configuration with JavaScript and TypeScript support.

Usage

Get started by installing the required packages:

npm install --save-dev eslint @batou.dev/eslint-config

Then, if you use JavaScript, configure your eslint.config.mjs file:

import { defineConfig } from "eslint/config";

export default defineConfig(
  batou.gitignore(import.meta.url),
  ...batou.configs.javascript,
);

Otherwise, if you use TypeScript, configure your eslint.config.ts file:

import ts from "typescript-eslint";

export default ts.config(
  batou.gitignore(import.meta.url),
  ...batou.configs.javascript,
  ...batou.configs.typescript,
  // or ...batou.configs.typescriptTypeChecked,
);

License

This code is licensed and distributed under the term of the MIT license.

Keywords