0.12.0 β€’ Published 7 months ago

eslint-plugin-nitpick v0.12.0

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

eslint-plugin-nitpick

Nitpicky ESLint rules.

Installation

npm install -D eslint eslint-plugin-nitpick

Configuration

To use the recommended configuration:

import nitpick from "eslint-plugin-nitpick";

export default [
  // ...
  nitpick.configs.recommended,
];

To turn on every rule:

import nitpick from "eslint-plugin-nitpick";

export default [
  // ...
  nitpick.configs.all,
];

See more: Configuring Plugins.

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🌐 βœ…πŸ”§πŸ’‘
prefer-not-equalsPrefer using the not-equals operator (a !== b) over inverting the equals operator (!(a === b))🌐 βœ…πŸ’‘

Configs

Name
🌐all
βœ…recommended
0.12.0

7 months ago

0.11.0

7 months ago

0.10.0

8 months ago

0.6.0

1 year ago

0.5.1

1 year ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago