@siemens/eslint-plugin-defaultvalue 1.1.0 → 1.1.2

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.
@@ -143,8 +143,16 @@ const extractCallExpression = (callExpression, sourceCode, readonly) => {
143
143
  // This will never have a defaultValue.
144
144
  return undefined;
145
145
  }
146
+ // Should not be documented.
147
+ if (readonly) {
148
+ return undefined;
149
+ }
146
150
  return sourceCode.getText(callExpression);
147
151
  default:
152
+ // Should not be documented.
153
+ if (readonly) {
154
+ return undefined;
155
+ }
148
156
  return sourceCode.getText(callExpression);
149
157
  }
150
158
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/eslint-plugin-defaultvalue",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "main": "lib/index.js",
5
5
  "type": "module",
6
6
  "description": "Automatically enrich TSDoc comments with default values or check if they are all correct.",