Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.8 KB

syntaxes.md

File metadata and controls

35 lines (23 loc) · 1.8 KB

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 PostCSS's 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.