mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
bfddfe5622
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
67 lines
867 B
YAML
67 lines
867 B
YAML
# adapted from Google style library
|
|
extends: conditional
|
|
message: "Spell out '%s', if it's unfamiliar to the audience."
|
|
link: 'https://developers.google.com/style/abbreviations'
|
|
level: suggestion
|
|
ignorecase: false
|
|
# Ensures that the existence of 'first' implies the existence of 'second'.
|
|
first: '\b([A-Z]{3,5})\b'
|
|
second: '(?:\b[A-Z][\w\- ]+ )+\(([A-Z]{3,5})\)'
|
|
# ... with the exception of these:
|
|
exceptions:
|
|
- API
|
|
- ASP
|
|
- CLI
|
|
- CPU
|
|
- CSS
|
|
- CSV
|
|
- DEBUG
|
|
- DOM
|
|
- DPI
|
|
- FAQ
|
|
- GCC
|
|
- GDB
|
|
- GET
|
|
- GPU
|
|
- GTK
|
|
- GUI
|
|
- HTML
|
|
- HTTP
|
|
- HTTPS
|
|
- IDE
|
|
- JAR
|
|
- JSON
|
|
- JSX
|
|
- LESS
|
|
- LLDB
|
|
- NET
|
|
- NOTE
|
|
- NVDA
|
|
- OSS
|
|
- PATH
|
|
- PDF
|
|
- PHP
|
|
- POST
|
|
- RAM
|
|
- REPL
|
|
- RSA
|
|
- SCM
|
|
- SCSS
|
|
- SDK
|
|
- SQL
|
|
- SSH
|
|
- SSL
|
|
- SVG
|
|
- TBD
|
|
- TCP
|
|
- TIP
|
|
- TODO
|
|
- URI
|
|
- URL
|
|
- USB
|
|
- UTF
|
|
- XML
|
|
- XSS
|
|
- YAML
|
|
- ZIP
|