Configures ESLint v9 flat config and neostandard for JavaScript and TypeScript projects, including migrating from legacy `.eslintrc*` files or the `standard` package. Use when you need to set up or fix linting with `eslint.config.js` or `eslint.config.mjs`, troubleshoot lint errors, configure neostandard rules, migrate from `.eslintrc` to flat config, or integrate linting into CI pipelines and pre-commit hooks.
96
95%
Does it follow best practices?
Impact
97%
1.25xAverage score across 5 eval scenarios
Passed
No known issues
A JavaScript monorepo uses Prettier for code formatting and wants to add ESLint v9 with neostandard for code quality rules (not style rules — Prettier already handles formatting). The project also has strict requirements around import/export correctness and wants ESLint to enforce that no modules import from non-existent paths or use circular dependencies.
The repo has a .gitignore that already lists the directories that should be excluded from tooling (dist/, coverage/, node_modules/, etc.), and the team doesn't want to maintain a separate list of ESLint ignores. They also use semicolons consistently throughout the codebase (semistandard style).
Produce an eslint.config.js and an updated package.json with the correct dependencies and scripts. Do NOT run npm install.
eslint.config.js — ESLint v9 flat config using neostandard with appropriate options for this setuppackage.json — with all required devDependencies and npm lint scriptsThe following files are provided as inputs. Extract them before beginning.
=============== FILE: package.json =============== { "name": "monorepo-tools", "version": "1.0.0", "type": "module", "scripts": { "format": "prettier --write .", "build": "node scripts/build.js" }, "devDependencies": { "prettier": "^3.2.0" } }
=============== FILE: .gitignore =============== node_modules/ dist/ coverage/ .env *.log tmp/
=============== FILE: src/index.js =============== import { helper } from './helper.js'
export function run() { return helper('world'); }
=============== FILE: src/helper.js ===============
export function helper(name) {
return Hello, ${name}!;
}