Socket
Book a DemoInstallSign in
Socket

@kiridevs_configs/eslint

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kiridevs_configs/eslint

kiriDevs' default ESLint config (mainly made for Node18, using the new Flat Config format)

3.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@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
];

Keywords

eslint

FAQs

Package last updated on 11 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.