@rescripts/rescript-use-eslint-config
v0.0.11@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 yourpackage.json
.
Inline config
[
[
"use-eslint-config",
{
"extends": ["react-app"],
"plugins": ["some-plugin"],
"rules": {
"some-rule": 0
}
}
]
]
npm i @rescripts/rescript-use-eslint-config
Source Code
github.com/rescripts/rescrip...Metadata
- MIT
- Whatever
- Unknown
- released 3/16/2020