-
Notifications
You must be signed in to change notification settings - Fork 7
/
.textlintrc
227 lines (210 loc) · 4.45 KB
/
.textlintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
rules:
# The `alex` rule flags usage of inconsiderate wording.
# https://alexjs.com
alex:
allow:
- execute
- execution
- special
- stroke
- traps
profanitySureness: 2
# Corrections for:
# https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines
common-misspellings: true
# Enforcement of correct usage of capitalization in different contexts.
en-capitalization:
allowWords:
- etcd
# Checks for headings that have been defined with no content.
no-empty-section: true
# Enforces semantic line breaks (https://sembr.org)
one-sentence-per-line: true
# Dictionary
spelling:
language: en
skipPatterns:
# Patterns
- '/\b[0-9]+\b/' # numbers
- '/\b\S*\.\S{2,4}/' # filenames
- '/\b(pre)|(un)-\w/i' # hyphenated prefixes
- '/\b\d*(px)|(pt)\b/' # pt and px measures
- '/\bbase\d+\b/' # base2, base16 etc
# Notes
- '/\btodo\b/i'
# Product components
- '/\b[Aa]uth\b/'
- Backoffice
- '/\b[Ii]nit\b/'
- PlaceOS
# Protocols/common acronyms
#
# Only _very_ widely understood terms should be listed here. Abbreviations
# that are local to document context should be defined inline.
# See: https://github.com/PlaceOS/docs#abbreviations
- API
- DNS
- HTTP
- IO
- IP
- IoT
- JSON
- JWT
- MQTT
- OAuth
- SaaS
- SAML
- SMS
- SMTP
- SNMP
- SSL
- SSO
- SVG
- TCP
- TLS
- UAT
- UDP
- URI
- XML
# Jargon
- '/analytics/i'
- '/artboards?/i'
- '/automations/i'
- '/chatbots?/i'
- '/frontend/i'
- '/integrations/i'
- '/integrators?/i'
- '/load balancer/i'
- '/microservices?/i'
- '/minify/i'
- '/preconfigure[ds]?/i'
- '/proxying/i'
- '/README/'
- '/rebalance/i'
- '/serverless/i'
- '/subnet/i'
- '/tokeniz(e|er|ed|ing)/i'
- '/webhooks?/i'
- '/websocket/i'
# Brands/brand terms
- AD FS
- Amazon SES
- Amazon SNS
- AOpen
- Arial
- Atlona
- Auth0
- AWS
- B2C
- BACnet
- Barco
- Biamp
- Chromebase
- ChromeBox
- ChromeOS
- Cisco CMX
- Cisco ISE
- ClearOne
- ClickShare
- CloudFormation
- Cognipoint
- ControlSpace
- Denon
- DNA Spaces
- DynaLite
- Echo360
- ElastiCache
- Elasticsearch
- etcd
- Extron
- Fargate
- Floorsense
- Foxtel
- Gantner Relaxx
- Google CDM
- GSuite
- Helvar
- HP
- InTouch
- Kentix
- KNX
- Kubernetes
- Lenel
- LG
- Lightware
- Lumens
- Lutron
- MediaSite
- Meraki
- MessageMedia
- Mimo
- Modbus
- Moki
- Multicast
- NEC
- NGINX
- NX
- OpenStack
- Optica
- Pexip
- PJLink
- PointGrab
- Polycom
- PowerSoft
- Pressac
- Q-SYS
- QBic
- QSC
- Rackspace
- RealPresence
- RethinkDB
- S3
- Screen Technics
- Shure
- SVSI
- Symmetrix
- TriplePlay
- Vergesense
- VISCA
- Webex
- Whispir
- Wolfvision
- Xovis
- XY Sense
# Semantics
- walkthrough
# Enforcement of capitalization, words breaks and other well defined
# structure.
terminology:
defaultTerms: true
terms:
- ['adfs', 'AD FS']
- ['back[- ]?office', 'Backoffice']
- ['config', 'configuration']
- ['front[- ]end', 'frontend']
- ['google work((sp)|(pl))ace', 'Google Workspace']
- ['(cisco )?meraki', 'Cisco Meraki']
- ['place\W?os', 'PlaceOS']
- ['place\W?tech(nology)?', 'Place Technology']
- ['web[ -]?socket', 'WebSocket']
exclude:
- 'Node(?:js)?'
- 'web[- ]?site(s)?'
# Suggestions for direct and concise writing style.
write-good:
severity: warning
# Filters defined here exluded matching content for _all_ of the rules above.
#
# This should be used sparsely and as a last resort. While it may be tempting to
# place terms here, this will result in sentences containing them not being
# checked for complexity.
filters:
allowlist:
allow:
# Link text that also appears within the URL
- '/\[(.*\W)?(.+)(\W.*)?\]\(.*\2.*\)/i'
# Heading ID's (https://github.com/PlaceOS/docs#heading-ids)
- '/\{#\S+\}/'
# Abbreviations (https://github.com/PlaceOS/docs#abbreviations)
- '/^\*\[\S+\]:/m' # definition
- '/(\S+)(?=[^]*^\*\[\1\]:.+)/m' # usage