@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 +0 -13
- package/lib/rules/ConfigCache.js +1 -1
- package/lib/rules/default-value.js +1 -6
- package/package.json +1 -1
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
|
-
```
|
package/lib/rules/ConfigCache.js
CHANGED
|
@@ -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