Something went wrong. Try again.
your personal website on atproto - mirror blento.app
Something went wrong. Try again.
blento eslint.config.js
1.2 kB · 61 lines
JavaScript
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162import prettier from 'eslint-config-prettier';import js from '@eslint/js';import { includeIgnoreFile } from '@eslint/compat';import svelte from 'eslint-plugin-svelte';import globals from 'globals';import { fileURLToPath } from 'node:url';import ts from 'typescript-eslint';const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
export default [ includeIgnoreFile(gitignorePath), js.configs.recommended, ...ts.configs.recommended, ...svelte.configs['flat/recommended'], prettier, ...svelte.configs['flat/prettier'], { languageOptions: { globals: { ...globals.browser, ...globals.node } } }, { files: ['**/*.svelte'],
languageOptions: { parserOptions: { parser: ts.parser } } }, { files: ['**/*.svelte.ts'],
languageOptions: { parser: ts.parser } }, { rules: { 'svelte/no-navigation-without-resolve': 'off', 'svelte/no-at-html-tags': 'off', '@typescript-eslint/no-explicit-any': 'off', 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': [ 'warn', { vars: 'all', varsIgnorePattern: '.*', args: 'none', caughtErrors: 'none', enableAutofixRemoval: { imports: true } } ] } }];