This repository has been archived on 2020-11-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-11-01 22:46:04 +00:00

1.8 KiB
Raw Permalink Blame History

Working on syntaxes

Please help us enhance and debug the syntaxes we use in stylelint:

To contribute to a syntax, you should:

  1. Familiarize yourself with PostCSSs how to write custom syntax guide.
  2. Use the syntax: * labels to identify which syntax is behind an issue.
  3. Go to the repository for that syntax.
  4. Read their contributing guidelines.

Workarounds

Fixing bugs in syntaxes can take time. stylelint can work around these bug by turning off autofix for incompatible sources. Autofix can then remain safe to use while contributors try to fix the underlying issue.

Current workarounds

stylelint currently turns off autofix for sources that contain:

Add a workaround

To add a new workaround, you should:

  1. Add code to lib/lintSource.js to detect the incompatible pattern.
  2. Add a corresponding test to lib/__tests__/standalone-fix.test.js.
  3. Document the workaround in docs/developer-guides/syntaxes.md.