This repository has been archived on 2021-11-08. You can view files and clone it, but cannot push or open issues or pull requests.
svelte-sharg/.eslintrc.cjs
2021-09-26 21:03:56 +02:00

27 lines
712 B
JavaScript

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",
},
};