Configs
The easiest way to use eslint-plugin-ninja
is to use ready-made configs. Config files use all the rules of the current plugin, but you can override them.
This plugin provides three configs out of the box.
See the ESLint docs for more information about extending config files.
Name | Description |
---|---|
recommended | half nonsense |
all | complete nonsense |
recommended
json
// .eslintrc
{
"plugin": ["ninja"],
"extends": ["plugin:ninja/recommended"]
}
js
// eslint.config.js
import ninjadvised from 'eslint-plugin-ninja/configs/recommended'
export default [
ninjadvised,
]
all
json
// .eslintrc
{
"plugin": ["ninja"],
"extends": ["plugin:ninja/all"]
}
js
// eslint.config.js
import ninjall from 'eslint-plugin-ninja/configs/all'
export default [
ninjall,
]