Skip to content

Commit

Permalink
chore: Upgrade to eslint 9 (#1708)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed May 7, 2024
1 parent 1d5f1f1 commit 806c97d
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 128 deletions.
2 changes: 1 addition & 1 deletion action-src/src/checkSpelling.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { afterEach, beforeEach, describe, expect, test, vi } from 'vitest';

import { toActionParams } from './ActionParams.js';
import { __testing__,checkSpellingForContext, type Context } from './checkSpelling.js';
import { __testing__, checkSpellingForContext, type Context } from './checkSpelling.js';

const { gatherFileGlobsFromContext } = __testing__;

Expand Down
2 changes: 1 addition & 1 deletion action-src/src/checkSpelling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { checkDotMap } from './checkDotMap.js';
import { toError } from './error.js';
import { gitListFiles, gitListFilesForPullRequest, gitListFilesForPush, gitRoot } from './git.js';
import { CSpellReporterForGithubAction } from './reporter.js';
import { lint,LintOptions } from './spell.js';
import { lint, LintOptions } from './spell.js';

const core = { debug, error, info, warning };

Expand Down
2 changes: 1 addition & 1 deletion action-src/src/git.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exec } from 'node:child_process';
import { promisify } from 'node:util';

import type { PullRequestEvent,PushEvent } from '@octokit/webhooks-types';
import type { PullRequestEvent, PushEvent } from '@octokit/webhooks-types';

const execP = promisify(exec);

Expand Down
2 changes: 1 addition & 1 deletion action-src/src/reporter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { debug, error,info, warning } from '@actions/core';
import { debug, error, info, warning } from '@actions/core';
import { issueCommand } from '@actions/core/lib/command.js';
import type {
CSpellReporter,
Expand Down
1 change: 0 additions & 1 deletion action-src/src/test/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));

const urlTSConfig = new URL('../../tsconfig.json', import.meta.url);

// eslint-disable-next-line @typescript-eslint/no-var-requires
const tsconfig = JSON.parse(fs.readFileSync(urlTSConfig, 'utf-8'));

export const sourceDir = path.resolve(path.join(__dirname, '..', '..'));
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
},
"homepage": "https://github.com/streetsidesoftware/cspell-action#readme",
"devDependencies": {
"@eslint/js": "^8.57.0",
"@eslint/js": "^9.2.0",
"@tsconfig/node20": "^20.1.4",
"@vitest/coverage-istanbul": "^1.6.0",
"env-cmd": "^10.1.0",
"eslint": "^8.57.0",
"eslint-plugin-n": "^17.4.0",
"eslint": "^9.2.0",
"eslint-plugin-n": "^17.5.0",
"eslint-plugin-simple-import-sort": "^12.1.0",
"prettier": "^3.2.5",
"shx": "^0.3.4",
Expand Down
Loading

0 comments on commit 806c97d

Please sign in to comment.