Skip to content

Commit 5c6b1a2

Browse files
fix: migrate code for @typescript-eslint v6
1 parent bdc2d4f commit 5c6b1a2

File tree

149 files changed

+2391
-1937
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+2391
-1937
lines changed

.eslintrc.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@
1212
"prettier"
1313
],
1414
"parserOptions": {
15-
"project": [
16-
"./tsconfig.json",
17-
"./tests/tsconfig.json",
18-
"./cz-adapter/tsconfig.json"
19-
]
15+
"project": ["./tsconfig.json"]
2016
},
2117
"ignorePatterns": ["/build/", "/coverage/", "/lib/", "/cz-adapter/**/*.js"],
2218
"rules": {
23-
"functional/prefer-immutable-types": "off"
19+
"functional/prefer-immutable-types": "off",
20+
"@typescript-eslint/no-unnecessary-condition": "off",
21+
"@typescript-eslint/restrict-plus-operands": "off"
2422
},
2523
"overrides": [
2624
{
@@ -70,6 +68,12 @@
7068
"jsdoc/require-jsdoc": "off"
7169
}
7270
},
71+
{
72+
"files": "tests/helpers/testers.ts",
73+
"rules": {
74+
"ava/no-ignored-test-files": "off"
75+
}
76+
},
7377
{
7478
"files": ["./typings/**/*"],
7579
"extends": ["plugin:functional/off"],

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
/.husky/** linguist-detectable=false
77

88
**/tsconfig.json linguist-language=jsonc
9-
**/tsconfig.*.json linguist-language=jsonc
109
/.lintstagedrc linguist-language=json
1110
/.vscode/*.json linguist-language=jsonc
1211

.github/workflows/test-js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
node -e '
5454
const fs = require("fs");
55-
const filename = "./tsconfig.base.json";
55+
const filename = "./tsconfig.json";
5656
const tsConfig = require(filename);
5757
delete tsConfig.compilerOptions.exactOptionalPropertyTypes;
5858
delete tsConfig.compilerOptions.noPropertyAccessFromIndexSignature;

ava.config.mjs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,17 @@ const avaCommonConfig = {
2222
? ["tests/rules/work.test.*"]
2323
: ["tests/**/!(work)*.test.*"],
2424
timeout: "5m",
25+
nodeArguments: ["--no-warnings"],
2526
};
2627

2728
const avaTsConfig = {
2829
...avaCommonConfig,
2930
extensions: ["ts"],
3031
require: ["ts-node/register", "tsconfig-paths/register"],
31-
environmentVariables: {
32-
TS_NODE_PROJECT: "tests/tsconfig.json",
33-
},
3432
};
3533

3634
const avaJsConfig = {
3735
...avaCommonConfig,
38-
extensions: ["js"],
39-
require: ["tsconfig-paths/register"],
40-
environmentVariables: {
41-
TS_NODE_PROJECT: "build/tests/tsconfig.json",
42-
},
43-
typescript: {
44-
rewritePaths: {
45-
"src/": "build/src/",
46-
"tests/": "build/tests/",
47-
},
48-
compile: false,
49-
},
5036
};
5137

5238
export default useCompiledTests ? avaJsConfig : avaTsConfig;

cz-adapter/tsconfig.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
2-
"extends": "../tsconfig.base.json",
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
44
"module": "commonjs",
55
"moduleResolution": "node",
6-
"skipLibCheck": true,
7-
"declaration": false
6+
"skipLibCheck": true
87
},
98
"ts-node": {
10-
"emit": true,
11-
"transpileOnly": true
9+
"emit": true
1210
}
1311
}

package.json

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
],
4747
"scripts": {
4848
"build": "pnpm run build:node && pnpm run build:docs",
49-
"build-tests": "rimraf build && ts-node -P scripts/tsconfig.json scripts/compile-tests.mts",
49+
"build-tests": "rimraf build && ts-node -P tsconfig.json scripts/compile-tests.mts",
5050
"build:docs": "eslint-doc-generator",
5151
"build:node": "rimraf lib && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
5252
"cz": "git-cz",
@@ -73,81 +73,81 @@
7373
"dependencies": {
7474
"@typescript-eslint/type-utils": "^6.0.0",
7575
"@typescript-eslint/utils": "^6.0.0",
76-
"deepmerge-ts": "^5.0.0",
76+
"deepmerge-ts": "^5.1.0",
7777
"escape-string-regexp": "^4.0.0",
78-
"is-immutable-type": "^1.2.5",
79-
"semver": "^7.3.8",
78+
"is-immutable-type": "^1.2.9",
79+
"semver": "^7.5.4",
8080
"ts-api-utils": "^1.0.1"
8181
},
8282
"devDependencies": {
83-
"@ava/typescript": "4.0.0",
84-
"@babel/core": "7.21.4",
85-
"@babel/eslint-parser": "7.21.3",
86-
"@commitlint/cli": "17.6.1",
87-
"@commitlint/config-conventional": "17.6.1",
83+
"@ava/typescript": "4.1.0",
84+
"@babel/core": "7.22.9",
85+
"@babel/eslint-parser": "7.22.9",
86+
"@commitlint/cli": "17.6.6",
87+
"@commitlint/config-conventional": "17.6.6",
8888
"@cspell/dict-cryptocurrencies": "3.0.1",
8989
"@google/semantic-release-replace-plugin": "1.2.0",
9090
"@istanbuljs/nyc-config-typescript": "1.0.2",
91-
"@rebeccastevens/eslint-config": "1.6.7",
92-
"@rollup/plugin-commonjs": "24.1.0",
91+
"@rebeccastevens/eslint-config": "1.7.8",
92+
"@rollup/plugin-commonjs": "25.0.2",
9393
"@rollup/plugin-json": "6.0.0",
9494
"@rollup/plugin-typescript": "11.1.2",
9595
"@semantic-release/changelog": "6.0.3",
96-
"@semantic-release/commit-analyzer": "9.0.2",
96+
"@semantic-release/commit-analyzer": "10.0.1",
9797
"@semantic-release/git": "10.0.1",
98-
"@semantic-release/github": "8.0.7",
99-
"@semantic-release/npm": "10.0.3",
100-
"@semantic-release/release-notes-generator": "10.0.3",
98+
"@semantic-release/github": "9.0.3",
99+
"@semantic-release/npm": "10.0.4",
100+
"@semantic-release/release-notes-generator": "11.0.4",
101101
"@types/dedent": "0.7.0",
102-
"@types/eslint": "8.37.0",
103-
"@types/json-schema": "7.0.11",
102+
"@types/eslint": "8.44.0",
103+
"@types/json-schema": "7.0.12",
104104
"@types/node": "16.18.23",
105105
"@types/rollup-plugin-auto-external": "2.0.2",
106-
"@types/semver": "7.3.13",
106+
"@types/semver": "7.5.0",
107107
"@typescript-eslint/eslint-plugin": "6.0.0",
108108
"@typescript-eslint/parser": "6.0.0",
109-
"ava": "5.2.0",
109+
"ava": "5.3.1",
110110
"chalk": "4.1.2",
111111
"commitizen": "4.3.0",
112112
"conventional-commit-types": "3.0.0",
113113
"cspell": "6.31.1",
114-
"dedent": "0.7.0",
115-
"eslint": "8.38.0",
114+
"dedent": "1.0.1",
115+
"eslint": "8.44.0",
116116
"eslint-ava-rule-tester": "4.0.0",
117117
"eslint-config-prettier": "8.8.0",
118118
"eslint-doc-generator": "1.4.3",
119119
"eslint-import-resolver-typescript": "3.5.5",
120120
"eslint-plugin-ava": "14.0.0",
121121
"eslint-plugin-eslint-comments": "3.2.0",
122-
"eslint-plugin-eslint-plugin": "5.0.8",
122+
"eslint-plugin-eslint-plugin": "5.1.0",
123123
"eslint-plugin-import": "2.27.5",
124-
"eslint-plugin-jsdoc": "41.1.2",
124+
"eslint-plugin-jsdoc": "46.4.3",
125125
"eslint-plugin-markdown": "3.0.0",
126126
"eslint-plugin-node": "11.1.0",
127127
"eslint-plugin-optimize-regex": "1.2.1",
128-
"eslint-plugin-prettier": "4.2.1",
128+
"eslint-plugin-prettier": "5.0.0",
129129
"eslint-plugin-promise": "6.1.1",
130130
"eslint-plugin-sonarjs": "0.19.0",
131-
"eslint-plugin-unicorn": "46.0.0",
132-
"espree": "9.5.1",
131+
"eslint-plugin-unicorn": "47.0.0",
132+
"espree": "9.6.0",
133133
"husky": "8.0.3",
134134
"json-schema": "0.4.0",
135135
"jsonc-parser": "3.2.0",
136-
"knip": "2.9.0",
137-
"lint-staged": "13.2.1",
138-
"markdownlint-cli": "0.33.0",
136+
"knip": "2.15.5",
137+
"lint-staged": "13.2.3",
138+
"markdownlint-cli": "0.35.0",
139139
"nyc": "15.1.0",
140-
"prettier": "2.8.7",
141-
"prettier-plugin-packagejson": "2.4.3",
142-
"rimraf": "5.0.0",
143-
"rollup": "3.20.4",
140+
"prettier": "3.0.0",
141+
"prettier-plugin-packagejson": "2.4.5",
142+
"rimraf": "5.0.1",
143+
"rollup": "3.26.2",
144144
"rollup-plugin-auto-external": "2.0.0",
145-
"semantic-release": "21.0.1",
145+
"semantic-release": "21.0.7",
146146
"ts-node": "10.9.1",
147147
"tsc-prog": "2.2.1",
148148
"tsconfig-paths": "4.2.0",
149-
"tslib": "2.5.0",
150-
"typescript": "5.0.4",
149+
"tslib": "2.6.0",
150+
"typescript": "5.1.6",
151151
"word-wrap": "1.2.3"
152152
},
153153
"peerDependencies": {

0 commit comments

Comments
 (0)