eslint-plugin-primer-react 5.0.0-rc.b79eafb → 5.1.0-rc.858aa4e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: Check for changeset
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
# On by default if you specify no types.
|
|
7
|
+
- 'opened'
|
|
8
|
+
- 'reopened'
|
|
9
|
+
- 'synchronize'
|
|
10
|
+
# For `skip-label` only.
|
|
11
|
+
- 'labeled'
|
|
12
|
+
- 'unlabeled'
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
check-for-changeset:
|
|
16
|
+
name: Check for changeset
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- name: 'Check for changeset'
|
|
21
|
+
uses: brettcannon/check-for-changed-files@v1
|
|
22
|
+
with:
|
|
23
|
+
file-pattern: '.changeset/*.md'
|
|
24
|
+
skip-label: 'skip changeset'
|
|
25
|
+
failure-message: 'No changeset found. If these changes should not result in a new version, apply the ${skip-label} label to this pull request. If these changes should result in a version bump, please add a changeset https://git.io/J6QvQ'
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# eslint-plugin-primer-react
|
|
2
2
|
|
|
3
|
+
## 5.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#178](https://github.com/primer/eslint-plugin-primer-react/pull/178) [`49150da`](https://github.com/primer/eslint-plugin-primer-react/commit/49150da106f0ff9a52faac8d559b78449c672391) Thanks [@khiga8](https://github.com/khiga8)! - Map `Box` to `div` and pass it into `eslint-plugin-github`.
|
|
8
|
+
|
|
3
9
|
## 5.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
package/package.json
CHANGED
|
@@ -20,4 +20,12 @@ const components = flattenComponents({
|
|
|
20
20
|
},
|
|
21
21
|
})
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
// We want to avoid setting a jsx-a11y mapping from `Box` to `div` until polymorphic linting is enabled for jsx-a11y.
|
|
24
|
+
// However, polymorphic linting is enabled for the github plugin, so we can safely map `Box` to `div` (while also having it properly interpret the `as` prop)
|
|
25
|
+
const githubMapping = Object.assign({}, components)
|
|
26
|
+
githubMapping['Box'] = 'div'
|
|
27
|
+
|
|
28
|
+
module.exports = {
|
|
29
|
+
jsxA11yMapping: components,
|
|
30
|
+
githubMapping,
|
|
31
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const {jsxA11yMapping, githubMapping} = require('./components')
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
4
|
parserOptions: {
|
|
@@ -19,10 +19,10 @@ module.exports = {
|
|
|
19
19
|
},
|
|
20
20
|
settings: {
|
|
21
21
|
github: {
|
|
22
|
-
components,
|
|
22
|
+
components: githubMapping,
|
|
23
23
|
},
|
|
24
24
|
'jsx-a11y': {
|
|
25
|
-
components,
|
|
25
|
+
components: jsxA11yMapping,
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
}
|