JSPM

  • Created
  • Published
  • Downloads 13536
  • Score
    100M100P100Q132471F
  • License MIT

Utility to create ESLint config files.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@eslint/create-config) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    @eslint/create-config

    Utility to create ESLint config files

    Usage

    Prerequisites: Node.js (^12.22.0, ^14.17.0, or >=16.0.0) built with SSL support. (If you are using an official Node.js distribution, SSL is always built in.)

    You can use npm/npx(shipped with Node.js).

    # use npm
    npm init @eslint/config
    # use npx
    npx @eslint/create-config

    If you want to use a specific shareable config that is hosted on npm, you can use the --config option and specify the package name:

    # use `eslint-config-semistandard` shared config
    
    # npm 7+
    npm init @eslint/config -- --config semistandard
    
    # or (`eslint-config` prefix is optional)
    npm init @eslint/config -- --config eslint-config-semistandard
    
    # ⚠️ npm 6.x no extra double-dash:
    npm init @eslint/config --config semistandard

    The --config flag also supports passing in arrays:

    npm init @eslint/config -- --config semistandard,standard
    # or
    npm init @eslint/config -- --config semistandard --config standard