Monorepo for Tangled tangled.org
2

Configure Feed

Select the types of activity you want to include in your feed.

core / web / eslint.config.js
1.1 kB 41 lines
1import storybook from "eslint-plugin-storybook"; 2import prettier from "eslint-config-prettier"; 3import path from "node:path"; 4import js from "@eslint/js"; 5import svelte from "eslint-plugin-svelte"; 6import { defineConfig, includeIgnoreFile } from "eslint/config"; 7import globals from "globals"; 8import ts from "typescript-eslint"; 9 10const gitignorePath = path.resolve(import.meta.dirname, ".gitignore"); 11 12export default defineConfig( 13 { ignores: ["src/lib/api/lexicons/"] }, 14 includeIgnoreFile(gitignorePath), 15 js.configs.recommended, 16 ts.configs.recommended, 17 svelte.configs.recommended, 18 storybook.configs["flat/recommended"], 19 prettier, 20 svelte.configs.prettier, 21 { 22 languageOptions: { globals: { ...globals.browser, ...globals.node } }, 23 rules: { 24 // typescript owns undefined-name checks. 25 "no-undef": "off" 26 } 27 }, 28 { 29 files: ["**/*.svelte", "**/*.svelte.ts", "**/*.svelte.js"], 30 languageOptions: { 31 parserOptions: { 32 projectService: true, 33 extraFileExtensions: [".svelte"], 34 parser: ts.parser 35 } 36 } 37 }, 38 { 39 rules: {} 40 } 41);