ESLint
Quick start
Section titled “Quick start”tinkerise add eslintWhat it detects
Section titled “What it detects”The eslint module treats the enhancement as installed when it finds any ESLint config file or an eslintConfig key in package.json.
Detection includes both flat and legacy file names:
eslint.config.js|mjs|cjs|ts.eslintrc.js|cjs|json|yml|yaml
What it installs
Section titled “What it installs”eslint always installs:
eslint@eslint/jsglobals
It conditionally installs:
typescript-eslintwhen TypeScript is already presenteslint-plugin-reactfornext,react, andremixeslint-plugin-vueforvueandnuxteslint-plugin-svelteforsvelteeslint-plugin-astroforastro
Generated config behavior
Section titled “Generated config behavior”The generated flat config is framework-aware and includes:
@eslint/jsrecommended rules- TypeScript rules when TypeScript is detected
- Browser + Node globals from
globals - Framework plugin config blocks when a supported framework is detected
File and config changes
Section titled “File and config changes”- Writes
eslint.config.jsfor"type": "module"projects - Writes
eslint.config.mjsfor non-module projects - Adds a
lintscript:eslint .
Expected outcome after tinkerise add eslint:
- ESLint config file at project root
- New dev dependencies for your runtime/framework
package.jsoncontains a workinglintscript
Conflict handling
Section titled “Conflict handling”If ESLint config already exists, the executor treats it as a conflict. Interactive runs can show a diff and let you accept or skip changes.