tracks lexicons and how many times they appeared on the jetstream
1import { includeIgnoreFile } from '@eslint/compat';
2import js from '@eslint/js';
3import svelte from 'eslint-plugin-svelte';
4import globals from 'globals';
5import { fileURLToPath } from 'node:url';
6import ts from 'typescript-eslint';
7import svelteConfig from './svelte.config.js';
8
9const gitignorePath = fileURLToPath(new URL('./.gitignore', import.meta.url));
10
11export default ts.config(
12 includeIgnoreFile(gitignorePath),
13 js.configs.recommended,
14 ...ts.configs.recommended,
15 ...svelte.configs.recommended,
16 {
17 languageOptions: {
18 globals: { ...globals.browser, ...globals.node }
19 },
20 rules: { // typescript-eslint strongly recommend that you do not use the no-undef lint rule on TypeScript projects.
21 // 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
22 "no-undef": 'off' }
23 },
24 {
25 files: [
26 '**/*.svelte',
27 '**/*.svelte.ts',
28 '**/*.svelte.js'
29 ],
30 languageOptions: {
31 parserOptions: {
32 projectService: true,
33 extraFileExtensions: ['.svelte'],
34 parser: ts.parser,
35 svelteConfig
36 }
37 }
38 }
39);