Skip to content

Commit

Permalink
Merge a4ce7ba into cf79307
Browse files Browse the repository at this point in the history
  • Loading branch information
2 parents cf79307 + a4ce7ba commit c4af77f
Show file tree
Hide file tree
Showing 26 changed files with 14 additions and 33 deletions.
2 changes: 0 additions & 2 deletions packages/cspell-eslint-plugin/src/worker/worker.mjs
@@ -1,7 +1,5 @@
// @ts-check

/* eslint-disable n/no-missing-import */

/**
* @typedef {import('estree').Node} Node
* @typedef {import('./types.cjs').Issue} Issue
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-json-reporter/src/index.test.ts
Expand Up @@ -65,7 +65,6 @@ describe('getReporter', () => {
});
});

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function joinCalls(calls: any[][]): string {
return calls.map((call) => call.join('<>')).join('\n');
}
Expand Down
Expand Up @@ -77,7 +77,6 @@ describe('Validate DictionaryLoader', () => {
return s.normalize('NFC');
}

// eslint-disable-next-line unicorn/prefer-module
const csharpDictExt = require.resolve('@cspell/dict-csharp/cspell-ext.json');
const csharp = path.join(path.dirname(csharpDictExt), 'csharp.txt.gz');

Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-lib/src/lib/test/dutch.spec.ts
Expand Up @@ -9,7 +9,7 @@ import * as util from '../util/util.js';

const sampleFilename = path.join(pathPackageSamples, 'Dutch.txt');
const text = fs.readFileSync(sampleFilename, 'utf8').toString();
// eslint-disable-next-line unicorn/prefer-module

const dutchConfig = require.resolve('@cspell/dict-nl-nl/cspell-ext.json');

const timeout = 10_000;
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-lib/src/lib/test/fa.spec.ts
Expand Up @@ -9,7 +9,7 @@ import * as util from '../util/util.js';

const sampleFilename = path.join(pathPackageSamples, 'Seattle.fa.md');
const text = fs.readFileSync(sampleFilename, 'utf8').toString();
// eslint-disable-next-line unicorn/prefer-module

const frenchConfig = require.resolve('@cspell/dict-fa-ir/cspell-ext.json');

const timeout = 10_000;
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-lib/src/lib/test/french.spec.ts
Expand Up @@ -12,7 +12,7 @@ const require = createRequire(import.meta.url);

const sampleFilename = path.join(pathPackageSamples, 'French.md');
const text = fs.readFileSync(sampleFilename, 'utf8').toString();
// eslint-disable-next-line unicorn/prefer-module

const frenchConfig = require.resolve('@cspell/dict-fr-fr/cspell-ext.json');

const timeout = 10_000;
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-pipe/src/operators/await.test.ts
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-array-callback-reference */
import { describe, expect, test } from 'vitest';

import { toArray } from '../helpers/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-pipe/src/operators/concatMap.test.ts
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-array-callback-reference */
import { describe, expect, test } from 'vitest';

import { toArray } from '../helpers/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-pipe/src/operators/filter.test.ts
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-array-callback-reference */
import { describe, expect, test } from 'vitest';

import { toArray, toAsyncIterable } from '../helpers/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-pipe/src/operators/map.test.ts
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-array-callback-reference */
import { describe, expect, test } from 'vitest';

import { toArray } from '../helpers/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-pipe/src/operators/tap.test.ts
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-array-callback-reference */
import { describe, expect, test, vi } from 'vitest';

import { toArray } from '../helpers/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-pipe/src/pipe.test.ts
@@ -1,4 +1,3 @@
/* eslint-disable unicorn/no-array-callback-reference */
import { describe, expect, test } from 'vitest';

import { toArray, toAsyncIterable } from './helpers/index.js';
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-service-bus/src/SystemServiceBus.test.ts
Expand Up @@ -38,7 +38,6 @@ describe('SystemServiceBus', () => {
});

test('ServiceRequestFactory Compliance', () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const knownRequests: [string, ServiceRequestFactory<any>][] = Object.entries(knownRequestTypes);
expect(knownRequests.map(([name, def]) => [name, def.type])).toMatchSnapshot();
});
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-strong-weak-map/src/StrongWeakMap.test.ts
Expand Up @@ -168,7 +168,6 @@ function deleteAll<K, V>(map: Map<K, Boxed<V>>, keys: K[] | undefined) {
keys?.forEach((k) => map.delete(k));
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
function keys<T>(iterable: Iterable<[T, ...any[]]>): T[] {
return [...iterable].map(([k]) => k);
}
1 change: 0 additions & 1 deletion packages/cspell-tools/src/app.test.ts
Expand Up @@ -12,7 +12,6 @@ import { spyOnConsole } from './test/console.js';
import { createTestHelper } from './test/TestHelper.js';

vi.mock('./gzip/compressFiles.js', async () => {
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
const mod = await vi.importActual<typeof import('./gzip/compressFiles.js')>('./gzip/compressFiles.js');
return {
...mod,
Expand Down
1 change: 0 additions & 1 deletion packages/cspell-tools/src/shasum/shasum.test.ts
Expand Up @@ -12,7 +12,6 @@ import {
} from './shasum.js';

vi.mock('node:fs/promises', async () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const fs: any = await vi.importActual('node:fs/promises');
return {
...fs,
Expand Down
4 changes: 2 additions & 2 deletions packages/cspell-trie-lib/src/lib/ITrieNode/find.ts
Expand Up @@ -176,7 +176,7 @@ export function findCompoundNode(
let caseMatched = true;
let i = 0;
let node: ITrieNode | undefined;
// eslint-disable-next-line no-constant-condition

while (true) {
const s = stack[i];
const h = w[i++];
Expand Down Expand Up @@ -290,7 +290,7 @@ function findLegacyCompoundNode(
let caseMatched = true;
let i = 0;
let node: ITrieNode | undefined;
// eslint-disable-next-line no-constant-condition

while (true) {
const s = stack[i];
const h = w[i++];
Expand Down
4 changes: 2 additions & 2 deletions packages/cspell-trie-lib/src/lib/TrieNode/find.ts
Expand Up @@ -201,7 +201,7 @@ export function findCompoundNode(
let caseMatched = true;
let i = 0;
let node: TrieNode | undefined;
// eslint-disable-next-line no-constant-condition

while (true) {
const s = stack[i];
const h = w[i++];
Expand Down Expand Up @@ -314,7 +314,7 @@ function findLegacyCompoundNode(
let caseMatched = true;
let i = 0;
let node: TrieNode | undefined;
// eslint-disable-next-line no-constant-condition

while (true) {
const s = stack[i];
const h = w[i++];
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-trie-lib/src/lib/io/importExportV1.ts
Expand Up @@ -91,7 +91,7 @@ export function importTrie(linesX: Iterable<string> | IterableIterator<string>):

function readHeader(iter: Iterator<string>) {
const headerRows: string[] = [];
// eslint-disable-next-line no-constant-condition

while (true) {
const next = iter.next();
if (next.done) {
Expand Down
2 changes: 1 addition & 1 deletion packages/cspell-trie-lib/src/lib/io/importExportV2.ts
Expand Up @@ -160,7 +160,7 @@ export function importTrie(linesX: Iterable<string> | IterableIterator<string>):

function readHeader(iter: Iterator<string>) {
const headerRows: string[] = [];
// eslint-disable-next-line no-constant-condition

while (true) {
const next = iter.next();
if (next.done) {
Expand Down
1 change: 0 additions & 1 deletion packages/cspell/src/lib/pkgInfo.cts
@@ -1,4 +1,3 @@
export const pkgDir = __dirname;

// eslint-disable-next-line @typescript-eslint/no-var-requires
export const npmPackage = require('../../package.json');
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,4 +1,3 @@
/* eslint-disable n/no-extraneous-import */
import type { Plugin } from 'rollup';

import { injectSnippet } from '../inject.mjs';
Expand Down
@@ -1,6 +1,5 @@
import { dynamicImport } from '@cspell/dynamic-import';

// eslint-disable-next-line @typescript-eslint/consistent-type-imports
export function getPipes(): Promise<typeof import('@cspell/cspell-pipe')> {
return dynamicImport('@cspell/cspell-pipe', __dirname);
}
@@ -1,6 +1,5 @@
import { dynamicImport } from '@cspell/dynamic-import';

// eslint-disable-next-line @typescript-eslint/consistent-type-imports
export function getPipes(): Promise<typeof import('@cspell/cspell-pipe')> {
return dynamicImport('@cspell/cspell-pipe', import.meta.url);
}
@@ -1,6 +1,5 @@
import { dynamicImport } from '@cspell/dynamic-import';

// eslint-disable-next-line @typescript-eslint/consistent-type-imports
export function getPipes(): Promise<typeof import('@cspell/cspell-pipe')> {
return dynamicImport('@cspell/cspell-pipe', import.meta.url);
}

0 comments on commit c4af77f

Please sign in to comment.