Tooling concepts

Configure ESLint as a code-quality gate

Try the free JavaScript compiler

A linter analyzes source for configured code patterns. ESLint rules can report potential bugs or project conventions, but do not prove application correctness. Do not disable a rule globally just to silence one legitimate exception; document the narrow reason. Example type: javascript. Context: lint-lab. Expected observation: Config enables two error-level rules for matching JS files.. Manual integration; not executed here.

Formal Syntax & Structure

javascript syntaxjavascript
// eslint.config.mjsexport default [{ files: ["**/*.js"], rules: { "no-unused-vars": "error", eqeqeq: "error" } }];

Working Example

Example Snippetjavascript
// eslint.config.mjsexport default [{ files: ["**/*.js"], rules: { "no-unused-vars": "error", eqeqeq: "error" } }];
JavaScript Reference