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

28 lines
712 B
JavaScript
Raw Normal View History

2021-09-26 16:04:20 +02:00
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
2021-09-26 21:02:02 +02:00
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 } },
2021-09-26 16:04:20 +02:00
],
settings: {
2021-09-26 21:02:02 +02:00
"svelte3/typescript": require("typescript"),
"svelte3/ignore-styles": ({ lang }) => lang === "scss",
2021-09-26 16:04:20 +02:00
},
parserOptions: {
sourceType: "module",
},
env: {
browser: true,
2021-09-26 21:02:02 +02:00
worker: true,
es2021: true,
node: false,
},
rules: {
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
2021-09-26 16:04:20 +02:00
},
};