Files
react-native-devtools-frontend/node_modules/stylelint/docs/developer-guide/syntaxes.md
T
Mathias Bynens 79e2cf0633 Add stylelint dependency
This also adds CC-BY-4.0 to the list of accepted licenses.

DISABLE_THIRD_PARTY_CHECK=update dependencies

Bug: chromium:1083142
Change-Id: I8612de2fba52dae32eeb71af79d5aacfde52142b
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2220097
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
2020-06-11 06:20:04 +00:00

1.8 KiB

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.