-
-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
bugSomething isn't workingSomething isn't workingformattinghelp wantedExtra attention is neededExtra attention is needed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
9.4.0
What version of eslint-plugin-svelte
are you using?
5.1.3
What did you do?
Configuration
import tsParser from "@typescript-eslint/parser";
import "eslint-plugin-only-warn";
import eslintPluginSvelte from "eslint-plugin-svelte";
import globals from "globals";
import svelteParser from "svelte-eslint-parser";
export default [
{
languageOptions: {
globals: globals.browser,
parser: tsParser,
},
},
{
files: ["**/*.svelte"],
languageOptions: {
ecmaVersion: 2022,
parser: svelteParser,
parserOptions: {
extraFileExtensions: [".svelte"],
parser: tsParser,
},
sourceType: "module",
},
},
...eslintPluginSvelte.configs["flat/recommended"],
{
files: ["**/*.svelte"],
rules: {
indent: "off",
"svelte/indent": [
"error",
{
alignAttributesVertically: false,
ignoredNodes: [],
indent: 2,
switchCase: 1,
},
],
},
},
{
ignores: [
"postcss.config.cjs",
"tailwind.config.js",
"app/frontend/rails/",
"node_modules/",
"build/",
".svelte-kit/",
"package/",
"public/rcf-assets-dev/",
"public/rcf-assets/",
"tmp/",
"coverage/",
],
},
];
<script context="module" lang="ts">
type GenericTypes = null | number | string | undefined;
type GenericKeyType<Opt> = keyof Opt | never | null | undefined;
type ValueType<Opt, VKey extends GenericKeyType<Opt>, VObj extends boolean> = Opt extends GenericTypes
? Opt
: VKey extends keyof Opt
? VObj extends true
? Opt
: Opt[VKey]
: never;
const dragDrop = (e: any) => {
e.preventDefault();
e.stopPropagation();
/*
* Warning: This event is called by the element the item was drop on top of.
* Since we need to update the position of the dragged item (the source), we must use a
* global context and the onEnd event.
*/
};
</script>
What did you expect to happen?
Nothing the code is perfectly valid.
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
Additional comments
No response
DollarAkshay and TetsuzaemonIba
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingformattinghelp wantedExtra attention is neededExtra attention is needed