0.6.0 β€’ Published 4 months ago

eslint-plugin-nitpick v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

eslint-plugin-nitpick

Nitpicky ESLint rules.

Installation

npm install -D eslint eslint-plugin-nitpick

Configuration

Old (.eslintrc.*)

module.exports = {
  // ...
  plugins: [
    // ...
    "nitpick",
  ],
  extends: [
    // ...
    "nitpick/recommended",
  ],
};

New (eslint.config.js)

Either use one of the configs in eslint-plugin-nitpick/lib/configs or import the plugin as a standalone from eslint-plugin-nitpick.

const nitpickRecommended = require("eslint-plugin-nitpick/lib/configs/recommended");

module.exports = {
  // ...
  ...nitpickRecommended,
};

Rules

πŸ’Ό Configurations enabled in.\ 🌐 Set in the all configuration.\ βœ… Set in the recommended configuration.\ πŸ”§ Automatically fixable by the --fix CLI option.\ πŸ’‘ Manually fixable by editor suggestions.

NameΒ Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β Β DescriptionπŸ’ΌπŸ”§πŸ’‘
no-redundant-varsWarns against variables that are returned without any other usage🌐 βœ…πŸ’‘
no-useless-interpolationWarns against template-literal interpolation with a literal🌐 βœ…πŸ”§πŸ’‘
no-useless-restWarns against using a rest element without destructuring other properties/elements🌐 βœ…πŸ’‘
prefer-if-conditionalsPrefer an if statement to using logical operators (?:, && or \|\|) in expressions🌐 βœ…πŸ”§πŸ’‘

Configs

Name
🌐all
βœ…recommended
0.6.0

4 months ago

0.5.1

4 months ago

0.5.0

4 months ago

0.4.1

6 months ago

0.4.0

6 months ago

0.3.0

6 months ago

0.2.0

6 months ago

0.1.1

7 months ago

0.1.0

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago