Skip to content

Commit 4567e1f

Browse files
authored
upgrade typescript-eslint and other dependencies (#14)
1 parent cb612d1 commit 4567e1f

File tree

7 files changed

+1771
-6080
lines changed

7 files changed

+1771
-6080
lines changed

jest.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@
33
// @ts-check
44
/** @type {import('@jest/types').Config.InitialOptions} */
55
module.exports = {
6-
globals: {
7-
'ts-jest': {
8-
isolatedModules: true,
9-
},
10-
},
116
testEnvironment: 'node',
127
transform: {
13-
'^.+\\.tsx?$': 'ts-jest',
8+
'^.+\\.tsx?$': ['ts-jest', { isolatedModules: true }],
149
},
1510
testRegex: './tests/lib/.+\\.test\\.ts$',
1611
collectCoverage: false,

lib/rules/strict-logical-expressions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ESLintUtils, TSESTree } from "@typescript-eslint/experimental-utils";
1+
import { ESLintUtils, TSESTree } from "@typescript-eslint/utils"
22
import * as tsutils from "tsutils";
33
import * as ts from "typescript";
44
import { createRule } from "../util/createRule";
@@ -23,7 +23,7 @@ export default createRule<Options, MessageIds>({
2323
meta: {
2424
docs: {
2525
description: "Forbid non-boolean falsey values in inline expressions",
26-
recommended: "error",
26+
recommended: "strict",
2727
},
2828
fixable: "code",
2929
type: "problem",

lib/util/createRule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ESLintUtils } from "@typescript-eslint/experimental-utils";
1+
import { ESLintUtils } from "@typescript-eslint/utils";
22

33
// note - cannot migrate this to an import statement because it will make TSC copy the package.json to the dist folder
44
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access

0 commit comments

Comments
 (0)