Skip to content

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.

NameDescription
recommendedhalf nonsense
allcomplete nonsense
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,
]

Released under the MIT License