mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-31 02:46:07 +08:00
update: ts
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from 'eslint/config'
|
||||
// @ts-ignore
|
||||
import preact from 'eslint-config-preact'
|
||||
import defaultConfig from '../../eslint.config.ts'
|
||||
|
||||
export default defineConfig([
|
||||
defaultConfig,
|
||||
{
|
||||
files: ['**/*.{js,jsx,ts,tsx}'],
|
||||
plugins: { ...preact.plugins },
|
||||
rules: { ...preact.rules },
|
||||
settings: { ...preact.settings },
|
||||
languageOptions: {
|
||||
sourceType: 'module',
|
||||
ecmaVersion: 'latest',
|
||||
parserOptions: {
|
||||
...preact.parserOptions,
|
||||
ecmaFeatures: {
|
||||
jsx: true,
|
||||
...preact.parserOptions?.ecmaFeatures,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
])
|
||||
Reference in New Issue
Block a user