1 | module.exports = {
|
2 | env: {
|
3 | browser: true,
|
4 | es6: true,
|
5 | node: true,
|
6 | },
|
7 | extends: ["plugin:@typescript-eslint/recommended", "plugin:jest/recommended", "prettier"],
|
8 | parser: "@typescript-eslint/parser",
|
9 | parserOptions: {
|
10 | project: "tsconfig.spec.json",
|
11 | sourceType: "module",
|
12 | },
|
13 | plugins: ["eslint-plugin-jest", "eslint-plugin-jsdoc", "@typescript-eslint"],
|
14 | rules: {
|
15 | "@typescript-eslint/naming-convention": "error",
|
16 | "@typescript-eslint/no-empty-function": "error",
|
17 | "@typescript-eslint/no-unused-expressions": "error",
|
18 |
|
19 |
|
20 | "@typescript-eslint/no-require-imports": "off",
|
21 | "@typescript-eslint/no-var-requires": "off",
|
22 |
|
23 | curly: "error",
|
24 | "jsdoc/check-alignment": "error",
|
25 | "jsdoc/check-indentation": "off",
|
26 | "jsdoc/newline-after-description": "off",
|
27 | "no-empty": "error",
|
28 |
|
29 | "no-empty-function": "off",
|
30 | "no-redeclare": "error",
|
31 | "no-var": "error",
|
32 |
|
33 | "prefer-const": "off",
|
34 |
|
35 |
|
36 | "@typescript-eslint/no-inferrable-types": "off",
|
37 |
|
38 | "no-unused-expressions": "off",
|
39 | "@typescript-eslint/no-unused-expressions": "error",
|
40 |
|
41 | "no-unused-vars": "off",
|
42 | "@typescript-eslint/no-unused-vars": [
|
43 | "warn",
|
44 | {
|
45 |
|
46 | args: "none",
|
47 | argsIgnorePattern: "^_",
|
48 | varsIgnorePattern: "^_",
|
49 | caughtErrorsIgnorePattern: "^_",
|
50 | },
|
51 | ],
|
52 |
|
53 | "jest/no-disabled-tests": "warn",
|
54 | "jest/no-focused-tests": "error",
|
55 | "jest/no-identical-title": "error",
|
56 | "jest/prefer-to-have-length": "off",
|
57 | "jest/valid-expect": "error",
|
58 | "@typescript-eslint/no-non-null-assertion": "off",
|
59 |
|
60 | "@typescript-eslint/naming-convention": "off",
|
61 |
|
62 | "@typescript-eslint/no-explicit-any": "off",
|
63 |
|
64 | "@typescript-eslint/no-empty-interface": "off",
|
65 | },
|
66 | }
|