@gtvmbh/eslint-config 1.1.6 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/npm-publish.yml +1 -1
- package/README.md +1 -0
- package/package.json +1 -1
- package/src/typescript.js +11 -1
package/README.md
CHANGED
|
@@ -6,3 +6,4 @@
|
|
|
6
6
|
* `./node_modules/.bin/eslint -c .eslintrc.js .` for javascript projects.
|
|
7
7
|
* `./node_modules/.bin/eslint -c .eslintrc.js . --ext .ts` for typescript projects.
|
|
8
8
|
4. Configure your IDE to use ESLint to check automatically. In VS Code it should be enough to install the ESLint extension and everything should be picked up automatically.
|
|
9
|
+
5. Brew some tea to cope with all your new linter errors.
|
package/package.json
CHANGED
package/src/typescript.js
CHANGED
|
@@ -223,7 +223,17 @@ module.exports = {
|
|
|
223
223
|
'@typescript-eslint/restrict-template-expressions': 'off', // (oder warn mit allen options an),
|
|
224
224
|
|
|
225
225
|
// Restricts the types allowed in boolean expressions
|
|
226
|
-
'@typescript-eslint/strict-boolean-expressions': 'warn',
|
|
226
|
+
'@typescript-eslint/strict-boolean-expressions': ['warn', {
|
|
227
|
+
allowString: true,
|
|
228
|
+
allowNumber: true,
|
|
229
|
+
allowNullableObject: true,
|
|
230
|
+
allowNullableBoolean: false,
|
|
231
|
+
allowNullableString: false,
|
|
232
|
+
allowNullableNumber: false,
|
|
233
|
+
allowNullableEnum: false,
|
|
234
|
+
allowAny: false,
|
|
235
|
+
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing: false,
|
|
236
|
+
}],
|
|
227
237
|
|
|
228
238
|
// Exhaustiveness checking in switch with union type
|
|
229
239
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|