@sarj/eslint-plugin 9.7.0 → 9.7.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 +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -401,7 +401,7 @@ type FlatPreset = {
|
|
|
401
401
|
declare const plugin: {
|
|
402
402
|
meta: {
|
|
403
403
|
readonly name: "@sarj/eslint-plugin";
|
|
404
|
-
readonly version: "9.7.
|
|
404
|
+
readonly version: "9.7.1";
|
|
405
405
|
};
|
|
406
406
|
rules: {
|
|
407
407
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
package/dist/index.d.ts
CHANGED
|
@@ -401,7 +401,7 @@ type FlatPreset = {
|
|
|
401
401
|
declare const plugin: {
|
|
402
402
|
meta: {
|
|
403
403
|
readonly name: "@sarj/eslint-plugin";
|
|
404
|
-
readonly version: "9.7.
|
|
404
|
+
readonly version: "9.7.1";
|
|
405
405
|
};
|
|
406
406
|
rules: {
|
|
407
407
|
"enforce-file-structure": _typescript_eslint_utils_ts_eslint.RuleModule<"importsFirst" | "useServerDirective", readonly [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener> & {
|
package/dist/index.js
CHANGED
|
@@ -7127,6 +7127,7 @@ var prefer_non_nullable_collection_default = createRule({
|
|
|
7127
7127
|
return {};
|
|
7128
7128
|
}
|
|
7129
7129
|
function checkOptionalProperty(node) {
|
|
7130
|
+
if (node.optional) return;
|
|
7130
7131
|
const annotation = node.typeAnnotation?.typeAnnotation;
|
|
7131
7132
|
if (annotation === void 0) return;
|
|
7132
7133
|
if (annotation.type !== AST_NODE_TYPES34.TSUnionType || !isNullableArrayOnly(annotation)) {
|
|
@@ -9895,7 +9896,7 @@ var rules = {
|
|
|
9895
9896
|
};
|
|
9896
9897
|
var meta = {
|
|
9897
9898
|
name: "@sarj/eslint-plugin",
|
|
9898
|
-
version: "9.7.
|
|
9899
|
+
version: "9.7.1"
|
|
9899
9900
|
};
|
|
9900
9901
|
var recommendedRules = {
|
|
9901
9902
|
"@sarj/enforce-file-structure": "warn",
|