Skip to content

Commit c84da4f

Browse files
committed
Fix lint
1 parent c0182dd commit c84da4f

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

eslint.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@ export default tslint.config(
244244
eslint.configs.recommended,
245245
...tslint.configs.strictTypeChecked,
246246
config,
247+
{
248+
files: ["src/test/**/*"],
249+
rules: {
250+
"@typescript-eslint/no-deprecated": "off",
251+
},
252+
},
247253
{
248254
ignores: [
249255
"eslint.config.mjs",

src/lib/utils-common/path.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { assert } from "./general.js";
22

33
// Type only import is permitted
4-
// eslint-disable-next-line no-restricted-importsgn
4+
// eslint-disable-next-line no-restricted-imports
55
import type { Application } from "../application.js";
66

77
/**

src/lib/utils/options/declaration.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ export interface ArrayDeclarationOption extends DeclarationOptionBase {
580580
type:
581581
| ParameterType.Array
582582
| ParameterType.PathArray
583+
// eslint-disable-next-line @typescript-eslint/no-deprecated
583584
| ParameterType.ModuleArray
584585
| ParameterType.PluginArray;
585586

@@ -687,6 +688,7 @@ export interface ParameterTypeToOptionTypeMap {
687688
[ParameterType.Object]: unknown;
688689
[ParameterType.Array]: string[];
689690
[ParameterType.PathArray]: NormalizedPath[];
691+
// eslint-disable-next-line @typescript-eslint/no-deprecated
690692
[ParameterType.ModuleArray]: NormalizedPathOrModule[];
691693
[ParameterType.PluginArray]: Array<NormalizedPathOrModule | ((app: Application) => void | Promise<void>)>;
692694
[ParameterType.GlobArray]: GlobString[];
@@ -785,6 +787,7 @@ const converters: {
785787
option.validate?.(normalized);
786788
return normalized;
787789
},
790+
// eslint-disable-next-line @typescript-eslint/no-deprecated
788791
[ParameterType.ModuleArray](value, option, configPath) {
789792
const strArrValue = toStringArray(value, option);
790793
const resolved = resolveModulePaths(strArrValue, configPath);
@@ -971,6 +974,7 @@ const defaultGetters: {
971974
option.defaultValue?.map((value) => normalizePath(resolve(process.cwd(), value))) ?? []
972975
);
973976
},
977+
// eslint-disable-next-line @typescript-eslint/no-deprecated
974978
[ParameterType.ModuleArray](option) {
975979
if (option.defaultValue) {
976980
return resolveModulePaths(option.defaultValue, process.cwd());

src/lib/utils/options/readers/arguments.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { i18n, type Logger, type TranslatedString } from "#utils";
66
const ARRAY_OPTION_TYPES = new Set<ParameterType | undefined>([
77
ParameterType.Array,
88
ParameterType.PathArray,
9+
// eslint-disable-next-line @typescript-eslint/no-deprecated
910
ParameterType.ModuleArray,
1011
ParameterType.PluginArray,
1112
ParameterType.GlobArray,

0 commit comments

Comments
 (0)