1.0.6 • Published 3 years ago

@binary64/eslint-plugin v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@binary64/eslint-plugin

A collection of ESLint plugins.

Installation

Use npm or a compatibility tool to install.

npm install --save-dev eslint @binary64/eslint-plugin
yarn add -D eslint @binary64/eslint-plugin

Supported versions

  • Node.js v16 or newer.
  • ESLint v8 or newer.

Usage

Edit your .eslintrc.json:

{
  "extends": ["plugin:@binary64/recommended"],
}

See also Configuring ESLint.

Configs

  • @binary64/recommended ... enables the recommended rules.

Rules

Typing Issues

Rule IDDescription
@binary64/formik-require-genericForce the use of generics when using Formik component⭐️
@binary64/react-deprecate-fcPrevents the use of React.FC⭐️

Stylistic Issues

Rule IDDescription
@binary64/classnames-requireEnforce stylistic rules on the usage of 'classnames' module.⭐️
@binary64/react-consistent-usestate-namingEnforce stylistic rules on the usage of React.useState⭐️

Semantic Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

Changelog

Contributing

Your contributions are welcomed. Please open an Issue, PR, or Discussion.

See also ESLint Contribution Guide.

Development Tools

  • npm test runs tests.
  • npm run update updates the package version. And it updates src/configs/recommended.ts, lib/index.ts, and README.md's rule table. See also npm version CLI command.
  • npm run add-rule <RULE_ID> creates three files to add a new rule.