Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@brettz9/eslint-plugin

brettz9981MIT3.0.0TypeScript support: included

Additional ESLint rules.

eslint, eslintplugin, block, scope, instanceof, isArray, static, this, rest, spread, ignore

readme

@brettz9/eslint-plugin

npm version Downloads/month Build Status Dependency Status

Additional ESLint rules and ESLint configurations. A fork of @mysticatea/eslint-plugin which extracts the rules without all of the config.

💿 Installation

npm install --save-dev eslint @brettz9/eslint-plugin

📖 Usage

Add to your ESLint configuration: https://eslint.org/docs/user-guide/configuring#using-the-configuration-from-a-plugin

Configs

  • plugin:@brettz9/es5 - Contains configuration of the project's rules suitable for ES5 (disabling arrow functions, etc.).
  • plugin:@brettz9/es6 - Contains configuration suitable for ES2015 and above. For setting ES6+ globals, you will need to set env accordingly.
  • plugin:@brettz9/es2015 - Alias for es6 config.

Rules

🚥 Semantic Versioning Policy

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

📰 Changelog

❤️ Contributing

Contributons are welcome!

Please use GitHub's Issues/PRs.

Development Tools

  • npm test runs tests and measures coverage.
  • npm run clean removes the coverage result of npm test command.
  • npm run coverage shows the coverage result of npm test command.
  • npm run update updates auto-generated files.
  • npm run watch runs tests and measures coverage when source code are changed.

changelog

CHANGES for @brettz9/eslint-plugin

3.0.0

BREAKING:

Require Node ^18.18.0 || ^20.9.0 || >=21.1.0

  • feat: add name to configs

2.1.1

  • fix: revert breaking changes

2.1.0

BREAKING:

Require Node ^18.18.0 || ^20.9.0 || >=21.1.0

  • feat: add name to configs

2.0.1

  • fix: TS

2.0.0

  • feat: native ESM/flat config
  • feat: TypeScript

1.0.4

  • npm: Update devDeps.

1.0.3

  • Avoid postinstall script which is problematic for non-pnpm dependents

1.0.2

  • Fix: Point meta.docs.url to own fork
  • Set @brettz9/block-scoped-var to "off" in ES5 config (in ESLint core)
  • Set @brettz9/arrow-parens to "off" in ES6 config (in ESLint core)

1.0.1

  • Fix: Resolution of configs

1.0.0 (Initial version)