@rescripts/rescript-use-eslint-config
v0.0.11
Published
## About
Readme
@rescripts/rescript-use-eslint-config
About
Use your own ESLint configuration.
Installation
npm i -D @rescripts/rescript-use-eslint-configUsage
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
eslintConfigfield of yourpackage.json.
Inline config
[
[
"use-eslint-config",
{
"extends": ["react-app"],
"plugins": ["some-plugin"],
"rules": {
"some-rule": 0
}
}
]
]