bluesky client without react native baggage written in sveltekit
1// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
2import storybook from 'eslint-plugin-storybook';
3
4import prettier from 'eslint-config-prettier';
5import path from 'node:path';
6import { includeIgnoreFile } from '@eslint/compat';
7import js from '@eslint/js';
8import svelte from 'eslint-plugin-svelte';
9import { defineConfig } from 'eslint/config';
10import globals from 'globals';
11import ts from 'typescript-eslint';
12import svelteConfig from './svelte.config.js';
13
14const gitignorePath = path.resolve(import.meta.dirname, '.gitignore');
15
16export default defineConfig(
17 includeIgnoreFile(gitignorePath),
18 js.configs.recommended,
19 ...ts.configs.recommended,
20 ...svelte.configs.recommended,
21 prettier,
22 ...svelte.configs.prettier,
23 {
24 languageOptions: { globals: { ...globals.browser, ...globals.node } },
25 rules: {
26 // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
27 // see: https://typescript-eslint.io/troubleshooting/faqs/eslint/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
28 'no-undef': 'off'
29 }
30 },
31 {
32 files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
33 languageOptions: {
34 parserOptions: {
35 projectService: true,
36 extraFileExtensions: ['.svelte'],
37 parser: ts.parser,
38 svelteConfig
39 }
40 }
41 }
42);