diff --git a/.changeset/eighty-books-study.md b/.changeset/eighty-books-study.md new file mode 100644 index 00000000..3bff1267 --- /dev/null +++ b/.changeset/eighty-books-study.md @@ -0,0 +1,5 @@ +--- +"svelte-eslint-parser": minor +--- + +breaking: drop @typescript-eslint v4 support diff --git a/.github/workflows/NodeCI.yml b/.github/workflows/NodeCI.yml index 11c0e80a..770ee140 100644 --- a/.github/workflows/NodeCI.yml +++ b/.github/workflows/NodeCI.yml @@ -103,26 +103,6 @@ jobs: run: pnpm install - name: Test run: pnpm run test - test-for-ts-eslint-v4: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [14.x] - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - - name: Install @typescript-eslint v4 - run: |+ - pnpm install -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 eslint@7 svelte@3 - rm -rf node_modules - - name: Install Packages - run: pnpm install - - name: Test - run: pnpm run test test-for-eslint-v7: runs-on: ubuntu-latest strategy: diff --git a/src/context/script-let.ts b/src/context/script-let.ts index 7d594dc5..8ae1c97a 100644 --- a/src/context/script-let.ts +++ b/src/context/script-let.ts @@ -352,7 +352,7 @@ export class ScriptLetContext { const callArrayFrom = (call.callee as ESTree.MemberExpression) .object as ESTree.CallExpression; const expr = callArrayFrom.arguments[0] as ESTree.Expression; - const ctx = fn.params[0]!; + const ctx = fn.params[0]; const idx = (fn.params[1] ?? null) as ESTree.Identifier | null; const scope = result.getScope(fn.body);