From 3aeb2c42687d32d00922dc8a68efc56b3fe4ac5f Mon Sep 17 00:00:00 2001 From: Guillaume Weghsteen Date: Thu, 11 Jul 2024 16:31:52 +0000 Subject: [PATCH] Fix the basic-typescript-eslint9 tests Change-Id: Icf62c861dc3f95377e10a4474da188214dd01ce9 --- tests/basic_typescript_eslint9/eslint.config.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/basic_typescript_eslint9/eslint.config.js b/tests/basic_typescript_eslint9/eslint.config.js index 2cdd980..7aee10c 100644 --- a/tests/basic_typescript_eslint9/eslint.config.js +++ b/tests/basic_typescript_eslint9/eslint.config.js @@ -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, @@ -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 }, @@ -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', },