You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the file format you want to use. Just create your custom config file e.g. .stylelintrc.yaml. The executor will pick it up automatically. Its the same behavior as stylelint has itself. You can also mix json and yaml files for example. You just have to take care of the extends properties.
The generators only supports creating stylelintrc.json files. But you can open a PR to select the file format if you want it as a feature.
Hi @Phillip9587, thanks for addressing this. I was able to make it work with .stylelintrc.json. If there is some interest by the community to support more file formats (or even .stylelint in package.json), I could draft a PR for this. Cheers, Chris
Seems like JSON is hardcoded as the file format of
stylelintrc
(both the relative file and the root file). Unsure if it is possible to create custom syntax with JSON.https://github.com/Phillip9587/nx-stylelint/blob/main/packages/nx-stylelint/src/generators/configuration/generator.ts#L86
The text was updated successfully, but these errors were encountered: