Skip to content

Commit 4560876

Browse files
committed
Rename to "a11y-explicit-heading"
1 parent 0721ff0 commit 4560876

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.changeset/lovely-toys-attend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'eslint-plugin-primer-react': major
33
---
44

5-
Add `explicit-heading` rule
5+
Add `a11y-explicit-heading` rule

docs/rules/explicit-heading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ import {Heading} from '@primer/react';
3434

3535
- `skipImportCheck` (default: `false`)
3636

37-
By default, the `explicit-heading` rule will only check for `<Heading>` components imported directly from `@primer/react`. You can disable this behavior by setting `skipImportCheck` to `true`.
37+
By default, the `a11y-explicit-heading` rule will only check for `<Heading>` components imported directly from `@primer/react`. You can disable this behavior by setting `skipImportCheck` to `true`.

src/configs/recommended.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports = {
1212
'primer-react/no-deprecated-colors': 'warn',
1313
'primer-react/no-system-props': 'warn',
1414
'primer-react/a11y-tooltip-interactive-trigger': 'error',
15-
'primer-react/explicit-heading': 'error'
15+
'primer-react/a11y-explicit-heading': 'error'
1616
},
1717
settings: {
1818
github: {

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
'no-deprecated-colors': require('./rules/no-deprecated-colors'),
55
'no-system-props': require('./rules/no-system-props'),
66
'a11y-tooltip-interactive-trigger': require('./rules/a11y-tooltip-interactive-trigger'),
7-
'explicit-heading': require('./rules/explicit-heading')
7+
'a11y-explicit-heading': require('./rules/a11y-explicit-heading')
88
},
99
configs: {
1010
recommended: require('./configs/recommended')

src/rules/__tests__/explicit-heading.test.js renamed to src/rules/__tests__/a11y-explicit-heading.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const rule = require('../explicit-heading')
1+
const rule = require('../a11y-explicit-heading')
22
const {RuleTester} = require('eslint')
33

44
const ruleTester = new RuleTester({
@@ -11,7 +11,7 @@ const ruleTester = new RuleTester({
1111
}
1212
})
1313

14-
ruleTester.run('explicit-heading', rule, {
14+
ruleTester.run('a11y-explicit-heading', rule, {
1515
valid: [
1616
`import {Heading} from '@primer/react';
1717
<Heading as="h1">Heading level 1</Heading>
File renamed without changes.

0 commit comments

Comments
 (0)