CLI
The main package ships a CLI that can scaffold or refresh the project config.
sh
pnpm dlx @santi020k/eslint-config-basic init
pnpm dlx @santi020k/eslint-config-basic updatesh
npx @santi020k/eslint-config-basic init
npx @santi020k/eslint-config-basic updatesh
yarn dlx @santi020k/eslint-config-basic init
yarn dlx @santi020k/eslint-config-basic updatesh
bunx @santi020k/eslint-config-basic init
bunx @santi020k/eslint-config-basic updateWhat It Does
- Detects TypeScript, runtime, and supported optional integrations from
package.json. - Chooses
eslint.config.jsfor ESM projects. - Chooses
eslint.config.mjsotherwise. - Includes explicit framework imports in generated configs.
- Adds React automatically when Next.js or Expo is detected.
Usage
sh
pnpm dlx @santi020k/eslint-config-basic initsh
npx @santi020k/eslint-config-basic initsh
yarn dlx @santi020k/eslint-config-basic initsh
bunx @santi020k/eslint-config-basic initIf the package is already installed locally, the basic-eslint bin is also available through your package manager's local binary resolution.
Update an Existing Config
sh
pnpm dlx @santi020k/eslint-config-basic updatesh
npx @santi020k/eslint-config-basic updatesh
yarn dlx @santi020k/eslint-config-basic updatesh
bunx @santi020k/eslint-config-basic updateUse update when you want to regenerate the file after adding or removing dependencies.
When to Use Each Command
- Use
initwhen the project does not have an ESLint flat config yet. - Use
updatewhen the dependency graph changed and you want a fresh generated baseline. - Use manual editing when the config already has custom organization that you do not want regenerated.
Why the Generated Config Stays Explicit
The CLI is the bridge between detection and maintainable source code. Detection can infer that a project uses Next.js or Astro, but the generated file still writes explicit imports so your config remains readable and reviewable.
Notes
- The CLI detects frameworks, but it does not hide them behind implicit runtime magic.
- Existing
eslint.config.jsoreslint.config.mjsfiles are respected for updates. - The generated file is a starting point that you can still edit by hand.
Repository Links
- Source Package: packages/basic
- Project Repository: santi020k/eslint-config-basic
