Proposal: Provide a defineConfig
function
#14249
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
core
Relates to ESLint's core APIs and features
enhancement
This change enhances an existing feature of ESLint
triage
An ESLint team member will look at this issue soon
The version of ESLint you are using.
<= 7.22.0
The problem you want to solve.
When building up a
.eslintrc.js
I do not get provided inline help, autosuggestion, documentation or type-safety.Also if a new major breaking change is introduced by
eslint
, I do not see directly if my config is still working or not by opening the file and trust the compiler.Your take on the correct solution to problem.
Vite idea to the rescue 🚑
Provide a
defineConfig
function that can berequire
/import
-ed in the configuration file. It is a bit like json-schema.The
defineConfig
function itself does nothing at runtime, it's justTypeScript Playground Example
Are you willing to submit a pull request to implement this change?
I think so, but someone needs to help me to find where and how I should add the functionality and TypeScript definitions.
Alternative approach
Provide a new package like
eslint-define-config
The text was updated successfully, but these errors were encountered: