Files
angular__angular/aio/tools/doc-linter/styles/Angular/Google_Units.yml
Bob Watson bfddfe5622 docs: initial upload of styles used by doc linter (#46897)
Add the configuration and style files to support documentation linting. The `README.md` file includes instructions for installation and use of the lint tool.

PR Close #46897
2022-08-01 09:29:06 -07:00

11 lines
347 B
YAML

# copied from Google style library
# tests for correct format of numbers followed by units
extends: existence
message: "If '%s' is not code, put a nonbreaking space between the number and the unit."
link: 'https://developers.google.com/style/units-of-measure'
nonword: true
level: error
tokens:
- \d+(?:B|kB|MB|GB|TB)
- \d+(?:ns|ms|s|min|h|d)