CLI menu with preset selection "htmlhint --init"
See original GitHub issueIs your feature request related to a problem? Please describe. If you start a new project and maybe use HTMLHint for the first time you do not know how to create a configuration file
Describe the solution you’d like
Create a new option in the CLI Tool init
The developer should see something like this:
$ node_modules/.bin/htmlhint --init
? How would you like to configure HTMLHint? (Use arrow keys)
Use a popular style guide
❯ Answer questions about your style
Inspect your HTML file(s)
? Which version of HTML do you use? (Use arrow keys)
❯ HTML 5
HTML 4.01 Transitional
HTML 4.01 Strict
XHTML 1.0 Transitional
XHTML 1.0 Strict
HTML 4.01 Frameset
XHTML 1.0 Frameset
XHTML 1.1
? Are you using svg? (y/N)
? Will you use a frontend framework? (Press <space> to select, <a> to toggle all, <i> to invert selection)
❯ Angular
AngularJS
Vue
...
? What style of indentation do you use? (Use arrow keys)
❯ Tabs
Spaces
? What quotes do you use for attribute values? (Use arrow keys)
❯ Double
Single
? What format do you want your config file to be in? (Use arrow keys)
❯ JSON
YAML
Successfully created .htmlhintrc.json file in ...
Additional context eslint already supports something like this https://eslint.org/docs/user-guide/getting-started#local-installation-and-usage
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Command-Line Interface (CLI) - HTMLHint
You can use HTMLHint on the command-line. For example: ... npx htmlhint index.html. Use npx htmlhint --help to print the CLI documentation.
Read more >How can I create a user selection menu in commandline for ...
I want to create a user selection menu like ...
Read more >Tasks in Visual Studio Code
To do so, select Configure Default Build Task from the global Terminal menu. This shows you a picker with the available build tasks....
Read more >dev-init - npm Package Health Analysis | Snyk
Initialize a new project with Kiril-approved settings For more information about how to use this package see README. Latest version published 4 years...
Read more >CodeMirror 5 User Manual
This will initialize the editor with a piece of code already in it, ... Options are not checked in any way, so setting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The first draft can be seen here: https://github.com/Shinigami92/HTMLHint/blob/feature/cli-htmlhint-init/bin/cli-init-configuration.js
Looks like that:
wonderful to hear, ty x a million.