Switch to ESLint flat configs

This commit is contained in:
2024-03-20 19:35:31 +01:00
parent 450e34d42c
commit d9cd098b61
5 changed files with 25 additions and 21 deletions

15
eslint.config.js Normal file
View File

@@ -0,0 +1,15 @@
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from "globals";
export default tseslint.config(
{
...eslint.configs.recommended,
languageOptions: {
globals: globals.browser
}
},
...tseslint.configs.recommended,
);