@pobammer-ts/eslint-cease-nonsense-rules 1.14.0 → 1.14.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/README.md +2 -1
- package/dist/build-metadata.json +3 -3
- package/dist/index.js +1032 -73
- package/dist/index.js.map +6 -5
- package/dist/rules/prefer-enum-item.d.ts +1 -0
- package/dist/rules/prefer-enum-item.d.ts.map +1 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -147,7 +147,8 @@ Enforce using EnumItem values instead of string or number literals when the type
|
|
|
147
147
|
```typescript
|
|
148
148
|
{
|
|
149
149
|
"cease-nonsense/prefer-enum-item": ["error", {
|
|
150
|
-
"fixNumericToValue": false // When true, numbers fix to Enum.X.Y.Value
|
|
150
|
+
"fixNumericToValue": false, // When true, numbers fix to Enum.X.Y.Value
|
|
151
|
+
"performanceMode": false // When true, cache enum lookups
|
|
151
152
|
}]
|
|
152
153
|
}
|
|
153
154
|
```
|
package/dist/build-metadata.json
CHANGED