mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-12-15 00:22:08 +01:00
32 lines
759 B
JavaScript
32 lines
759 B
JavaScript
import { fileURLToPath } from 'node:url';
|
|
import { includeIgnoreFile } from '@eslint/compat';
|
|
import js from '@eslint/js';
|
|
import prettier from 'eslint-config-prettier';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import { defineConfig } from 'eslint/config';
|
|
import ts from 'typescript-eslint';
|
|
|
|
const gitignorePath = fileURLToPath(new URL('.gitignore', import.meta.url));
|
|
|
|
export default defineConfig(
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
...svelte.configs[('flat/recommended', 'flat/prettier')],
|
|
prettier,
|
|
includeIgnoreFile(gitignorePath),
|
|
{
|
|
files: ['**/*.svelte'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: ts.parser
|
|
}
|
|
}
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'no-undef': 'off'
|
|
}
|
|
}
|
|
);
|