-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.cjs
40 lines (39 loc) · 1.2 KB
/
.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
40
module.exports = {
extends: [
"unobtrusive",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"plugin:@typescript-eslint/recommended",
],
env: {
node: true,
"jest/globals": true,
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "prettier", "jest"],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: "module", // Allows for the use of imports
},
rules: {
"no-console": ["error", { allow: ["warn", "error"] }],
"prettier/prettier": "error",
camelcase: "off",
"jest/no-disabled-tests": "off",
"@typescript-eslint/camelcase": ["error", { properties: "never" }],
"@typescript-eslint/no-unused-vars": [
"warn",
{ args: "after-used", varsIgnorePattern: "^_" },
],
"@typescript-eslint/no-unused-vars": [
"warn",
{ args: "after-used", varsIgnorePattern: "^_", argsIgnorePattern: "^_" },
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/no-var-requires": "off",
},
};