Skip to content

Commit 8425fef

Browse files
committed
Update for ESLint 10 compatibility
1 parent 135d45b commit 8425fef

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.github/workflows/nodejs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v5
18-
- uses: actions/setup-node@v5
17+
- uses: actions/checkout@v6
18+
- uses: actions/setup-node@v6
1919
with:
2020
node-version: '24'
2121
- run: |
@@ -33,8 +33,8 @@ jobs:
3333
node-version: ['18', '20', '22', '24']
3434

3535
steps:
36-
- uses: actions/checkout@v5
37-
- uses: actions/setup-node@v5
36+
- uses: actions/checkout@v6
37+
- uses: actions/setup-node@v6
3838
with:
3939
node-version: ${{ matrix.node-version }}
4040
- run: |

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ task
2121
const
2222
[
2323
{ finished },
24-
{ createFlatConfig },
24+
{ createConfig },
2525
{ default: { configs: { all: eslintPluginAll } } },
2626
{ default: globals },
2727
{ default: gulpESLintNew },
@@ -38,7 +38,7 @@ task
3838
);
3939

4040
const baseConfig =
41-
await createFlatConfig
41+
await createConfig
4242
(
4343
{
4444
jsVersion: 2020,

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function reportOnSpace(firstToken, lastToken, context, node, data)
134134
{
135135
const [, separatorStart] = firstToken.range;
136136
const [separatorEnd] = lastToken.range;
137-
const sourceCode = context.getSourceCode();
137+
const { sourceCode } = context;
138138
const sourceText = sourceCode.getText();
139139
const separator = sourceText.slice(separatorStart, separatorEnd);
140140
const match = /^(?:(?=.)\s)+(?!.)/.exec(separator);

0 commit comments

Comments
 (0)