mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
41 lines
685 B
JavaScript
41 lines
685 B
JavaScript
import prettier from 'eslint-config-prettier';
|
|
import js from '@eslint/js';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import ts from 'typescript-eslint';
|
|
|
|
export default ts.config(
|
|
js.configs.recommended,
|
|
...ts.configs.recommended,
|
|
...svelte.configs['flat/recommended'],
|
|
prettier,
|
|
...svelte.configs['flat/prettier'],
|
|
{
|
|
files: ['**/*.svelte'],
|
|
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: ts.parser
|
|
}
|
|
}
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'no-undef': 'off'
|
|
}
|
|
},
|
|
{
|
|
ignores: [
|
|
'.DS_Store',
|
|
'node_modules',
|
|
'dist',
|
|
'release',
|
|
'.idea',
|
|
'.env',
|
|
'.env.*',
|
|
'!.env.example',
|
|
'package-lock.json'
|
|
]
|
|
}
|
|
);
|