module.exports = {
root: true,
parser: "@typescript-eslint/parser",
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
plugins: ["svelte3", "@typescript-eslint", "simple-import-sort"],
overrides: [
{ files: ["*.svelte"], processor: "svelte3/svelte3" },
{ files: ["*.[cm]js"], env: { node: true } },
],
settings: {
"svelte3/typescript": require("typescript"),
"svelte3/ignore-styles": ({ lang }) => lang === "scss",
},
parserOptions: {
sourceType: "module",
env: {
browser: true,
worker: true,
es2021: true,
node: false,
rules: {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
};