eslint-plugin-primer-react 0.0.0-20260722211726 → 0.0.0-20260723111023

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.
@@ -11,7 +11,7 @@ jobs:
11
11
  steps:
12
12
  - uses: actions/checkout@v7
13
13
  - name: Use Node.js
14
- uses: actions/setup-node@v7
14
+ uses: actions/setup-node@v4
15
15
  with:
16
16
  node-version: 20
17
17
  cache: 'npm'
@@ -23,7 +23,7 @@ jobs:
23
23
  steps:
24
24
  - uses: actions/checkout@v7
25
25
  - name: Use Node.js
26
- uses: actions/setup-node@v7
26
+ uses: actions/setup-node@v4
27
27
  with:
28
28
  node-version: 20
29
29
  cache: 'npm'
@@ -35,7 +35,7 @@ jobs:
35
35
  steps:
36
36
  - uses: actions/checkout@v7
37
37
  - name: Use Node.js
38
- uses: actions/setup-node@v7
38
+ uses: actions/setup-node@v4
39
39
  with:
40
40
  node-version: 20
41
41
  cache: 'npm'
@@ -33,7 +33,7 @@ jobs:
33
33
  private-key: ${{ secrets.PRIMER_APP_PRIVATE_KEY_SHARED }}
34
34
 
35
35
  - name: Set up Node.js
36
- uses: actions/setup-node@v7
36
+ uses: actions/setup-node@v6
37
37
  with:
38
38
  node-version: 24
39
39
 
@@ -62,7 +62,7 @@ jobs:
62
62
  fetch-depth: 0
63
63
 
64
64
  - name: Set up Node.js
65
- uses: actions/setup-node@v7
65
+ uses: actions/setup-node@v6
66
66
  with:
67
67
  node-version: 24
68
68
 
@@ -112,7 +112,7 @@ jobs:
112
112
  fetch-depth: 0
113
113
 
114
114
  - name: Set up Node.js
115
- uses: actions/setup-node@v7
115
+ uses: actions/setup-node@v6
116
116
  with:
117
117
  node-version: 24
118
118
 
package/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # eslint-plugin-primer-react
2
2
 
3
- ## 0.0.0-20260722211726
3
+ ## 0.0.0-20260723111023
4
+
5
+ ### Minor Changes
6
+
7
+ - [#599](https://github.com/primer/eslint-plugin-primer-react/pull/599) [`f7a9314`](https://github.com/primer/eslint-plugin-primer-react/commit/f7a931486cbed28529d20ce7d6ef6580feac282e) Thanks [@copilot-swe-agent](https://github.com/apps/copilot-swe-agent)! - Upgrade ESLint to v10.7.0 and related ESLint dependencies to compatible versions
4
8
 
5
9
  ### Patch Changes
6
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-primer-react",
3
- "version": "0.0.0-20260722211726",
3
+ "version": "0.0.0-20260723111023",
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.50.0",
35
- "eslint-plugin-github": "^6.0.0",
36
- "eslint-plugin-jsx-a11y": "^6.7.1",
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.50.0",
49
- "eslint": "^9.0.0",
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.3.0",
55
- "eslint-plugin-prettier": "^5.5.4",
56
- "globals": "^17.0.0",
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 => {
@@ -23,7 +23,7 @@ module.exports = {
23
23
  },
24
24
  },
25
25
  create(context) {
26
- const sourceCode = context.getSourceCode()
26
+ const sourceCode = context.sourceCode ?? context.getSourceCode()
27
27
 
28
28
  // Track Octicon imports and usages
29
29
  const octiconImports = []
@@ -77,7 +77,7 @@ module.exports = {
77
77
  schema: [],
78
78
  },
79
79
  create(context) {
80
- const sourceCode = context.getSourceCode()
80
+ const sourceCode = context.sourceCode ?? context.getSourceCode()
81
81
 
82
82
  return {
83
83
  ImportDeclaration(node) {