Skip to content

Commit fd6cfbf

Browse files
authored
Merge branch 'main' into pageheader_description_initial
2 parents a865c5f + 75897eb commit fd6cfbf

37 files changed

+1173
-826
lines changed

.changeset/nine-apes-change.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/react": minor
3+
---
4+
5+
StateLabel: Add open and closed states for no icon cases

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

Lines changed: 9 additions & 4 deletions
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
6.02 KB
Loading
5.99 KB
Loading
6.28 KB
Loading
6.02 KB
Loading
6.02 KB
Loading
5.95 KB
Loading
6.04 KB
Loading
5.95 KB
Loading

0 commit comments

Comments
 (0)