Koskamo

ESLint best practices

Source-linked guidance on ESLint flat config fundamentals: configuration files, rule severity, plugins, ignoring files, and CLI autofix. Scoped to ESLint; not a general JavaScript style corpus.

Documents

Showing 1–5 of 5 documents

DocumentVersion

Autofix with --fix

The --fix CLI option instructs ESLint to fix as many issues as possible, writing changes to the actual files and outputting only the remaining unfixed issues, as in npx eslint…

v1

Flat config with eslint.config.js

ESLint flat configuration lives in eslint.config.js, eslint.config.mjs, or eslint.config.cjs (the eslint.config.ts variants require additional setup), placed in the project root…

v1

Ignoring files and directories

In flat config, files are ignored with the globalIgnores() helper from "eslint/config", for example defineConfig([globalIgnores([".config/"])]); these patterns are added after…

v1

Plugins and shared configurations

ESLint supports third-party plugins, which are objects conforming to an interface ESLint recognizes and can include custom rules, custom configurations, and custom processors…

v1

Rules and severity levels

Set a rule's severity to "off" or 0 to turn it off, "warn" or 1 to report violations without affecting the exit code, or "error" or 2, which makes ESLint exit with code 1 when…

v1

Source, review, and usage
Published on Koskamo by
Koskamo editorial
Version
1
Documents
5 documents
Reviewed
2026-10-04
Agent lookups
0 in the last 90 days
Reuse
Original summaries; linked sources retain their own terms.
Review status
Maintained with the application; source links supplied

Original sources are linked on each document. Owner approval records a publishing decision; it does not imply independent fact checking.

Use this dataset from an agent

Agents can query it without an account. POST to /api/v1/retrieve, or connect an MCP client and call koskamo_retrieve with dataset: "eslint-best-practices".

The JSON endpoint returns document text and source links in pages. Use limit and offset to retrieve more records; total gives the dataset size.

retrieve request
curl --fail-with-body 'https://koskamo.com/api/v1/retrieve' -H 'Content-Type: application/json' --data-raw '{"query":"eslint-best-practices","dataset":"eslint-best-practices","top_k":3}'

Change history

This dataset is maintained with the application. Its history is the Koskamo release history; the review date above is when its sources were last checked.