your personal website on atproto - mirror blento.app
at button 61 lines 1.2 kB view raw
1import prettier from 'eslint-config-prettier'; 2import js from '@eslint/js'; 3import { includeIgnoreFile } from '@eslint/compat'; 4import svelte from 'eslint-plugin-svelte'; 5import globals from 'globals'; 6import { fileURLToPath } from 'node:url'; 7import ts from 'typescript-eslint'; 8const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url)); 9 10export default [ 11 includeIgnoreFile(gitignorePath), 12 js.configs.recommended, 13 ...ts.configs.recommended, 14 ...svelte.configs['flat/recommended'], 15 prettier, 16 ...svelte.configs['flat/prettier'], 17 { 18 languageOptions: { 19 globals: { 20 ...globals.browser, 21 ...globals.node 22 } 23 } 24 }, 25 { 26 files: ['**/*.svelte'], 27 28 languageOptions: { 29 parserOptions: { 30 parser: ts.parser 31 } 32 } 33 }, 34 { 35 files: ['**/*.svelte.ts'], 36 37 languageOptions: { 38 parser: ts.parser 39 } 40 }, 41 { 42 rules: { 43 'svelte/no-navigation-without-resolve': 'off', 44 'svelte/no-at-html-tags': 'off', 45 '@typescript-eslint/no-explicit-any': 'off', 46 'no-unused-vars': 'off', 47 '@typescript-eslint/no-unused-vars': [ 48 'warn', 49 { 50 vars: 'all', 51 varsIgnorePattern: '.*', 52 args: 'none', 53 caughtErrors: 'none', 54 enableAutofixRemoval: { 55 imports: true 56 } 57 } 58 ] 59 } 60 } 61];