Skip to content

Commit

Permalink
chore(deps-dev): bump ESLint and related packages
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Aug 23, 2022
1 parent b032723 commit 6e94cfa
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 292 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@typescript-eslint/strict-boolean-expressions": "warn",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",

"import/no-extraneous-dependencies": ["error", { "devDependencies": ["**/*.{test,spec}.ts", "**/__tests__/__helpers__/*.ts"] }]
}
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@
"@types/node-fetch": "^2.5.12",
"@types/node-powershell": "^3.1.1",
"@types/text-table": "^0.2.2",
"@typescript-eslint/eslint-plugin": "^4.33.0",
"@typescript-eslint/parser": "^4.33.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-prettier": "^4.0.0",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"expect": "^27.5.1",
"fast-glob": "^3.2.7",
"fetch-mock": "^9.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/ruleset/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export type SchemaDefinition = Schema | boolean;

const DEFAULT_OPTIONS_VALIDATOR = (o: unknown): boolean => o === null;

export function createRulesetFunction<I extends unknown, O extends unknown>(
export function createRulesetFunction<I, O>(
{
input,
errorOnInvalidInput = false,
Expand Down
7 changes: 2 additions & 5 deletions packages/core/src/types/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { IRule } from '../ruleset/rule';
import type { IDocument } from '../document';
import type { JSONSchema7 } from 'json-schema';

export type RulesetFunction<I extends unknown = unknown, O extends unknown = unknown> = (
export type RulesetFunction<I = unknown, O = unknown> = (
input: I,
options: O,
context: RulesetFunctionContext,
Expand All @@ -19,10 +19,7 @@ export type RulesetFunctionContext = {

export type IFunction = RulesetFunction;

export type RulesetFunctionWithValidator<I extends unknown = unknown, O extends unknown = unknown> = RulesetFunction<
I,
O
> & {
export type RulesetFunctionWithValidator<I = unknown, O = unknown> = RulesetFunction<I, O> & {
validator<O = unknown>(options: unknown): asserts options is O;
readonly schemas: Readonly<{
input: Readonly<JSONSchema7> | null;
Expand Down
Loading

0 comments on commit 6e94cfa

Please sign in to comment.