@josundt/eslint-config 5.7.2 → 5.7.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@josundt/eslint-config",
3
- "version": "5.7.2",
3
+ "version": "5.7.3",
4
4
  "description": "ESLint ruleset with required plugins for josundt TypeScript projects",
5
5
  "type": "module",
6
6
  "exports": {
@@ -141,7 +141,13 @@ const rules = {
141
141
  }
142
142
  ],
143
143
  "no-extra-non-null-assertion": "error",
144
- "no-extraneous-class": "error",
144
+ "no-extraneous-class": ["error", {
145
+
146
+ allowConstructorOnly: false, // Whether to allow extraneous classes that contain only a constructor.
147
+ allowEmpty: false, // Whether to allow extraeous classes that have no body (i.e. are empty).
148
+ allowStaticOnly: true, // Whether to allow extraneous classes that only contain static members.
149
+ allowWithDecorator: false // Whether to allow extraneous classes that include a decorator.
150
+ }],
145
151
  "no-floating-promises": "error", // Must be switched on to prevent promises not awaited
146
152
  "no-for-in-array": "error",
147
153
  "no-import-type-side-effects": "error",