@rescripts/rescript-use-eslint-config

0.0.11 • Public • Published

@rescripts/rescript-use-eslint-config

About

Use your own ESLint configuration.

Installation

npm i -D @rescripts/rescript-use-eslint-config

Usage

From a .eslintrc:

[["use-eslint-config", ".eslintrc"]]

Searches for the config in your root directory.

From config file

Call use-eslint-config with .eslintrc.js, .eslintrc.json, or any other file name (must have .js or .json extension).

[["use-eslint-config", "name-your-eslint-config-whatever.js"]]

Searches for the config from your root directory and node_modules.

From package.json

[["use-eslint-config", "package"]]

Searches for the config within the eslintConfig field of your package.json.

Inline config

[
  [
    "use-eslint-config",
    {
      "extends": ["react-app"],
      "plugins": ["some-plugin"],
      "rules": {
        "some-rule": 0
      }
    }
  ]
]

Readme

Keywords

none

Package Sidebar

Install

npm i @rescripts/rescript-use-eslint-config

Weekly Downloads

2,534

Version

0.0.11

License

MIT

Unpacked Size

4.19 kB

Total Files

4

Last publish

Collaborators

  • harrysolovay