@siemens/eslint-plugin-defaultvalue 1.0.2 → 2.0.0-next.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 CHANGED
@@ -33,16 +33,3 @@ export default [
33
33
  }
34
34
  ];
35
35
  ```
36
-
37
- ### Removing not resolved and setter @defaultValue annotations
38
-
39
- To automatically remove not resolvable and setter @defaultValue annotations, use the following configuration:
40
-
41
- ```js
42
- ...,
43
- rules: {
44
- ...,
45
- 'defaultvalue/tsdoc-defaultValue-annotation': ['error', 'removeAll', 1000]
46
- }
47
- ...
48
- ```
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable headers/header-format */
2
2
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3
3
  // See LICENSE in the project root for license information.
4
- import * as path from 'path';
5
4
  import { TSDocConfigFile } from '@microsoft/tsdoc-config';
5
+ import * as path from 'path';
6
6
  // How often to check for modified input files. If a file's modification timestamp has changed, then we will
7
7
  // evict the cache entry immediately.
8
8
  const CACHE_CHECK_INTERVAL_MS = 3 * 1000;
@@ -192,12 +192,7 @@ export default createRule({
192
192
  docs: {
193
193
  description: 'enforce correct @defaultValue TSDoc annotation'
194
194
  },
195
- schema: [
196
- {
197
- type: 'string',
198
- enum: ['removeAll', 'default']
199
- }
200
- ],
195
+ schema: [],
201
196
  fixable: 'code',
202
197
  messages: {
203
198
  incorrectDefaultValueAnnotation: 'Incorrect @defaultValue TSDoc annotation: {{ message }}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@siemens/eslint-plugin-defaultvalue",
3
- "version": "1.0.2",
3
+ "version": "2.0.0-next.1",
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.",