https://github.com/timobechtel/eslint-plugin-rules
Collection of useful eslint rules
https://github.com/timobechtel/eslint-plugin-rules
Last synced: 12 months ago
JSON representation
Collection of useful eslint rules
- Host: GitHub
- URL: https://github.com/timobechtel/eslint-plugin-rules
- Owner: TimoBechtel
- Created: 2025-06-20T12:35:04.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-20T13:03:22.000Z (12 months ago)
- Last Synced: 2025-06-20T13:46:03.461Z (12 months ago)
- Language: JavaScript
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# @timobechtel/eslint-plugin-rules
Collection of useful eslint rules
## Installation
You'll first need to install [ESLint](https://eslint.org/):
```sh
npm i eslint --save-dev
```
Next, install `@timobechtel/eslint-plugin-rules`:
```sh
npm install @timobechtel/eslint-plugin-rules --save-dev
```
## Usage
Here's an example ESLint configuration that enables all rules.
### `eslintrc.cjs`
```js
module.exports = {
extends: ['plugin:@timobechtel/rules/all'],
}
```
### `eslint.config.cjs` (requires eslint>=v8.23.0)
```js
const plugin = require('@timobechtel/eslint-plugin-rules');
module.exports = {
...plugin.configs['flat/all'],
}
```
## Configurations
| | Name |
| :- | :--------- |
| 🌐 | `all` |
| | `flat/all` |
## Rules
💼 Configurations enabled in.\
🌐 Set in the `all` configuration.\
💡 Manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions).
| Name | Description | 💼 | 💡 |
| :------------------------------------------------------------------------------- | :------------------------------------------------- | :--------------------- | :- |
| [no-optional-chaining-comparison](docs/rules/no-optional-chaining-comparison.md) | Disallow optional chaining in comparison operators | 🌐 ![badge-flat/all][] | 💡 |