Skip to content

Commit

Permalink
chore(deps): update typescript-eslint monorepo to v6 (major) (#223)
Browse files Browse the repository at this point in the history
* chore(deps): update typescript-eslint monorepo to v6

* fix

* chore(deps): update typescript-eslint monorepo to v6

* fix

* Update package.json

* fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: yosuke ota <otameshiyo23@gmail.com>
  • Loading branch information
renovate[bot] and ota-meshi committed Jul 22, 2023
1 parent 8a6dab8 commit fc771f8
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 6 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/NodeCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -49,7 +49,26 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: Install eslint v7
run: |+
npm i -D eslint@7 --legacy-peer-deps
npm i -D eslint@7 @typescript-eslint/parser@5 --legacy-peer-deps
npx rimraf node_modules
- name: Install Packages
run: npm install --legacy-peer-deps
- name: Test
run: npm test
test-for-node-v14:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install @typescript-eslint/parser v5
run: |+
npm i -D @typescript-eslint/parser@5 --legacy-peer-deps
npx rimraf node_modules
- name: Install Packages
run: npm install --legacy-peer-deps
Expand Down
1 change: 0 additions & 1 deletion docs-build/build-system/src/eslint-plugin-jsx-a11y.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* eslint require-jsdoc:0 -- shim */

// eslint-disable-next-line n/no-missing-import -- Ignore
import * as all from "../../../node_modules/eslint-plugin-jsx-a11y"
export const rules = all.rules
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@
"@types/react": "^18.0.15",
"@types/semver": "^7.3.9",
"@types/stylus": "^0.48.38",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"assert": "^2.0.0",
"astro": "^2.0.0",
"env-cmd": "^10.1.0",
Expand Down Expand Up @@ -117,7 +117,7 @@
"sass": "^1.52.2",
"stylus": "^0.59.0",
"svelte": "^4.0.0",
"typescript": "^5.0.0"
"typescript": "~5.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
1 change: 1 addition & 0 deletions src/shared/client-script/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-expect-error -- bug?
import type { ElementNode, TextNode } from "@astrojs/compiler/types"
import type { ParseTemplateResult } from "astro-eslint-parser"
import type { Linter } from "eslint"
Expand Down
1 change: 1 addition & 0 deletions src/shared/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ClientScript } from "./client-script"
// @ts-expect-error -- bug?
import type { ElementNode } from "@astrojs/compiler/types"
import type { ParseTemplateResult } from "astro-eslint-parser"

Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"moduleResolution": "Node16",
"lib": ["es2020", "dom"],
"allowJs": true,
"checkJs": true,
Expand Down

0 comments on commit fc771f8

Please sign in to comment.