eslint-plugin-primer-react 9.1.0 → 9.2.0-rc.a61b1e1
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/.github/dependabot.yml +4 -0
- package/.github/workflows/check-for-changeset.yml +1 -1
- 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
package/.github/dependabot.yml
CHANGED
|
@@ -4,6 +4,8 @@ updates:
|
|
|
4
4
|
directory: '/'
|
|
5
5
|
schedule:
|
|
6
6
|
interval: 'weekly'
|
|
7
|
+
cooldown:
|
|
8
|
+
default-days: 7
|
|
7
9
|
labels:
|
|
8
10
|
- 'dependencies'
|
|
9
11
|
- 'skip changeset'
|
|
@@ -11,6 +13,8 @@ updates:
|
|
|
11
13
|
directory: '/'
|
|
12
14
|
schedule:
|
|
13
15
|
interval: weekly
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
14
18
|
labels:
|
|
15
19
|
- 'dependencies'
|
|
16
20
|
- 'skip changeset'
|
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.a61b1e1",
|
|
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 => {
|