-
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
|
Hey! Check out our doc on that here: https://github.com/super-linter/super-linter/blob/main/docs/using-rules-files.md |
Beta Was this translation helpful? Give feedback.
-
|
I recently ran into an issue with this too. There is no mention of specifying a custom Prettier config on the page: https://github.com/super-linter/super-linter/blob/main/docs/using-rules-files.md and no mention of it on the README.md. I suspect it looks for a specific filename but I'm not sure what that is. (I use |
Beta Was this translation helpful? Give feedback.
-
|
Can you please open an issue about this so we can investigate? thanks! |
Beta Was this translation helpful? Give feedback.
-
|
The nature of prettier makes it difficult to tell whether your config file is being picked up and used by super-linter or not. I wish Prettier would produce a diff instead of just saying "Run Prettier with --write to fix"... I was able to get a .prettierrc file working by placing it in the .github/linters/ directory (or wherever $LINTER_RULES_PATH is defined). It can be defined in YAML or JSON. Try changing the printWidth setting to validate your config file is being used. The endOfLine setting, especially setting to "auto", which is supposed to ignore line endings, seems to be what's causing local diffs. Even when set to "auto", Prettier tries to format all files back to LF Unix-style endings, and it's causing issues with Windows CRLF code checkout. |
Beta Was this translation helpful? Give feedback.

Hey! Check out our doc on that here: https://github.com/super-linter/super-linter/blob/main/docs/using-rules-files.md