Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI menu with preset selection "htmlhint --init" #280

Open
Shinigami92 opened this issue Aug 28, 2018 · 11 comments
Open

CLI menu with preset selection "htmlhint --init" #280

Shinigami92 opened this issue Aug 28, 2018 · 11 comments
Assignees
Labels
feature request Functionality that introduces a new feature keep-unstale The issue will not be marked as stale by the stale-bot

Comments

@Shinigami92
Copy link
Contributor

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

@Shinigami92
Copy link
Contributor Author

This should first be resolved and merged: [#279] Rewrite configuration structure

@thedaviddias thedaviddias self-assigned this Aug 28, 2018
@thedaviddias thedaviddias added #status: accepted 👍 feature request Functionality that introduces a new feature labels Aug 28, 2018
@Shinigami92
Copy link
Contributor Author

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:
first-draft

@dreamalligator
Copy link

this would be great, currently my .htmlhintrc file is being totally ignored, even if I specify --config, so looking forward to, thx!

@Shinigami92
Copy link
Contributor Author

@nebulousdog you are welcome on our Discord server (link can be found in readme), maybe I can help with your current config

@dreamalligator
Copy link

@Shinigami92 thx! I pulled in the most recent version and things are ok, probably user error.

@stale
Copy link

stale bot commented May 14, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the bot:stale Issue marked as stale because there was no activity label May 14, 2020
@dreamalligator
Copy link

can we disable these stale bots if there is no activity from the owners?

@stale stale bot removed the bot:stale Issue marked as stale because there was no activity label May 14, 2020
@thedaviddias
Copy link
Member

@nebulousdog not sure to understand your question but we can change any option in the stale.yml file. It's a way to ensure that discussions are not lost and are aligned with the current project.

@dreamalligator
Copy link

@thedaviddias hey! thanks 👍

While I've got you, I think most of us are really looking forward to #286 / #279. Let us know if you'd like a volunteer to start it off again, I havent wanted to be the cause of too many cooks in the kitchen..

@thedaviddias
Copy link
Member

@nebulousdog this is also yes, one of the things I believe we should soon start working on. Give me just a few days to make the project up and running again and then, anyone that would want to work on that would be more than welcome :)

@dreamalligator
Copy link

wonderful to hear, ty x a million.

@Shinigami92 Shinigami92 added the keep-unstale The issue will not be marked as stale by the stale-bot label May 19, 2020
@github-actions github-actions bot removed the accepted label Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Functionality that introduces a new feature keep-unstale The issue will not be marked as stale by the stale-bot
Projects
None yet
Development

No branches or pull requests

3 participants