mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
24 lines
587 B
TypeScript
24 lines
587 B
TypeScript
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 },
|
|
},
|
|
])
|