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

Find libraries #10

Closed
mezgoodle opened this issue Aug 8, 2020 · 12 comments
Closed

Find libraries #10

mezgoodle opened this issue Aug 8, 2020 · 12 comments
Assignees
Labels
enhancement New feature or request

Comments

@mezgoodle
Copy link
Owner

Find libraries which can format for different languages

@mezgoodle mezgoodle added the enhancement New feature or request label Aug 8, 2020
@ghost
Copy link

ghost commented Aug 8, 2020

Nice to meet you here, sensei!

@ghost
Copy link

ghost commented Aug 8, 2020

Wow! New label! @mezgoodle, thank you!

@mezgoodle
Copy link
Owner Author

nodejs - eslint
python - autopep8

@Dmytrenko-Roman
Copy link
Collaborator

Dmytrenko-Roman commented Aug 10, 2020

CSS:

  • Linter: stylelint

Install:

  • npm install --save-dev stylelint stylelint-config-standard

Usage:

  • Create a .stylelintrc.json configuration file in the root of your project.
  • Fix problems: stylelint "**/*.css" --fix

@Dmytrenko-Roman
Copy link
Collaborator

Dmytrenko-Roman commented Aug 10, 2020

MARKDOWN:

  • Linter: markdownlinter

Install:

  • markdownlint: npm install markdownlint --save-dev
  • markdownlint-cli: npm install -g markdownlint-cli

Usage:

  • Fix problems: markdownlint **/*.md --ignore node_modules --fix

@mezgoodle mezgoodle pinned this issue Aug 10, 2020
@Dmytrenko-Roman
Copy link
Collaborator

Dmytrenko-Roman commented Aug 10, 2020

NODEJS:

  • Linter: eslint

Install:

  • npm install eslint --save-dev

Usage:

  • Create a .json configuration file in the root of your project.
  • Fix problems: eslint **/*.js --fix

@Dmytrenko-Roman
Copy link
Collaborator

Dmytrenko-Roman commented Aug 10, 2020

PYTHON:

  • Linter: autopep8

Install:

  • pip install autopep8

Usage:

  • Fix problems: autopep8 --in-place -r -a -a .

@Dmytrenko-Roman
Copy link
Collaborator

Dmytrenko-Roman commented Aug 11, 2020

HTML:

  • Linter: clean-html

Install:

  • npm i -g clean-html

Usage:

  • clean-html --in-place

@mezgoodle
Copy link
Owner Author

HTML:

  • Linter: html-tidy

Install:

  • sudo apt install tidy

Usage:

  • tidy -m filename

Verifying...
@mezgoodle

I still didn't test it, but will. Also look at this library
@Dmytrenko-Roman

@mezgoodle
Copy link
Owner Author

HTML:

  • Linter: html-tidy

Install:

  • sudo apt install tidy

Usage:

  • tidy -m filename

Verifying...
@mezgoodle

I still didn't test it, but will. Also look at this library
@Dmytrenko-Roman

So

In our container we're using alpine instead of ubuntu. In alpine there isn't tidy package, search result. We can use some alternative for this package in alpine or use clean-html node library. Result of CI with clean-html you can see here. But there is one problem: in this library we need to set name of file and this is bad. If you can write issue to their repository of library with this question, please do it.
@Dmytrenko-Roman

@mezgoodle
Copy link
Owner Author

HTML:

  • Linter: clean-html

Install:

  • ...

Usage:

  • ...

Verifying...
@Dmytrenko-Roman

So, It's been a long time since you wrote this message🙂. I am currently working on python script, that searches for all html files and execute clean-html for them
Therefore, install command: npm i -g clean-html, usage: clean-html <filename> --in-place. You can edit your comment

@mezgoodle mezgoodle assigned mezgoodle and unassigned mezgoodle Jun 23, 2021
@mezidia-inspector
Copy link

Thanks for issue, @mezgoodle! @mezgoodle, thank you for closing this issue, I have less work. I will look forward to our next meeting😜

If you want to reopen the issue - type "reopen"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants