-
Notifications
You must be signed in to change notification settings - Fork 24
/
eslint.config.mjs
49 lines (48 loc) · 1.23 KB
/
eslint.config.mjs
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
40
41
42
43
44
45
46
47
48
49
import unjs from "eslint-config-unjs";
// https://github.com/unjs/eslint-config
export default unjs(
{
ignores: ["runtime/**"],
rules: {
"@typescript-eslint/no-unused-vars": 0,
"unicorn/no-null": 0,
"unicorn/prefer-math-trunc": 0,
"unicorn/prefer-code-point": 0,
"unicorn/text-encoding-identifier-case": 0,
"prefer-rest-params": 0,
"prefer-spread": 0,
"unicorn/prefer-event-target": 0,
"unicorn/prefer-ternary": 0,
"unicorn/number-literal-case": 0,
"generator-star-spacing": 0,
"unicorn/no-nested-ternary": 0,
"require-await": 0,
"unicorn/switch-case-braces": 0,
"unicorn/prefer-string-replace-all": 0,
"no-empty": 0,
"no-func-assign": 0,
"unicorn/filename-case": 0,
"@typescript-eslint/no-unused-expressions": 0,
"unicorn/prefer-global-this": 0,
"unicorn/prefer-math-min-max": 0,
"no-restricted-imports": [
"error",
{
patterns: [
{
group: ["src/*"],
message: "Use relative imports instead.",
},
],
},
],
},
},
{
languageOptions: {
globals: {
Deno: "readonly",
},
},
},
);