Skip to content

Commit

Permalink
chore: update packages (#6225)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S authored Sep 10, 2024
1 parent 933af71 commit 5cb152d
Show file tree
Hide file tree
Showing 12 changed files with 316 additions and 309 deletions.
2 changes: 1 addition & 1 deletion doc-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"node": ">=18"
},
"dependencies": {
"typedoc": "^0.26.6",
"typedoc": "^0.26.7",
"typedoc-plugin-markdown": "4.2.6"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@
"devDependencies": {
"@cspell/dict-markdown": "^2.0.2",
"@cspell/eslint-plugin": "workspace:*",
"@eslint/js": "^9.9.1",
"@eslint/js": "^9.10.0",
"@internal/scripts": "workspace:*",
"@lerna-lite/cli": "^3.9.0",
"@lerna-lite/publish": "^3.9.0",
"@lerna-lite/cli": "^3.9.1",
"@lerna-lite/publish": "^3.9.1",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-json": "^6.1.0",
Expand All @@ -109,7 +109,7 @@
"@types/node": "^18.19.50",
"@vitest/coverage-istanbul": "^2.0.5",
"conventional-changelog-conventionalcommits": "^8.0.0",
"eslint": "^9.9.1",
"eslint": "^9.10.0",
"eslint-plugin-n": "^17.10.2",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-unicorn": "^55.0.0",
Expand All @@ -125,7 +125,7 @@
"ts2mjs": "^3.0.0",
"tslib": "^2.7.0",
"typescript": "~5.5.4",
"typescript-eslint": "^8.4.0",
"typescript-eslint": "^8.5.0",
"vite": "^5.4.3",
"vitest": "^2.0.5"
}
Expand Down
10 changes: 5 additions & 5 deletions packages/cspell-eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.9.1",
"@eslint/js": "^9.10.0",
"@internal/cspell-eslint-plugin-scripts": "workspace:*",
"@internal/fixture-test-dictionary": "workspace:*",
"@types/eslint": "^8.56.12",
"@types/estree": "^1.0.5",
"@types/mocha": "^10.0.7",
"@typescript-eslint/parser": "^8.4.0",
"@typescript-eslint/types": "^8.4.0",
"eslint": "^9.9.1",
"@typescript-eslint/parser": "^8.5.0",
"@typescript-eslint/types": "^8.5.0",
"eslint": "^9.10.0",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-n": "^17.10.2",
Expand All @@ -98,7 +98,7 @@
"mocha": "^10.7.3",
"ts-json-schema-generator": "^2.3.0",
"typescript": "~5.5.4",
"typescript-eslint": "^8.4.0",
"typescript-eslint": "^8.5.0",
"yaml-eslint-parser": "^1.2.3"
},
"dependencies": {
Expand Down
9 changes: 3 additions & 6 deletions packages/cspell-eslint-plugin/src/test/import.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'node:path';
import { fileURLToPath } from 'node:url';

import typeScriptParser from '@typescript-eslint/parser';
import type { Linter } from 'eslint';
import { RuleTester } from 'eslint';

import type { Options as RuleOptions } from '../plugin/index.cjs';
Expand All @@ -12,7 +13,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
const root = path.resolve(__dirname, '../..');
const fixturesDir = path.join(root, 'fixtures');

const parsers: Record<string, string | undefined | unknown> = {
const parsers: Record<string, Linter.Parser | undefined> = {
// Note: it is possible for @typescript-eslint/parser to break the path
'.ts': typeScriptParser,
};
Expand Down Expand Up @@ -90,11 +91,7 @@ function resolveFix(filename: string): string {
return path.resolve(fixturesDir, filename);
}

interface ValidTestCaseEsLint9 extends ValidTestCase {
languageOptions?: {
parser?: unknown;
};
}
type ValidTestCaseEsLint9 = ValidTestCase;

function readFix(filename: string, options?: Options): ValidTestCase {
const __filename = resolveFix(filename);
Expand Down
9 changes: 3 additions & 6 deletions packages/cspell-eslint-plugin/src/test/index.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'node:path';
import { fileURLToPath } from 'node:url';

import typeScriptParser from '@typescript-eslint/parser';
import type { Linter } from 'eslint';
import { RuleTester } from 'eslint';

import type { Options as RuleOptions } from '../plugin/index.cjs';
Expand All @@ -12,7 +13,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
const root = path.resolve(__dirname, '../..');
const fixturesDir = path.join(root, 'fixtures');

const parsers: Record<string, string | undefined | unknown> = {
const parsers: Record<string, Linter.Parser | undefined> = {
// Note: it is possible for @typescript-eslint/parser to break the path
'.ts': typeScriptParser,
};
Expand Down Expand Up @@ -206,11 +207,7 @@ function resolveFix(filename: string): string {
return path.resolve(fixturesDir, filename);
}

interface ValidTestCaseEsLint9 extends ValidTestCase {
languageOptions?: {
parser?: unknown;
};
}
type ValidTestCaseEsLint9 = ValidTestCase;

function readFix(filename: string, options?: Options): ValidTestCase {
const __filename = resolveFix(filename);
Expand Down
11 changes: 4 additions & 7 deletions packages/cspell-eslint-plugin/src/test/json.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'node:path';
import { fileURLToPath } from 'node:url';

import typeScriptParser from '@typescript-eslint/parser';
import type { Linter } from 'eslint';
import { RuleTester } from 'eslint';
import eslintPluginJsonc from 'eslint-plugin-jsonc';
import parser from 'jsonc-eslint-parser';
Expand All @@ -14,7 +15,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
const root = path.resolve(__dirname, '../..');
const fixturesDir = path.join(root, 'fixtures');

const parsers: Record<string, string | undefined | unknown> = {
const parsers: Record<string, Linter.Parser | undefined> = {
// Note: it is possible for @typescript-eslint/parser to break the path
'.ts': typeScriptParser,
};
Expand All @@ -30,7 +31,7 @@ const ruleTester = new RuleTester({
languageOptions: {
parser,
},
});
} as unknown as Linter.Config);

ruleTester.run('cspell', Rule.rules.spellchecker, {
valid: [
Expand All @@ -53,11 +54,7 @@ function resolveFix(filename: string): string {
return path.resolve(fixturesDir, filename);
}

interface ValidTestCaseEsLint9 extends ValidTestCase {
languageOptions?: {
parser?: unknown;
};
}
type ValidTestCaseEsLint9 = ValidTestCase;

function readFix(filename: string, options?: Options): ValidTestCase {
const __filename = resolveFix(filename);
Expand Down
9 changes: 3 additions & 6 deletions packages/cspell-eslint-plugin/src/test/jsx.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'node:path';
import { fileURLToPath } from 'node:url';

import typeScriptParser from '@typescript-eslint/parser';
import type { Linter } from 'eslint';
import { RuleTester } from 'eslint';
import react from 'eslint-plugin-react';
import globals from 'globals';
Expand All @@ -14,7 +15,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
const root = path.resolve(__dirname, '../..');
const fixturesDir = path.join(root, 'fixtures');

const parsers: Record<string, string | undefined | unknown> = {
const parsers: Record<string, Linter.Parser | undefined> = {
// Note: it is possible for @typescript-eslint/parser to break the path
'.ts': typeScriptParser,
};
Expand Down Expand Up @@ -61,11 +62,7 @@ function resolveFix(filename: string): string {
return path.resolve(fixturesDir, filename);
}

interface ValidTestCaseEsLint9 extends ValidTestCase {
languageOptions?: {
parser?: unknown;
};
}
type ValidTestCaseEsLint9 = ValidTestCase;

function readFix(filename: string, options?: Options): ValidTestCase {
const __filename = resolveFix(filename);
Expand Down
9 changes: 3 additions & 6 deletions packages/cspell-eslint-plugin/src/test/yaml.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as path from 'node:path';
import { fileURLToPath } from 'node:url';

import typeScriptParser from '@typescript-eslint/parser';
import type { Linter } from 'eslint';
import { RuleTester } from 'eslint';
import parserYml from 'yaml-eslint-parser';

Expand All @@ -13,7 +14,7 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url));
const root = path.resolve(__dirname, '../..');
const fixturesDir = path.join(root, 'fixtures');

const parsers: Record<string, string | undefined | unknown> = {
const parsers: Record<string, Linter.Parser | undefined> = {
// Note: it is possible for @typescript-eslint/parser to break the path
'.ts': typeScriptParser,
};
Expand All @@ -38,11 +39,7 @@ function resolveFix(filename: string): string {
return path.resolve(fixturesDir, filename);
}

interface ValidTestCaseEsLint9 extends ValidTestCase {
languageOptions?: {
parser?: unknown;
};
}
type ValidTestCaseEsLint9 = ValidTestCase;

function readFix(filename: string, options?: Options): ValidTestCase {
const __filename = resolveFix(filename);
Expand Down
Loading

0 comments on commit 5cb152d

Please sign in to comment.