|
3 | 3 | shouldMatch: false
|
4 | 4 | type: warning
|
5 | 5 | format: markdown
|
6 |
| - errorMessage: Megabytes should be either written as 'megabytes' or abbreviated as |
7 |
| - 'MB' |
| 6 | + errorMessage: "Megabytes should be either written as 'megabytes' or abbreviated as |
| 7 | + 'MB'" |
8 | 8 |
|
9 | 9 | # MHz / GHz spacing
|
10 |
| -- regex: "(?<!\\S)\\b\\d+[MG][hH]z\\b" |
| 10 | +- regex: "(?<!\\S)\\b\\d+[MmGg][hH]z\\b" |
11 | 11 | shouldMatch: false
|
12 | 12 | type: warning
|
13 | 13 | format: markdown
|
14 | 14 | errorMessage: Space between unit and value required
|
15 | 15 |
|
16 | 16 | # MHz / GHz spelling
|
17 |
| -- regex: "(?<!\\S)\\b\\d+\\s?[MGmg]hz\\b" |
| 17 | +- regex: "(?<!\\S)\\b\\d+\\s?[MmGg]hz\\b" |
18 | 18 | shouldMatch: false
|
19 | 19 | type: warning
|
20 | 20 | format: markdown
|
21 |
| - errorMessage: 'Megahertz'/'Gigahertz' should be abbreviated as MHz/GHz |
| 21 | + errorMessage: "'Megahertz'/'Gigahertz' should be abbreviated as MHz/GHz" |
22 | 22 |
|
23 | 23 | # Mbps / Gbps spacing
|
24 | 24 | - regex: "(?<!\\S)\\b\\d+[MG]bps\\b"
|
|
32 | 32 | shouldMatch: false
|
33 | 33 | type: warning
|
34 | 34 | format: markdown
|
35 |
| - errorMessage: 'Megabit per second' should be abbreviated Mbps, 'Gigabit per second' Gbps |
| 35 | + errorMessage: "'Megabit per second' should be abbreviated Mbps, 'Gigabit per second' Gbps" |
36 | 36 |
|
37 | 37 | # kB / MB spacing
|
38 | 38 | - regex: "(?<!\\S)\\b\\d+[mMkK][bB]\\b"
|
|
46 | 46 | shouldMatch: false
|
47 | 47 | type: warning
|
48 | 48 | format: markdown
|
49 |
| - errorMessage: 'Kilobyte' should be abbreviated as KB, 'Kilobit' as Kb. |
| 49 | + errorMessage: "'Kilobyte' should be abbreviated as KB, 'Kilobit' as Kb." |
50 | 50 |
|
51 | 51 | # MB spelling
|
52 | 52 | - regex: "(?<!\\S)\\b\\d+\\s?m[bB]\\b"
|
53 | 53 | shouldMatch: false
|
54 | 54 | type: warning
|
55 | 55 | format: markdown
|
56 |
| - errorMessage: 'Megabyte' should be abbreviated as MB, 'Megabit' as Mb. |
| 56 | + errorMessage: "'Megabyte' should be abbreviated as MB, 'Megabit' as Mb." |
57 | 57 |
|
58 | 58 | # μm / mm spacing
|
59 | 59 | - regex: "(?<!\\S)\\b\\d+[μm]m\\b"
|
|
68 | 68 | type: warning
|
69 | 69 | format: markdown
|
70 | 70 | includeCodeBlocks: false
|
71 |
| - errorMessage: Incorrect spelling of 'Wi-Fi' found. |
| 71 | + errorMessage: "Incorrect spelling of 'Wi-Fi' found." |
72 | 72 |
|
73 | 73 | - regex: "(?<!\\/|-)\\b(master|slave)\\b"
|
74 | 74 | regexModifiers: "gi"
|
|
0 commit comments