forked from DesModder/DesModder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (66 loc) · 1.78 KB
/
.eslintrc.js
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// eslint-disable-next-line @typescript-eslint/no-var-requires
const rulesDirPlugin = require("eslint-plugin-rulesdir");
rulesDirPlugin.RULES_DIR = "scripts/eslint-rules";
module.exports = {
env: {
browser: true,
es2021: true,
},
plugins: ["rulesdir"],
// "love" is a new name for "standard-with-typescript"
extends: ["love", "prettier"],
overrides: [],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "tsconfig-eslint.json",
},
ignorePatterns: [
"coverage",
"node_modules",
"dist",
"dist-ts",
"hooks",
"LICENSE*",
// Opt-out instead of opt-in to avoid forgetting to include some js file.
"*.md",
"*.json",
"*.replacements",
"*.grammar",
"*.woff",
"*.css",
"*.less",
"*.sh",
"*.png",
"*.ftl",
"*.html",
"*.woff",
"*.svg",
"*.zip",
".eslintrc.js",
],
parser: "@typescript-eslint/parser",
rules: {
"rulesdir/no-format-in-ts": "error",
"rulesdir/no-expect-promise": "error",
"rulesdir/no-reach-past-exports": "error",
"rulesdir/no-external-imports": "error",
"rulesdir/no-timeouts-in-intellisense": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/no-confusing-void-expression": [
"error",
{
ignoreArrowShorthand: true,
},
],
"@typescript-eslint/consistent-type-imports": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "off",
"no-console": "error",
"@typescript-eslint/no-unsafe-argument": "off",
},
};