Skip to content

Commit f706577

Browse files
committed
Update typescipt
1 parent aef3479 commit f706577

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
"test": "yarn jest --watch",
3939
"coverage": "yarn test --coverage --watchAll=false",
4040
"coverage-preview": "http-server -o -p 5000 coverage/lcov-report",
41-
"type-check": "tsc --noEmit --skipLibCheck",
42-
"verify": "yarn type-check && yarn lint && yarn build && yarn coverage"
41+
"typecheck": "tsc --noEmit --skipLibCheck",
42+
"verify": "yarn typecheck && yarn lint && yarn build && yarn coverage"
4343
},
4444
"dependencies": {
4545
"@typescript-eslint/experimental-utils": "^4.29.2",
@@ -82,7 +82,7 @@
8282
"rollup": "~2.10.5",
8383
"tmp": "~0.2.1",
8484
"tsconfig": "~7.0.0",
85-
"typescript": "~3.9.3"
85+
"typescript": "~4.3.5"
8686
},
8787
"peerDependencies": {
8888
"@typescript-eslint/parser": "^1 || ^2 || ^3 || ^4",

tests/autofix.spec.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import path from 'path'
22
import fs from 'fs'
33
import tmp from 'tmp'
4-
import { ESLint } from 'eslint'
4+
import { ESLint, Linter } from 'eslint'
55

66
import plugin from '../src'
77
import recommended from 'config/recommended'
8+
import { SortingOrder } from 'common/options'
89
import { typescript } from './helpers/configs'
910

1011
describe('autofix', () => {
@@ -16,14 +17,14 @@ describe('autofix', () => {
1617
[recommended, 'autofix.output.ts'],
1718
[
1819
{
19-
...recommended,
20+
plugins: recommended.plugins,
2021
rules: {
2122
...recommended.rules,
2223
'typescript-sort-keys/interface': [
23-
'error',
24-
'asc',
24+
'error' as const,
25+
SortingOrder.Ascending,
2526
{ caseSensitive: true, natural: true, requiredFirst: true },
26-
],
27+
] as Linter.RuleEntry,
2728
},
2829
},
2930
'requiredFirst.output.ts',
@@ -43,8 +44,6 @@ describe('autofix', () => {
4344
fs.writeFileSync(testFilePath, input)
4445

4546
const eslint = new ESLint({
46-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
47-
// @ts-ignore
4847
overrideConfig: {
4948
...config,
5049
parser: typescript.parser,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6600,10 +6600,10 @@ typedarray-to-buffer@^3.1.5:
66006600
dependencies:
66016601
is-typedarray "^1.0.0"
66026602

6603-
typescript@~3.9.3:
6604-
version "3.9.3"
6605-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.3.tgz#d3ac8883a97c26139e42df5e93eeece33d610b8a"
6606-
integrity sha512-D/wqnB2xzNFIcoBG9FG8cXRDjiqSTbG2wd8DMZeQyJlP1vfTkIxH4GKveWaEBYySKIg+USu+E+EDIR47SqnaMQ==
6603+
typescript@~4.3.5:
6604+
version "4.3.5"
6605+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
6606+
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
66076607

66086608
unbox-primitive@^1.0.1:
66096609
version "1.0.1"

0 commit comments

Comments
 (0)