Merge pull request #655 from 3flex/eslint-typechecked

Enable linting TS with type checking
This commit is contained in:
Niels van Velzen 2024-10-29 08:58:37 +01:00 committed by GitHub
commit 9c32c6f189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,8 @@ export default [
},
{
files: ['**/*.json'],
...json.configs['recommended']
...json.configs['recommended'],
...tseslint.configs.disableTypeChecked
},
{
files: ['**/*.ts'],
@ -38,12 +39,20 @@ export default [
parser: tseslint.parser
}
},
{
files: ['eslint.config.mjs'],
...tseslint.configs.disableTypeChecked
},
{
files: ['**/*.ts', '**/*.js'],
languageOptions: {
globals: {
...globals.browser,
...globals.es2015
},
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname
}
},
rules: {