Requirements
Install
Verify the install
The plugin default export contains everything you need:Next step
Quick start
Pick a preset and start linting.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Add the Gadget ESLint plugin to your project.
| Dependency | Version |
|---|---|
| Node.js | >= 18.18 |
| ESLint | >= 9 |
| Config format | Flat config (eslint.config.js or eslint.config.mjs) |
.eslintrc files are not supported. The plugin uses the ESLint flat config format exclusively.yarn add -D @aurelienbbn/eslint-plugin-gadget eslint
import gadget from "@aurelienbbn/eslint-plugin-gadget";
// gadget.configs.recommended - warns on most rules, errors on critical ones
// gadget.configs.strict - errors on every rule
// gadget.rules - all 16 rules
// gadget.meta.name - "@aurelienbbn/eslint-plugin-gadget"
// gadget.meta.version - current version
Was this page helpful?