@eienjs/eslint-config 1.4.0 → 1.4.1
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/dist/configs/typescript.js +3 -4
- package/dist/package.js +1 -1
- package/package.json +1 -1
|
@@ -214,10 +214,9 @@ async function typescript(options = {}) {
|
|
|
214
214
|
if (isErasableSyntaxOnly) {
|
|
215
215
|
await ensurePackages(["eslint-plugin-erasable-syntax-only"]);
|
|
216
216
|
const pluginErasableSyntaxOnly = await interopDefault(import("eslint-plugin-erasable-syntax-only"));
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
} : isErasableSyntaxOnly;
|
|
217
|
+
const resolvedErasableSyntaxOnly = typeof erasableSyntaxOnly === "boolean" ? {} : erasableSyntaxOnly;
|
|
218
|
+
const enums = resolvedErasableSyntaxOnly.enums ?? true;
|
|
219
|
+
const parameterProperties = resolvedErasableSyntaxOnly.parameterProperties ?? true;
|
|
221
220
|
rules.push({
|
|
222
221
|
files,
|
|
223
222
|
name: "eienjs/typescript/erasable-syntax-only",
|
package/dist/package.js
CHANGED
package/package.json
CHANGED