🚀 Feature: Better use tseslint.config extends and otherwise simplify eslint.config.js #1690
Closed
2 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Milestone
Bug Report Checklist
main
branch of the repository.Overview
Splitting out of #1670: I realized that
eslint.config.js
file is missing some size-cutting optimizations:tseslint.config
. The inner one is redundant.perfectionist/sort-objects
, it could use the newersettings
available as of feat: allow specifying cross-rule settings azat-io/eslint-plugin-perfectionist#206plugins: { vitest }
block could use the cleanervitest.configs.recommended
I thinkNo, it's just thatn/no-missing-import
is no longer necessary now that lint relies on buildingcreate-typescript-app
itself doesn't have ats
code block in its README.md...I thinkNo, it's just thattseslint.disableTypeChecked
on.md/*.ts
files is no longer necessary now that lint relies on buildingcreate-typescript-app
itself doesn't have ats
code block in its README.md...no-constant-condition
can be removed now that it allowswhile(true)
by default in ESLint v9.1.0"@typescript-eslint/no-unused-vars": ["error", { caughtErrors: "all" }],
is now redundant tooparserOptions.projectService.defaultProject
can be omitted now that its default is'tsconfig.json'
as of TSESLint 8.5.0files: ["*.jsonc"],
overrides are no longer necessary now that no.jsonc
files existSee https://github.com/JoshuaKGoldberg/create-typescript-app/blob/48c734da02f14e4e890d955607d9ad2426d2052a/eslint.config.js for the trimmed-down version.
Additional Info
💖
The text was updated successfully, but these errors were encountered: