-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.eslintrc.cjs
39 lines (38 loc) · 1018 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
node: true,
},
parser: "@typescript-eslint/parser",
extends: ["standard", "eslint:recommended", "plugin:promise/recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:svelte/recommended", "prettier"],
plugins: ["@typescript-eslint"],
ignorePatterns: ["/node_modules/*", "/dist/*", "/build/*", "/core/*", "/website/*"],
parserOptions: {
ecmaVersion: 12,
extraFileExtensions: [".svelte"],
},
overrides: [
{
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: "@typescript-eslint/parser",
},
},
],
rules: {
indent: ["off", "tab", { SwitchCase: 1 }],
quotes: ["error", "double"],
semi: ["error", "never"],
"prefer-const": ["warn"],
"prefer-arrow-callback": ["error"],
"prefer-template": ["error"],
"func-style": ["error"],
"no-var": ["error"],
"no-unused-vars": ["warn"],
"no-use-before-define": ["off"],
"svelte/valid-compile": ["off"],
},
}