From 3486d0d6c029df46d99e46f9ffbd6e426086c645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=BE=E6=98=8E=E5=81=A5?= Date: Wed, 30 Nov 2022 21:16:09 +0800 Subject: [PATCH] fix(ts): fix parerOptions (#134) --- packages/typescript/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/typescript/index.js b/packages/typescript/index.js index b14c360..d9461aa 100644 --- a/packages/typescript/index.js +++ b/packages/typescript/index.js @@ -19,11 +19,11 @@ module.exports = { : [{ parserOptions: { tsconfigRootDir: process.cwd(), - project: ['tsconfig.json'], + project: ['tsconfig.eslint.json'], }, parser: '@typescript-eslint/parser', excludedFiles: ['**/*.md/*.*'], - files: ['*.ts', '*.tsx'], + files: ['*.ts', '*.tsx', '*.mts', '*.cts'], rules: { 'no-throw-literal': 'off', '@typescript-eslint/no-throw-literal': 'error',