mirror of
https://github.com/midou36o/midou36o.github.io
synced 2026-12-03 02:43:24 +05:30
41 lines
830 B
JavaScript
41 lines
830 B
JavaScript
import js from '@eslint/js';
|
|
import { defineConfig } from 'eslint/config';
|
|
import prettier from 'eslint-config-prettier/flat';
|
|
import svelte from 'eslint-plugin-svelte';
|
|
import globals from 'globals';
|
|
import ts from 'typescript-eslint';
|
|
|
|
export default defineConfig(
|
|
{
|
|
ignores: [
|
|
'**/.DS_Store',
|
|
'**/node_modules/**',
|
|
'build/**',
|
|
'.svelte-kit/**',
|
|
'package/**',
|
|
'.env',
|
|
'.env.*',
|
|
'!.env.example'
|
|
]
|
|
},
|
|
js.configs.recommended,
|
|
ts.configs.recommended,
|
|
svelte.configs.recommended,
|
|
svelte.configs.prettier,
|
|
{
|
|
languageOptions: {
|
|
globals: { ...globals.browser, ...globals.node },
|
|
parserOptions: { extraFileExtensions: ['.svelte'] }
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
parser: ts.parser
|
|
}
|
|
}
|
|
},
|
|
prettier
|
|
);
|