EnDash.yml 243 B

12345678910111213
  1. extends: existence
  2. message: "Use an em dash ('---') instead of '--'."
  3. link: 'https://developers.google.com/style/dashes'
  4. nonword: true
  5. level: error
  6. action:
  7. name: edit
  8. params:
  9. - replace
  10. - '--'
  11. - '---'
  12. raw:
  13. - '(?<!-)-{2}(?!-)'