Skip to content

Commit 75897eb

Browse files
chore(deps-dev): bump @github/markdownlint-github from 0.6.0 to 0.7.0 (#5677)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Black <joshblack@github.com>
1 parent 9cceea3 commit 75897eb

File tree

4 files changed

+515
-542
lines changed

4 files changed

+515
-542
lines changed

.markdownlint-cli2.cjs renamed to .markdownlint-cli2.mjs

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const githubMarkdownOpinions = require('@github/markdownlint-github')
1+
import githubMarkdownOpinions, {init} from '@github/markdownlint-github'
22

33
// Rules we want to turn on but currently have too many violations
44
const rulesToEnforce = {
@@ -28,11 +28,16 @@ const defaultOverrides = {
2828
'no-generic-link-text': {exceptions: ['link']}, // We don't want it to flag links that link to `Link` component.
2929
}
3030

31-
const options = githubMarkdownOpinions.init({...rulesToNotEnforce, ...rulesToEnforce, ...defaultOverrides})
32-
module.exports = {
33-
config: options,
31+
const options = {
32+
config: init({
33+
...rulesToNotEnforce,
34+
...rulesToEnforce,
35+
...defaultOverrides,
36+
}),
3437
customRules: ['@github/markdownlint-github'],
3538
outputFormatters: [
3639
['markdownlint-cli2-formatter-pretty', {appendLink: true}], // ensures the error message includes a link to the rule documentation
3740
],
3841
}
42+
43+
export default options

migrating.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -147,41 +147,41 @@ The following table lists color prop values that have changed in `1.0.0-beta`:
147147
148148
| Prop | Before | After | Notes |
149149
| :------------ | :------------- | :------------ | :--------------- |
150-
| `bg` | `blue-light` | `blue.0` |
151-
| `bg` | `blue` | `blue.5` |
152-
| `bg` | `gray-dark` | `gray.9` |
153-
| `bg` | `gray-light` | `gray.0` |
154-
| `bg` | `gray` | `gray.1` |
155-
| `bg` | `green-light` | `green.1` |
156-
| `bg` | `green` | `green.5` |
157-
| `bg` | `orange` | `orange.7` |
158-
| `bg` | `purple-light` | `purple.0` |
159-
| `bg` | `purple` | `purple.5` |
160-
| `bg` | `red-light` | `red.1` |
161-
| `bg` | `red` | `red.5` |
162-
| `bg` | `yellow-light` | `yellow.2` |
163-
| `bg` | `yellow` | `yellow.5` |
164-
| `borderColor` | `black-fade` | `blackfade15` |
165-
| `borderColor` | `blue-light` | `blue.2` |
166-
| `borderColor` | `blue` | `blue.5` |
167-
| `borderColor` | `gray-dark` | `gray.3` |
168-
| `borderColor` | `gray-darker` | `gray.7` |
150+
| `bg` | `blue-light` | `blue.0` | |
151+
| `bg` | `blue` | `blue.5` | |
152+
| `bg` | `gray-dark` | `gray.9` | |
153+
| `bg` | `gray-light` | `gray.0` | |
154+
| `bg` | `gray` | `gray.1` | |
155+
| `bg` | `green-light` | `green.1` | |
156+
| `bg` | `green` | `green.5` | |
157+
| `bg` | `orange` | `orange.7` | |
158+
| `bg` | `purple-light` | `purple.0` | |
159+
| `bg` | `purple` | `purple.5` | |
160+
| `bg` | `red-light` | `red.1` | |
161+
| `bg` | `red` | `red.5` | |
162+
| `bg` | `yellow-light` | `yellow.2` | |
163+
| `bg` | `yellow` | `yellow.5` | |
164+
| `borderColor` | `black-fade` | `blackfade15` | |
165+
| `borderColor` | `blue-light` | `blue.2` | |
166+
| `borderColor` | `blue` | `blue.5` | |
167+
| `borderColor` | `gray-dark` | `gray.3` | |
168+
| `borderColor` | `gray-darker` | `gray.7` | |
169169
| `borderColor` | `gray-light` | `#eaecef` | Not yet migrated |
170-
| `borderColor` | `gray` | `gray.2` |
170+
| `borderColor` | `gray` | `gray.2` | |
171171
| `borderColor` | `green-light` | `#a2cbac` | Not yet migrated |
172-
| `borderColor` | `green` | `green.4` |
173-
| `borderColor` | `purple` | `purple.5` |
172+
| `borderColor` | `green` | `green.4` | |
173+
| `borderColor` | `purple` | `purple.5` | |
174174
| `borderColor` | `red-light` | `#cea0a5` | Not yet migrated |
175175
| `borderColor` | `yellow` | `#d9d0a5` | Not yet migrated |
176-
| `color` | `blue` | `blue.5` |
177-
| `color` | `gray-dark` | `gray.9` |
178-
| `color` | `gray-light` | `gray.5` |
179-
| `color` | `gray` | `gray.6` |
180-
| `color` | `green` | `green.5` |
181-
| `color` | `orange-light` | `orange.6` |
182-
| `color` | `orange` | `orange.9` |
183-
| `color` | `purple` | `purple.5` |
184-
| `color` | `red` | `red.6` |
176+
| `color` | `blue` | `blue.5` | |
177+
| `color` | `gray-dark` | `gray.9` | |
178+
| `color` | `gray-light` | `gray.5` | |
179+
| `color` | `gray` | `gray.6` | |
180+
| `color` | `green` | `green.5` | |
181+
| `color` | `orange-light` | `orange.6` | |
182+
| `color` | `orange` | `orange.9` | |
183+
| `color` | `purple` | `purple.5` | |
184+
| `color` | `red` | `red.6` | |
185185
186186
Remember that all `fg` props must be renamed to `color`.
187187

0 commit comments

Comments
 (0)