eslint-plugin-primer-react 9.1.0 → 9.2.0-rc.a3a7798
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.
- package/.gitattributes +1 -0
- package/.github/aw/actions-lock.json +14 -0
- package/.github/dependabot.yml +4 -0
- package/.github/workflows/agentics-maintenance.yml +633 -0
- package/.github/workflows/check-for-changeset.yml +1 -1
- package/.github/workflows/issue-triage.lock.yml +1759 -0
- package/.github/workflows/issue-triage.md +69 -0
- package/.prettierignore +4 -0
- package/CHANGELOG.md +6 -0
- package/package.json +18 -10
- package/src/rules/a11y-use-accessible-tooltip.js +1 -1
- package/src/rules/no-deprecated-octicon.js +1 -1
- package/src/rules/use-deprecated-from-deprecated.js +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: |
|
|
3
|
+
Triage assistant for new and reopened issues in eslint-plugin-primer-react.
|
|
4
|
+
Reads the issue and its comments to classify the issue type when unset, apply
|
|
5
|
+
relevant existing labels, flag likely duplicates, ask for missing information
|
|
6
|
+
only when needed, and — when an issue is well-scoped and actionable — suggest
|
|
7
|
+
assigning it to Copilot. Stays low-noise and never closes issues.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
issues:
|
|
11
|
+
types: [opened, reopened]
|
|
12
|
+
reaction: eyes
|
|
13
|
+
|
|
14
|
+
permissions: read-all
|
|
15
|
+
|
|
16
|
+
network: defaults
|
|
17
|
+
|
|
18
|
+
safe-outputs:
|
|
19
|
+
set-issue-type:
|
|
20
|
+
max: 1
|
|
21
|
+
target: triggering
|
|
22
|
+
issue-intent: true
|
|
23
|
+
add-labels:
|
|
24
|
+
max: 3
|
|
25
|
+
target: triggering
|
|
26
|
+
issue-intent: true
|
|
27
|
+
assign-to-agent:
|
|
28
|
+
name: copilot
|
|
29
|
+
allowed: [copilot]
|
|
30
|
+
max: 1
|
|
31
|
+
target: triggering
|
|
32
|
+
issue-intent: true
|
|
33
|
+
add-comment:
|
|
34
|
+
max: 1
|
|
35
|
+
|
|
36
|
+
tools:
|
|
37
|
+
github:
|
|
38
|
+
toolsets: [issues, labels]
|
|
39
|
+
min-integrity: none
|
|
40
|
+
|
|
41
|
+
timeout-minutes: 15
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
# Issue triage
|
|
45
|
+
|
|
46
|
+
You triage issue #${{ github.event.issue.number }} in this repository, an ESLint plugin
|
|
47
|
+
for Primer React components. Work only from what the issue and its comments actually say —
|
|
48
|
+
do not invent missing context or make assumptions the content does not support.
|
|
49
|
+
|
|
50
|
+
Keep visible output to a minimum: do not post a routine triage report, and only comment when
|
|
51
|
+
you genuinely need something from the author. Never close an issue.
|
|
52
|
+
|
|
53
|
+
Discover what is available at runtime — read the repository's existing issue types and labels
|
|
54
|
+
rather than assuming any fixed set — and work toward these outcomes:
|
|
55
|
+
|
|
56
|
+
- **Issue type:** If the issue has no type, give it the single best-fitting type from those the
|
|
57
|
+
repository offers. If it already has a type, leave it unchanged.
|
|
58
|
+
- **Labels:** Apply the repository's existing labels that clearly apply to the issue. Prefer a
|
|
59
|
+
few accurate labels over speculative ones; if nothing clearly applies, add none.
|
|
60
|
+
- **Duplicates and related work:** Look for existing issues that are likely duplicates or
|
|
61
|
+
closely related and surface them. Do not close anything.
|
|
62
|
+
- **Missing information:** If the issue lacks the detail needed to act on it, post a single
|
|
63
|
+
comment asking the author for exactly what is missing and why. Do not ask for details the
|
|
64
|
+
issue already provides.
|
|
65
|
+
- **Ready for Copilot:** When an issue is well-scoped and actionable enough for an automated
|
|
66
|
+
coding agent to pick up, suggest assigning it to Copilot.
|
|
67
|
+
|
|
68
|
+
If the issue is already complete and correctly triaged, or there is otherwise no visible change
|
|
69
|
+
to make, take no action.
|
package/.prettierignore
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# eslint-plugin-primer-react
|
|
2
2
|
|
|
3
|
+
## 9.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#599](https://github.com/primer/eslint-plugin-primer-react/pull/599) [`589e822`](https://github.com/primer/eslint-plugin-primer-react/commit/589e822a8d21c2d4f4d411d23c761dfe0e25dee7) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Upgrade ESLint to v10.7.0 and related ESLint dependencies to compatible versions
|
|
8
|
+
|
|
3
9
|
## 9.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-primer-react",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0-rc.a3a7798",
|
|
4
4
|
"description": "ESLint rules for Primer React",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"engines": {
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"eslint": "^9.0.0 || ^10.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@typescript-eslint/utils": "^8.
|
|
35
|
-
"eslint-plugin-github": "^6.
|
|
36
|
-
"eslint-plugin-jsx-a11y": "^6.
|
|
34
|
+
"@typescript-eslint/utils": "^8.64.0",
|
|
35
|
+
"eslint-plugin-github": "^6.1.1",
|
|
36
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
37
37
|
"eslint-traverse": "^1.0.0",
|
|
38
38
|
"lodash": "^4.17.21",
|
|
39
39
|
"typescript": "^6.0.3"
|
|
@@ -45,18 +45,26 @@
|
|
|
45
45
|
"@github/prettier-config": "0.0.6",
|
|
46
46
|
"@types/jest": "^30.0.0",
|
|
47
47
|
"@types/node": "^26.0.0",
|
|
48
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
49
|
-
"eslint": "^
|
|
48
|
+
"@typescript-eslint/rule-tester": "^8.64.0",
|
|
49
|
+
"eslint": "^10.7.0",
|
|
50
50
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
51
51
|
"eslint-plugin-filenames": "^1.3.2",
|
|
52
52
|
"eslint-plugin-i18n-text": "^1.0.1",
|
|
53
53
|
"eslint-plugin-import": "^2.32.0",
|
|
54
|
-
"eslint-plugin-no-only-tests": "^3.
|
|
55
|
-
"eslint-plugin-prettier": "^5.5.
|
|
56
|
-
"globals": "^17.
|
|
54
|
+
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
55
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
56
|
+
"globals": "^17.7.0",
|
|
57
57
|
"jest": "^30.0.5",
|
|
58
58
|
"markdownlint-cli2": "^0.23.0",
|
|
59
59
|
"markdownlint-cli2-formatter-pretty": "^0.0.10"
|
|
60
60
|
},
|
|
61
|
-
"prettier": "@github/prettier-config"
|
|
61
|
+
"prettier": "@github/prettier-config",
|
|
62
|
+
"overrides": {
|
|
63
|
+
"eslint-plugin-jsx-a11y": {
|
|
64
|
+
"eslint": "$eslint"
|
|
65
|
+
},
|
|
66
|
+
"eslint-plugin-import": {
|
|
67
|
+
"eslint": "$eslint"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
62
70
|
}
|
|
@@ -38,7 +38,7 @@ module.exports = {
|
|
|
38
38
|
|
|
39
39
|
const hasOtherImports = node.specifiers.length > 1
|
|
40
40
|
|
|
41
|
-
const sourceCode = context.getSourceCode()
|
|
41
|
+
const sourceCode = context.sourceCode ?? context.getSourceCode()
|
|
42
42
|
// Checking to see if there is an existing root (@primer/react) import
|
|
43
43
|
// Assuming there is one root import per file
|
|
44
44
|
const rootImport = sourceCode.ast.body.find(statement => {
|