Use eslint

This commit is contained in:
2026-03-09 22:16:01 +01:00
parent 344c89a8d0
commit 91299af3eb
6 changed files with 1156 additions and 20 deletions

19
eslint.config.js Normal file
View File

@@ -0,0 +1,19 @@
import js from '@eslint/js'
import globals from 'globals'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])