From 6f904e742d97901ccb03579951f266dd0891bcef Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Wed, 16 Jul 2025 11:28:26 -0700 Subject: [PATCH] feat: add two type checked rules used in Svelte and SvelteKit --- .changeset/slow-seals-juggle.md | 5 +++++ index.js | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/slow-seals-juggle.md diff --git a/.changeset/slow-seals-juggle.md b/.changeset/slow-seals-juggle.md new file mode 100644 index 0000000..00184bf --- /dev/null +++ b/.changeset/slow-seals-juggle.md @@ -0,0 +1,5 @@ +--- +"@sveltejs/eslint-config": minor +--- + +feat: add two type checked rules used in Svelte and SvelteKit diff --git a/index.js b/index.js index 27db513..74e4bd1 100644 --- a/index.js +++ b/index.js @@ -37,6 +37,7 @@ export default [ '@stylistic/quote-props': ['error', 'as-needed'], '@stylistic/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }], '@typescript-eslint/array-type': ['error', { default: 'array-simple' }], + '@typescript-eslint/await-thenable': 'error', '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-types': 'off', '@typescript-eslint/camelcase': 'off', @@ -53,6 +54,7 @@ export default [ '@typescript-eslint/no-unused-vars': ['error', { args: 'after-used', argsIgnorePattern: '^_' }], '@typescript-eslint/no-use-before-define': 'off', '@typescript-eslint/prefer-interface': 'off', + '@typescript-eslint/require-await': 'error', 'no-constant-condition': ['error', { checkLoops: false }], 'no-duplicate-imports': 'error', 'no-empty': ['error', { allowEmptyCatch: true }],