feat(eslint): add TypeScript support and update test file patterns

This commit is contained in:
Siddharth Gelera
2025-09-25 18:21:15 +05:30
parent 0ccb6dae8b
commit 79837a6715

View File

@@ -16,9 +16,16 @@ module.exports = runESMImports().then(() => defineConfig([
'diff': fixupPluginRules(eslintPluginDiff),
'@stylistic': stylistic,
},
languageOptions: {
parser: require('@typescript-eslint/parser'),
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
files: [
'./eslint.config.js',
'tests/**/*.spec.{ts,js}',
'tests/**/*.{ts,js}',
'packages/bruno-app/**/*.{js,jsx,ts}',
'packages/bruno-app/src/test-utils/mocks/codemirror.js',
'packages/bruno-cli/**/*.js',