Skip to content

.stylintrc is not read when formatting stylus code #2689

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

Closed
3 of 4 tasks
ntraut opened this issue Feb 10, 2021 · 2 comments
Closed
3 of 4 tasks

.stylintrc is not read when formatting stylus code #2689

ntraut opened this issue Feb 10, 2021 · 2 comments

Comments

@ntraut
Copy link
Contributor

ntraut commented Feb 10, 2021

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
    (the FAQ link leads to a 404)
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: Win
  • Vetur version: v0.32.0
  • VS Code version: 1.53.1

Problem

Currently when we format stylus code which is in a .vue file, stylus-supremacy formatter inside Vetur ignores if there is a .stylintrc file in the project. When formatting a .styl file with the stylus-supremacy extension, it searches for a .stylintrc file and uses it (see https://thisismanta.github.io/stylus-supremacy/#vscode).
Is there a way to take account of the .stylintrc file when formatting stylus with vetur?

Reproducible Case

I did not make a reproducible case but I can do it if needed.

@yoyo930021
Copy link
Member

yoyo930021 commented Feb 12, 2021

We don't support this feature for stylus-supremacy with stylelint.

I actually think stylus support is crippled.
Not enough people pay attention to it.

I welcome any PR if you want to improve it.

Ref:

format(document, range, formatParams) {

https://thisismanta.github.io/stylus-supremacy/#stylint

@yoyo930021
Copy link
Member

Fixed in #2863

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants