Skip to content

Commit

Permalink
Fix the basic-typescript-eslint9 tests
Browse files Browse the repository at this point in the history
Change-Id: Icf62c861dc3f95377e10a4474da188214dd01ce9
  • Loading branch information
neuracr committed Jul 19, 2024
1 parent c0bf583 commit 3aeb2c4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/basic_typescript_eslint9/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
import safetyWeb from 'eslint-plugin-safety-web';

// https://typescript-eslint.io/getting-started/typed-linting/
export default tseslint.config(
eslint.configs.recommended,
// ...tseslint.configs.recommendedTypeChecked, // TODO: for some reason enabling this breaks.
{
languageOptions: {
parser: tseslint.parser,
Expand All @@ -14,8 +11,7 @@ export default tseslint.config(
tsconfigRootDir: import.meta.dirname,
},
},
files: ["**/*.ts", "**/*.js"],
ignores: ["**/*.config.js"],
files: ["src/**/*.ts"],
plugins: {
"safety-web": safetyWeb
},
Expand All @@ -25,7 +21,7 @@ export default tseslint.config(
},
// Disable undef in TS https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
{
files: ['**/*.{ts,tsx,mts,cts}'],
files: ['src/**/*.{ts,tsx,mts,cts}'],
rules: {
'no-undef': 'off',
},
Expand Down

0 comments on commit 3aeb2c4

Please sign in to comment.