-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
lang:jsonIssues affecting JSONIssues affecting JSONlang:yamlIssues affecting YAMLIssues affecting YAMLlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Environments:
- Prettier Version: 2.1.2
- Running Prettier via: CLI
- Runtime: Node.js 14.15.0
- Operating System: macOS
- Prettier plugins (if any):
Steps to reproduce:
$ prettier --write .eslintrc
.eslintrc 32ms
$ prettier --write .stylelintrc
[error] No parser could be inferred for file: .stylelintrc
Prettier treats .eslintrc (without extension) as JSON, but doesn't do the same to .stylelintrc or other cosmiconfig style config files.
Expected behavior
- Option 1: Add some more popular
*rcas built-in supported. - Option 2: Add a new
cosmiconfigparser and use it as default for any*rcfiles without an extension.
fisker
Metadata
Metadata
Assignees
Labels
lang:jsonIssues affecting JSONIssues affecting JSONlang:yamlIssues affecting YAMLIssues affecting YAMLlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.