Skip to content

Commit c11d82c

Browse files
committed
ci(lint): stabilize Actions import classification
Classify @actions packages explicitly so import ordering does not change with the Node.js resolver used by lint.
1 parent 11de278 commit c11d82c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

eslint.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,11 @@ export default [
274274
group: 'builtin',
275275
position: 'before',
276276
},
277+
{
278+
pattern: '@actions/**',
279+
group: 'external',
280+
position: 'before',
281+
},
277282
],
278283
}],
279284
'import/no-useless-path-segments': 'error',

scripts/all-green.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import { setTimeout } from 'node:timers/promises'
2-
import { Octokit } from 'octokit'
32
import { summary } from '@actions/core'
43
import { context } from '@actions/github'
5-
// eslint-disable-next-line import/order -- @actions ESM exports resolve differently across supported Node.js versions.
4+
import { Octokit } from 'octokit'
65
import { downloadArtifacts } from './download-artifacts.mjs'
76

87
/* eslint-disable no-console */

0 commit comments

Comments
 (0)