forked from captbaritone/grats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
27 lines (27 loc) · 889 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
// eslint-disable-next-line no-undef
module.exports = {
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/ban-ts-comment": "off", // I know what I'm doing (I hope)
"@typescript-eslint/no-explicit-any": "off", // I know what I'm doing (I hope)
"@typescript-eslint/no-var-requires": "off", // Some things are not using ESModules yet
"@typescript-eslint/no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"no-constant-condition": ["error", { checkLoops: false }],
"no-constant-binary-expression": "error",
},
root: true,
env: {
browser: true,
node: true,
},
};