eslint / create-config

Utility to create ESLint config files
MIT License
76 stars 19 forks source link

Ask which languages to lint #148

Open nzakas opened 1 month ago

nzakas commented 1 month ago

Now that we can lint JSON and Markdown, we should incorporate this into the setup flow.

First Question

The first question should now be (with checkboxes):

What do you want to lint?
(x) JavaScript
( ) JSON
( ) JSON with comments
( ) JSON5
( ) Markdown

The JavaScript option should be checked by default and if unchecked, we should add this to the config:

{
    ignores: ["**/*.js", "**/*.cjs", "**/*.mjs"]
}

If Markdown is Checked

If someone checks Markdown, then we should ask (radio buttons):

What flavor of Markdown to you want to lint?
(x) CommonMark
( ) GitHub-Flavored Markdown