1.0.6 • Published 4 years ago
@binary64/eslint-plugin v1.0.6
@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-pluginSupported 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 ID | Description | |
|---|---|---|
| @binary64/formik-require-generic | Force the use of generics when using Formik component | ⭐️ |
| @binary64/react-deprecate-fc | Prevents the use of React.FC | ⭐️ |
Stylistic Issues
| Rule ID | Description | |
|---|---|---|
| @binary64/classnames-require | Enforce stylistic rules on the usage of 'classnames' module. | ⭐️ |
| @binary64/react-consistent-usestate-naming | Enforce 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 testruns tests.npm run updateupdates the package version. And it updatessrc/configs/recommended.ts,lib/index.ts, andREADME.md's rule table. See also npm version CLI command.npm run add-rule <RULE_ID>creates three files to add a new rule.