Skip to content

Commit 7291c99

Browse files
Update eslint disable comments to use oxlint-disable
1 parent 53047f5 commit 7291c99

17 files changed

Lines changed: 13 additions & 40 deletions

File tree

.meta-updater/main.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line import/no-relative-packages
21
import { updater } from "../packages/tool-meta-updater/src/index.ts";
32

43
export default updater;

packages/app-vscode/src/keyboard/KeyboardCommandTypeHelpers.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ export type KeyboardCommand<T extends keyof KeyboardCommandHandler> = {
2828
// first argument, and return void or Promise<void>. Note that the first check
2929
// may look backwards, because the arg type is contravariant, so the 'extends'
3030
// needs to be flipped.
31-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
31+
// oxlint-disable-next-line @typescript-eslint/no-unused-vars
3232
function assertExtends<A extends B, B>() {}
33-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
33+
// oxlint-disable-next-line @typescript-eslint/no-unused-expressions
3434
assertExtends<
3535
Record<keyof KeyboardCommandArgTypes, (arg?: object) => never>,
3636
Pick<KeyboardCommandHandler, keyof KeyboardCommandArgTypes>
3737
>;
38-
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
38+
// oxlint-disable-next-line @typescript-eslint/no-unused-expressions
3939
assertExtends<
4040
Pick<KeyboardCommandHandler, keyof KeyboardCommandArgTypes>,
4141
Record<keyof KeyboardCommandArgTypes, (arg: never) => void | Promise<void>>

packages/app-web-docs/src/docs/contributing/adding-a-new-language.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ If you are adding support for a new language that isn't natively detected by VSC
2323
ScopeSupportFacetLevel,
2424
} from "./scopeSupportFacets.types";
2525

26-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2726
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
2827

2928
export const markdownScopeSupport: LanguageScopeSupportFacetMap = {};

packages/lib-common/src/scopeSupportFacets/jsonc.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { jsonScopeSupport } from "./json";
22
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
3-
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
4-
5-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6-
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
73

84
export const jsoncScopeSupport: LanguageScopeSupportFacetMap = {
95
...jsonScopeSupport,

packages/lib-common/src/scopeSupportFacets/jsonl.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
import { jsonScopeSupport } from "./json";
22
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
3-
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
4-
5-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6-
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
73

84
export const jsonlScopeSupport: LanguageScopeSupportFacetMap = {
95
...jsonScopeSupport,

packages/lib-common/src/scopeSupportFacets/languageScopeSupport.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ import { typescriptreactScopeSupport } from "./typescriptreact";
3434
import { xmlScopeSupport } from "./xml";
3535
import { yamlScopeSupport } from "./yaml";
3636

37-
/* eslint-disable @typescript-eslint/naming-convention */
38-
3937
export const languageScopeSupport: StringRecord<LanguageScopeSupportFacetMap> =
4038
{
4139
c: cScopeSupport,

packages/lib-common/src/scopeSupportFacets/yaml.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
22
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
33

4-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
5-
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;
4+
const { supported, notApplicable } = ScopeSupportFacetLevel;
65

76
export const yamlScopeSupport: LanguageScopeSupportFacetMap = {
87
disqualifyDelimiter: supported,

packages/lib-common/src/tooling/jest.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
export const preactModuleNameMapper = {
42
"^react$": "<rootDir>/node_modules/preact/compat/dist/compat.js",
53
"^react-dom$": "<rootDir>/node_modules/preact/compat/dist/compat.js",

packages/lib-common/src/tooling/vitePreactAlias.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-disable @typescript-eslint/naming-convention */
2-
31
export const vitePreactAlias = {
42
"react-dom/test-utils": "preact/test-utils",
53
"react-dom": "preact/compat",

packages/lib-engine/src/customCommandGrammar/parseCommand.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import grammar from "./generated/grammar";
55

66
function getScopeTypeParser(): nearley.Parser {
77
return new nearley.Parser(
8-
// eslint-disable-next-line @typescript-eslint/naming-convention
98
nearley.Grammar.fromCompiled({ ...grammar, ParserStart: "scopeType" }),
109
);
1110
}

0 commit comments

Comments
 (0)