@kiridevs_configs/eslint

3.0.0 • Public • Published

@kiridevs_configs/eslint

This package contains my personal default eslint configuration.

Note: This package uses the new, Flat Config format (eslint.config.js). This is only supported since ESLint version v8.21.0, and will not become the default format before major version 9.

Usage

Consult LICENSE.md for license information.

This package is published on npm.

After installing it, create an eslint.config.js that re-exports this package's default export:

// eslint.config.json
export default (await import("@kiridevs_configs/eslint")).default;

Extending

This package's default export is an array of Flat Config objects. To extend it, follow standard practice for the ESLint Flat Config format (see https://eslint.org/docs/latest/use/configure/configuration-files-new):

// eslint.config.json
import kdConfig from "@kiridevs_configs/eslint";

export default [
  {
    // Allow 'debugger;' statements in CJS files
    files: ["src/**/*.cjs"],
    rules: {
        "no-debugger": "off"
    }
  }, // Make sure your OVERrides are OVER the base config
  ...kdConfig // Spread array elements into this new array
];

Readme

Keywords

Package Sidebar

Install

npm i @kiridevs_configs/eslint

Weekly Downloads

1

Version

3.0.0

License

Unlicense

Unpacked Size

5.44 kB

Total Files

4

Last publish

Collaborators

  • kiridevs