Skip to content

Commit 23f658c

Browse files
authored
chore: use typescript-eslint v6 (#236)
1 parent 0b1bf8d commit 23f658c

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

.github/workflows/GHPages.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ jobs:
3232
run: yarn
3333
- name: Build docs
3434
run: |+
35-
export NODE_OPTIONS=--openssl-legacy-provider
3635
yarn docs:build
3736
- name: Setup Pages
3837
uses: actions/configure-pages@v3

.github/workflows/NodeCI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
node-version: 14.x
5353
- name: Install Target Packages
5454
run: |+
55-
yarn add -D eslint@6
56-
yarn
55+
yarn add -D eslint@6 --ignore-engines
56+
yarn --ignore-engines
5757
- name: Test
5858
run: yarn test
5959
test-with-eslint7:
@@ -65,8 +65,8 @@ jobs:
6565
node-version: 14.x
6666
- name: Install Target Packages
6767
run: |+
68-
yarn add -D eslint@7
69-
yarn
68+
yarn add -D eslint@7 --ignore-engines
69+
yarn --ignore-engines
7070
- name: Test
7171
run: yarn test
7272
test-and-coverage:

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
"build:ts": "tsc --project ./tsconfig.build.json",
2929
"clean": "rimraf .nyc_output dist coverage",
3030
"cover": "nyc --reporter=lcov yarn test",
31-
"docs:build": "yarn build:ts && vuepress build docs --no-cache",
32-
"docs:watch": "vuepress dev --debug docs",
31+
"docs:build": "yarn build:ts && npm run vuepress -- build docs --no-cache",
32+
"docs:watch": "npm run vuepress -- dev --debug docs",
33+
"vuepress": "node --openssl-legacy-provider ./node_modules/vuepress/cli.js",
3334
"lint": "eslint . --ext .js,.vue,.ts,.json,.md,.toml,.yaml,.yml",
3435
"lint-fix": "yarn lint --fix",
3536
"mocha": "yarn ts node_modules/mocha/bin/mocha",
@@ -74,8 +75,8 @@
7475
"@types/node": "^18.0.0",
7576
"@types/request": "^2.48.5",
7677
"@types/semver": "^7.3.1",
77-
"@typescript-eslint/eslint-plugin": "^5.0.0",
78-
"@typescript-eslint/parser": "^5.0.0",
78+
"@typescript-eslint/eslint-plugin": "^6.0.0",
79+
"@typescript-eslint/parser": "^6.0.0",
7980
"env-cmd": "^10.1.0",
8081
"esbuild-register": "^3.3.3",
8182
"eslint": "^8.0.0",

src/utils/ast/js/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ const CALC_BINARY: Record<
119119
"<<": (v1, v2) => v1 << v2,
120120
">>": (v1, v2) => v1 >> v2,
121121
">>>": (v1, v2) => v1 >>> v2,
122-
// eslint-disable-next-line @typescript-eslint/restrict-plus-operands -- ignore
123122
"+": (v1, v2) => v1 + v2,
124123
"-": (v1, v2) => v1 - v2,
125124
"*": (v1, v2) => v1 * v2,
@@ -485,7 +484,7 @@ const VISITORS = {
485484
}
486485
let data = node.quasis[0].value.cooked ?? node.quasis[0].value.raw;
487486
for (let i = 0; i < expressions.length; ++i) {
488-
data += expressions[i];
487+
data += String(expressions[i]);
489488
data += node.quasis[i + 1].value.cooked ?? node.quasis[i + 1].value.raw;
490489
}
491490
return { data, children: EMPTY_MAP };

tools/update-docs.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class DocFile {
9696
} else {
9797
if (categories) {
9898
const presets = [];
99-
// eslint-disable-next-line @typescript-eslint/require-array-sort-compare -- ignore
10099
for (const cat of categories.sort()) {
101100
presets.push(`\`"plugin:json-schema-validator/${cat}"\``);
102101
}

0 commit comments

Comments
 (0)