fix(ts): fix parerOptions (#134)

This commit is contained in:
曾明健 2022-11-30 21:16:09 +08:00 committed by GitHub
parent 40817389a1
commit 3486d0d6c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',