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

how to exclude stylus-supremacy [vs-code] to autofix files #23

Closed
D4NH opened this issue Jan 31, 2018 · 6 comments
Closed

how to exclude stylus-supremacy [vs-code] to autofix files #23

D4NH opened this issue Jan 31, 2018 · 6 comments

Comments

@D4NH
Copy link

D4NH commented Jan 31, 2018

Using .stylintrc with the following exclude property doesn't ignore the autofix when saving the file.

{ "exclude": ["vendor/assets/style/variables/**/*"] }

Is there any other way to ignore autofix files when open and saving them?
Also using the built-in editor.formatOnSave setting, maybe it's not possible?

@ThisIsManta
Copy link
Owner

May I see your whole stylintrc file?

@D4NH
Copy link
Author

D4NH commented Jan 31, 2018

{
  "brackets": "never",
  "colons": "always",
  "commaSpace": "always",
  "commentSpace": "always",
  "duplicates": "true",
  "efficient": "always",
  "exclude": ["vendor/assets/style/variables/**/*"],
  "indentPref": "4",
  "leadingZero": "always",
  "namingConvention": "lowercase-dash",
  "noImportant": false,
  "reporter": "stylint-stylish",
  "semicolons": "never",
  "sortOrder": "alphabetical",
  "zeroUnits": "always"
}

@ThisIsManta
Copy link
Owner

What if a user manually run Format Document on the file that is in ignored pattern?

@ThisIsManta
Copy link
Owner

ThisIsManta commented Feb 2, 2018

Hmm, I guess it's all or nothing. I cannot make the ignored (exclude) files get manually formatted in VSCode.

@ThisIsManta
Copy link
Owner

Starting from Stylus Supremacy v2.9.0, it recognizes exclude in stylintrc file or ignoreFiles formatting option. See also https://thisismanta.github.io/stylus-supremacy/#option-ignore-files

Cheers!

@D4NH
Copy link
Author

D4NH commented Feb 2, 2018

This is great. Thanks!

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