Update project tooling

This commit is contained in:
Andras Schmelczer 2026-05-24 10:57:14 +01:00
commit 3c21291d72
14 changed files with 1472 additions and 201 deletions

30
eslint.config.js Normal file
View file

@ -0,0 +1,30 @@
import js from '@eslint/js';
import prettierConfig from 'eslint-config-prettier';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default tseslint.config(
{
ignores: ['node_modules/**', 'dist/**', 'public/**'],
},
js.configs.recommended,
...tseslint.configs.recommended,
prettierConfig,
{
files: ['**/*.ts'],
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: {
...globals.browser,
},
},
rules: {
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/ban-ts-comment': 'error',
'prefer-const': 'error',
},
}
);