-
-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
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?
8.19.0
What version of eslint-plugin-svelte
are you using?
2.2.0
What did you do?
You need a Svelte file with unordered imports in its script component, then execute eslint --fix
.
What did you expect to happen?
Would apply the simple-import-sort rules, and sort the imports.
What actually happened?
It reported no errors
Link to Minimal Reproducible Example
// .eslintrc.js
module.exports = {
extends: "eslint:recommended",
parser: "@typescript-eslint/parser",
parserOptions: {
extraFileExtensions: [".svelte"],
},
plugins: [
"svelte",
"simple-import-sort",
"@typescript-eslint",
],
rules: {
"no-unused-vars": "off",
"no-undef": "off",
"no-redeclare": "off",
"no-inner-declarations": "off",
"no-self-assign": "off",
},
overrides: [
{
files: "**/*.svelte",
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
rules: {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
},
},
],
env: { browser: true },
ignorePatterns: ["backend_proto.d.ts", "*.svelte.d.ts"],
globals: {
globalThis: false,
NodeListOf: false,
},
};
Additional comments
No response
Metadata
Metadata
Assignees
Labels
No labels