eslint-plugin-nitpick
TypeScript icon, indicating that this package has built-in type declarations

0.12.0 • Public • Published

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-vars Warns against variables that are returned without any other usage 🌐 ✅ 💡
no-useless-interpolation Warns against template-literal interpolation with a literal 🌐 ✅ 🔧 💡
no-useless-rest Warns against using a rest element without destructuring other properties/elements 🌐 ✅ 💡
prefer-if-conditionals Prefer an if statement to using logical operators (?:, && or ||) in expressions 🌐 ✅ 🔧 💡
prefer-not-equals Prefer using the not-equals operator (a !== b) over inverting the equals operator (!(a === b)) 🌐 ✅ 💡

Configs

Name
🌐 all
recommended

Package Sidebar

Install

npm i eslint-plugin-nitpick

Weekly Downloads

564

Version

0.12.0

License

MIT

Unpacked Size

22.7 kB

Total Files

20

Last publish

Collaborators

  • ej-shafran