mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
update: ts
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { defineConfig } from 'eslint/config'
|
||||
import parser from '@typescript-eslint/parser'
|
||||
import plugin from '@typescript-eslint/eslint-plugin'
|
||||
|
||||
export default defineConfig([
|
||||
{
|
||||
ignores: ['dist/**', 'node_modules/**'],
|
||||
files: ['**/*.{js,jsx,ts,tsx}'],
|
||||
},
|
||||
{
|
||||
files: ['**/*.{ts,tsx}'],
|
||||
languageOptions: {
|
||||
parser,
|
||||
parserOptions: {
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
// @ts-ignore
|
||||
plugins: { '@typescript-eslint': plugin },
|
||||
},
|
||||
])
|
||||
Reference in New Issue
Block a user