eslint
Original:🇺🇸 English
Translated
ESLint JavaScript linter with plugins. Use for code quality.
1installs
Sourceg1joshi/agent-skills
Added on
NPX Install
npx skill4agent add g1joshi/agent-skills eslintTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →ESLint
ESLint is the standard linter for JS/TS. v9 (2024/2025) moved to Flat Config (), a major breaking change that simplifies configuration.
eslint.config.jsWhen to Use
- Enforcing Rules: ,
no-unused-vars.react-hooks/rules-of-hooks - Code Quality: Catching bugs before they run.
Core Concepts
Flat Config (eslint.config.js
)
eslint.config.jsAn array of objects. No more string hell.
extendsjs
export default [js.configs.recommended, { rules: { semi: "error" } }];Plugins
NPM packages that add rules. .
eslint-plugin-reactParsers
@typescript-eslint/parserBest Practices (2025)
Do:
- Use Flat Config: Use the new format.
- Use : The typed linting rules are powerful (e.g.
typescript-eslint).no-floating-promises
Don't:
- Don't configure formatting rules: Disable all formatting rules (use Prettier or Biome for that). use .
eslint-config-prettier