From 7b7c455d5b5b520f18e0a82cdbcfa29a3e728acd Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 6 Feb 2026 14:43:55 -0500 Subject: [PATCH] unused --- eslint.config.js | 79 ------------------------------------------------ 1 file changed, 79 deletions(-) delete mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js deleted file mode 100644 index 5851a462b4..0000000000 --- a/eslint.config.js +++ /dev/null @@ -1,79 +0,0 @@ -import svelte_config from '@sveltejs/eslint-config'; -import lube from 'eslint-plugin-lube'; -import no_compiler_imports from './oxlint/no-compiler-imports.js'; - -/** @type {import('eslint').Linter.FlatConfig[]} */ -export default [ - ...svelte_config, - { - languageOptions: { - parserOptions: { - projectService: true, - tsconfigRootDir: import.meta.dirname - } - }, - plugins: { - lube, - custom: { rules: { no_compiler_imports } } - }, - rules: { - '@typescript-eslint/await-thenable': 'error', - '@typescript-eslint/require-await': 'error', - 'no-console': 'error', - 'lube/svelte-naming-convention': ['error', { fixSameNames: true }], - // eslint isn't that well-versed with JSDoc to know that `foo: /** @type{..} */ (foo)` isn't a violation of this rule, so turn it off - 'object-shorthand': 'off', - // eslint is being a dummy here too - '@typescript-eslint/prefer-promise-reject-errors': 'off', - 'no-var': 'off', - - // TODO: enable these rules and run `pnpm lint:fix` - // skipping that for now so as to avoid impacting real work - '@stylistic/quotes': 'off', - '@typescript-eslint/no-unused-vars': 'off', - 'prefer-const': 'off' - } - }, - { - // If you get an error along the lines of "@typescript-eslint/await-thenable needs a project service configured", then that likely means - // that eslint rules that need to be type-aware run through a Svelte file which seems unsupported at the moment. In that case, ensure that - // these are excluded to run on Svelte files. - files: ['**/*.svelte'], - rules: { - '@typescript-eslint/await-thenable': 'off', - '@typescript-eslint/prefer-promise-reject-errors': 'off', - '@typescript-eslint/require-await': 'off' - } - }, - { - files: ['packages/svelte/src/**/*'], - ignores: ['packages/svelte/src/compiler/**/*'], - rules: { - 'custom/no_compiler_imports': 'error', - 'svelte/no-svelte-internal': 'off' - } - }, - { - ignores: [ - '**/*.d.ts', - '**/tests', - 'packages/svelte/scripts/process-messages/templates/*.js', - 'packages/svelte/scripts/_bundle.js', - 'packages/svelte/src/compiler/errors.js', - 'packages/svelte/src/internal/client/errors.js', - 'packages/svelte/src/internal/client/warnings.js', - 'packages/svelte/src/internal/shared/warnings.js', - 'packages/svelte/src/internal/server/warnings.js', - 'packages/svelte/compiler/index.js', - // stuff we don't want to lint - 'benchmarking/**', - 'coverage/**', - 'playgrounds/sandbox/**', - // exclude top level config files - '*.config.js', - // documentation can contain invalid examples - 'documentation', - 'tmp/**' - ] - } -];