Commit 5a6a4a8
fix:
This changes the `sentence-case` rule to also accept upper-case
characters in the first word, allowing the use of acronyms (e.g. "HTML",
"JSX") and words which include upper-case characters (e.g. "JavaScript")
at the beginning of a `sentence-case` input.
For example, with `'subject-case': [2, 'always', ['sentence-case']]`,
the following commit messages were rejected (ESLint commit message
style):
- `Fix: VAT note not properly displayed`
- `Upgrade: ESLint dev dependency`
Related: #211sentence-case allow upper-case characters in first word (#531)1 parent b2b63e5 commit 5a6a4a8
2 files changed
Lines changed: 6 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 40 | + | |
| 41 | + | |
47 | 42 | | |
48 | 43 | | |
49 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments