@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.
@@ -29,4 +29,4 @@ jobs:
29
29
  scope: 'gtvmbh'
30
30
  - run: npm publish --access public
31
31
  env:
32
- NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
32
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gtvmbh/eslint-config",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "ESLint configurations for various project types developed by Gesellschaft für Technische Visualistik",
5
5
  "main": "index.js",
6
6
  "scripts": {
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',