eslint-plugin-jsdoc 64.3.10 → 64.4.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/dist/rules.d.ts +6 -3
- package/package.json +1 -1
- package/src/rules/convertToJsdocComments.js +3 -2
- package/src/rules/noBadBlocks.js +10 -2
- package/src/rules.d.ts +6 -3
package/dist/rules.d.ts
CHANGED
|
@@ -447,7 +447,7 @@ export interface Rules {
|
|
|
447
447
|
/**
|
|
448
448
|
* An array of prefixes to allow at the beginning of a comment.
|
|
449
449
|
*
|
|
450
|
-
* Defaults to `['@ts-', 'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-']`.
|
|
450
|
+
* Defaults to `['@ts-', '@license', '@license-end', 'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-']`.
|
|
451
451
|
*
|
|
452
452
|
* Supplying your own value overrides the defaults.
|
|
453
453
|
*/
|
|
@@ -1060,8 +1060,11 @@ export interface Rules {
|
|
|
1060
1060
|
* An array of directives that will not be reported if present at the beginning of
|
|
1061
1061
|
* a multi-comment block and at-sign `/* @`.
|
|
1062
1062
|
*
|
|
1063
|
-
* Defaults to `['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck'
|
|
1064
|
-
*
|
|
1063
|
+
* Defaults to `['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck',
|
|
1064
|
+
* 'license', 'license-end', 'licstart', 'licend', 'source',]`
|
|
1065
|
+
*
|
|
1066
|
+
* (directives that are either [used by TypeScript](https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html#ts-check)
|
|
1067
|
+
* or by the [LibreJS standard](https://www.gnu.org/software/librejs/free-your-javascript.html)).
|
|
1065
1068
|
*/
|
|
1066
1069
|
ignore?: string[];
|
|
1067
1070
|
/**
|
package/package.json
CHANGED
|
@@ -45,7 +45,8 @@ export default {
|
|
|
45
45
|
|
|
46
46
|
const {
|
|
47
47
|
allowedPrefixes = [
|
|
48
|
-
'@ts-', '
|
|
48
|
+
'@ts-', '@license', '@license-end',
|
|
49
|
+
'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-',
|
|
49
50
|
],
|
|
50
51
|
contexts = settings.contexts || [],
|
|
51
52
|
contextsAfter = /** @type {string[]} */ ([]),
|
|
@@ -399,7 +400,7 @@ export default {
|
|
|
399
400
|
allowedPrefixes: {
|
|
400
401
|
description: `An array of prefixes to allow at the beginning of a comment.
|
|
401
402
|
|
|
402
|
-
Defaults to \`['@ts-', 'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-']\`.
|
|
403
|
+
Defaults to \`['@ts-', '@license', '@license-end', 'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-']\`.
|
|
403
404
|
|
|
404
405
|
Supplying your own value overrides the defaults.`,
|
|
405
406
|
items: {
|
package/src/rules/noBadBlocks.js
CHANGED
|
@@ -21,6 +21,11 @@ export default iterateJsdoc(({
|
|
|
21
21
|
'ts-expect-error',
|
|
22
22
|
'ts-ignore',
|
|
23
23
|
'ts-nocheck',
|
|
24
|
+
'license',
|
|
25
|
+
'license-end',
|
|
26
|
+
'licstart',
|
|
27
|
+
'licend',
|
|
28
|
+
'source',
|
|
24
29
|
],
|
|
25
30
|
preventAllMultiAsteriskBlocks = false,
|
|
26
31
|
} = {},
|
|
@@ -105,8 +110,11 @@ export default iterateJsdoc(({
|
|
|
105
110
|
description: `An array of directives that will not be reported if present at the beginning of
|
|
106
111
|
a multi-comment block and at-sign \`/* @\`.
|
|
107
112
|
|
|
108
|
-
Defaults to \`['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck'
|
|
109
|
-
|
|
113
|
+
Defaults to \`['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck',
|
|
114
|
+
'license', 'license-end', 'licstart', 'licend', 'source',]\`
|
|
115
|
+
|
|
116
|
+
(directives that are either [used by TypeScript](https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html#ts-check)
|
|
117
|
+
or by the [LibreJS standard](https://www.gnu.org/software/librejs/free-your-javascript.html)).`,
|
|
110
118
|
items: {
|
|
111
119
|
type: 'string',
|
|
112
120
|
},
|
package/src/rules.d.ts
CHANGED
|
@@ -447,7 +447,7 @@ export interface Rules {
|
|
|
447
447
|
/**
|
|
448
448
|
* An array of prefixes to allow at the beginning of a comment.
|
|
449
449
|
*
|
|
450
|
-
* Defaults to `['@ts-', 'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-']`.
|
|
450
|
+
* Defaults to `['@ts-', '@license', '@license-end', 'istanbul ', 'c8 ', 'v8 ', 'eslint', 'prettier-']`.
|
|
451
451
|
*
|
|
452
452
|
* Supplying your own value overrides the defaults.
|
|
453
453
|
*/
|
|
@@ -1060,8 +1060,11 @@ export interface Rules {
|
|
|
1060
1060
|
* An array of directives that will not be reported if present at the beginning of
|
|
1061
1061
|
* a multi-comment block and at-sign `/* @`.
|
|
1062
1062
|
*
|
|
1063
|
-
* Defaults to `['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck'
|
|
1064
|
-
*
|
|
1063
|
+
* Defaults to `['ts-check', 'ts-expect-error', 'ts-ignore', 'ts-nocheck',
|
|
1064
|
+
* 'license', 'license-end', 'licstart', 'licend', 'source',]`
|
|
1065
|
+
*
|
|
1066
|
+
* (directives that are either [used by TypeScript](https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html#ts-check)
|
|
1067
|
+
* or by the [LibreJS standard](https://www.gnu.org/software/librejs/free-your-javascript.html)).
|
|
1065
1068
|
*/
|
|
1066
1069
|
ignore?: string[];
|
|
1067
1070
|
/**
|