|
29 | 29 | ],
|
30 | 30 | "sourceType": "module"
|
31 | 31 | },
|
32 |
| - "ignorePatterns": ["/build/", "/coverage/", "/lib/", "/**/*.cjs", "/**/*.js"], |
| 32 | + "ignorePatterns": [ |
| 33 | + "/build/", |
| 34 | + "/coverage/", |
| 35 | + "/lib/", |
| 36 | + "/**/*.cjs", |
| 37 | + "/**/*.js", |
| 38 | + "/src/utils/tsutils.ts" |
| 39 | + ], |
33 | 40 | "rules": {
|
34 |
| - "@typescript-eslint/explicit-module-boundary-types": "off", |
35 |
| - "@typescript-eslint/no-unnecessary-condition": "off", |
36 |
| - "@typescript-eslint/no-unsafe-argument": "off", |
37 |
| - "@typescript-eslint/no-unsafe-assignment": "off", |
38 |
| - "@typescript-eslint/no-unsafe-call": "off", |
39 |
| - "@typescript-eslint/no-unsafe-member-access": "off", |
40 |
| - "@typescript-eslint/no-unsafe-return": "off", |
41 |
| - "@typescript-eslint/prefer-readonly-parameter-types": "warn", |
42 |
| - "import/no-relative-parent-imports": "error", |
43 |
| - "functional/prefer-readonly-type": "off", |
44 |
| - "node/no-unsupported-features/es-builtins": "off", |
45 |
| - "node/no-unsupported-features/es-syntax": "off", |
46 |
| - "promise/prefer-await-to-callbacks": "off", |
47 |
| - // only available for node >= 16.8 |
48 |
| - "unicorn/prefer-at": "off", |
49 |
| - // enable once supported in all our supported node versions. |
50 |
| - "unicorn/prefer-node-protocol": "off", |
51 |
| - // only available for node >= 15.4 |
52 |
| - "unicorn/prefer-string-replace-all": "off", |
53 |
| - // only available for node >= 14.8 |
54 |
| - "unicorn/prefer-top-level-await": "off" |
| 41 | + "functional/prefer-immutable-types": "off", |
| 42 | + "import/no-relative-parent-imports": "error" |
55 | 43 | },
|
56 | 44 | "overrides": [
|
57 | 45 | // Top level files.
|
|
64 | 52 | "files": ["./src/**/*"],
|
65 | 53 | "extends": ["plugin:eslint-plugin/recommended"],
|
66 | 54 | "rules": {
|
67 |
| - "functional/no-expression-statement": "error" |
| 55 | + "functional/no-expression-statements": "error" |
68 | 56 | }
|
69 | 57 | },
|
70 | 58 | {
|
|
75 | 63 | }
|
76 | 64 | },
|
77 | 65 | {
|
78 |
| - "files": ["./src/util/typeguard.ts", "./tests/**/*", "./cz-adapter/**/*"], |
| 66 | + "files": ["./src/utils/type-guards.ts", "./src/utils/node-types.ts"], |
79 | 67 | "rules": {
|
80 | 68 | "jsdoc/require-jsdoc": "off"
|
81 | 69 | }
|
82 | 70 | },
|
| 71 | + { |
| 72 | + "files": ["./tests/**/*", "./cz-adapter/**/*"], |
| 73 | + "rules": { |
| 74 | + "@typescript-eslint/no-unsafe-argument": "off", |
| 75 | + "@typescript-eslint/no-unsafe-assignment": "off", |
| 76 | + "@typescript-eslint/no-unsafe-call": "off", |
| 77 | + "@typescript-eslint/no-unsafe-member-access": "off", |
| 78 | + "@typescript-eslint/no-unsafe-return": "off", |
| 79 | + "jsdoc/require-jsdoc": "off" |
| 80 | + } |
| 81 | + }, |
| 82 | + { |
| 83 | + "files": ["./typings/**/*"], |
| 84 | + "extends": ["plugin:functional/off"], |
| 85 | + "rules": { |
| 86 | + "@typescript-eslint/no-unused-vars": "off", |
| 87 | + "@typescript-eslint/no-explicit-any": "off" |
| 88 | + } |
| 89 | + }, |
83 | 90 | // FIXME: This override is defined in the upsteam; it shouldn't need to be redefined here. Why?
|
84 | 91 | {
|
85 | 92 | "files": ["./**/*.md/**"],
|
86 | 93 | "parserOptions": {
|
87 | 94 | "project": null
|
88 | 95 | },
|
| 96 | + "extends": ["plugin:markdown/recommended", "plugin:functional/off"], |
89 | 97 | "rules": {
|
90 | 98 | "@typescript-eslint/await-thenable": "off",
|
91 | 99 | "@typescript-eslint/consistent-type-definitions": "off",
|
|
94 | 102 | "@typescript-eslint/naming-convention": "off",
|
95 | 103 | "@typescript-eslint/no-confusing-void-expression": "off",
|
96 | 104 | "@typescript-eslint/no-empty-function": "off",
|
| 105 | + "@typescript-eslint/no-explicit-any": "off", |
97 | 106 | "@typescript-eslint/no-floating-promises": "off",
|
98 | 107 | "@typescript-eslint/no-for-in-array": "off",
|
99 | 108 | "@typescript-eslint/no-implied-eval": "off",
|
100 | 109 | "@typescript-eslint/no-misused-promises": "off",
|
101 | 110 | "@typescript-eslint/no-throw-literal": "off",
|
| 111 | + "@typescript-eslint/no-unnecessary-condition": "off", |
102 | 112 | "@typescript-eslint/no-unnecessary-type-assertion": "off",
|
| 113 | + "@typescript-eslint/no-unsafe-argument": "off", |
103 | 114 | "@typescript-eslint/no-unsafe-assignment": "off",
|
104 | 115 | "@typescript-eslint/no-unsafe-call": "off",
|
105 | 116 | "@typescript-eslint/no-unsafe-member-access": "off",
|
|
120 | 131 | "@typescript-eslint/strict-boolean-expressions": "off",
|
121 | 132 | "@typescript-eslint/switch-exhaustiveness-check": "off",
|
122 | 133 | "@typescript-eslint/unbound-method": "off",
|
123 |
| - "functional/functional-parameters": "off", |
124 |
| - "functional/immutable-data": "off", |
125 |
| - "functional/no-class": "off", |
126 |
| - "functional/no-expression-statement": "off", |
127 |
| - "functional/no-let": "off", |
128 |
| - "functional/no-loop-statement": "off", |
129 |
| - "functional/no-return-void": "off", |
130 |
| - "functional/no-this-expression": "off", |
131 |
| - "functional/no-throw-statement": "off", |
132 |
| - "functional/no-try-statement": "off", |
133 |
| - "functional/prefer-readonly-type": "off", |
134 | 134 | "import/no-unresolved": "off",
|
135 | 135 | "init-declarations": "off",
|
136 | 136 | "jsdoc/require-jsdoc": "off",
|
|
146 | 146 | "sonarjs/no-unused-collection": "off",
|
147 | 147 | "unicorn/prefer-optional-catch-binding": "off",
|
148 | 148 | "unicorn/prefer-top-level-await": "off",
|
| 149 | + "unicorn/switch-case-braces": "off", |
149 | 150 |
|
150 | 151 | "dot-notation": "error",
|
151 | 152 | "no-implied-eval": "error",
|
|
0 commit comments