23 lines
590 B
JavaScript
23 lines
590 B
JavaScript
module.exports = {
|
|
root: true,
|
|
parser: "@typescript-eslint/parser",
|
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
plugins: ["svelte3", "@typescript-eslint"],
|
|
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,
|
|
},
|
|
};
|