fix: eslint.config for testing (#4704)

This commit is contained in:
Nico Domino 2024-08-16 15:30:53 +02:00 committed by GitHub
parent cd84afde3e
commit 88e791c307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 9 deletions

View File

@ -1,6 +0,0 @@
describe('GitButler', () => {
it('should have the root element', async () => {
const element = await $('body.text-base');
await expect(element).toExist();
});
});

View File

@ -1,5 +1,5 @@
import { spawnSync } from 'node:child_process';
import { browser } from '@wdio/globals';
import { spawnSync } from 'node:child_process';
const DEFAULT_TIMEOUT = 5_000;

View File

@ -16,6 +16,20 @@ export default tsEslint.config(
...eslintPluginSvelte.configs['flat/recommended'],
eslintConfigPrettier,
...eslintPluginSvelte.configs['flat/prettier'],
{
files: ['apps/desktop/e2e/**'],
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
...globals.node,
...globals.browser,
...globals.mocha,
...globals.chai,
$: false
}
}
},
{
files: ['**/*.svelte'],
languageOptions: {
@ -50,7 +64,6 @@ export default tsEslint.config(
'**/dist',
'.svelte-kit',
'**/package',
'**/e2e',
'**/.env',
'**/.env.*',
'!**/.env.example',
@ -61,7 +74,6 @@ export default tsEslint.config(
'.vscode',
'src-tauri',
'**/eslint.config.js',
'**/eslint.config.mjs',
'**/svelte.config.js',
'**/.pnpm-store',
'**/vite.config.ts.timestamp-*',