Docs: new eslint.config.js - adapt all existing content to new flat config #5938
Closed
2 of 7 tasks
Labels
documentation
Documentation ("docs") that needs adding/updating
triage
Waiting for maintainers to take a look
Before You File a Documentation Request Please Confirm You Have Done The Following...
Suggested Changes
The
eslint
flat config is generally available — no moreextends
. Let's adapt all our content for both the old and the new flat config. We'll need to add the alternative counterpart snippets and solve how to toggle between them.Also, if there was a global toggle (in the nav let's say), user would not have to toggle each snippet.
On this occasion, it would be nice to supplement the Custom rules > Testing section because there's no more
defineParser()
, and people might want few examples how to set uplet linter = new Linter({ configType: "flat" }); linter.verifyAndFix(str, [ ...
and how to test the plugin works onesprima
and@typescript-eslint/parser
. Ideally, we should link to more real-life plugin examples — simplisticruleTester
ones, then more complex ones which use test file fixtures and double-check multiple parsers,esprima
and@typescript-eslint/parser
.Affected URL(s)
require
for CJS usersThe text was updated successfully, but these errors were encountered: