@siemens/eslint-plugin-defaultvalue 1.0.1 → 1.1.0
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/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
|
-
```
|
|
@@ -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