question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI menu with preset selection "htmlhint --init"

See original GitHub issue

Is 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:open
  • Created 5 years ago
  • Reactions:4
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
Shinigami92commented, Aug 29, 2018
1reaction
dreamalligatorcommented, May 14, 2020

wonderful to hear, ty x a million.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found