linter-bundle 3.6.0 → 3.7.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/CHANGELOG.md
CHANGED
|
@@ -6,7 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
-
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v3.
|
|
9
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v3.7.0...HEAD)
|
|
10
|
+
|
|
11
|
+
## [3.7.0] - 2023-08-11
|
|
12
|
+
|
|
13
|
+
- [eslint] Adjusted `jsdoc/tag-lines` configuration to enforce no empty like for `@typedef`, `@property` and `@returns`; and weakened line configuration for `@see`
|
|
14
|
+
|
|
15
|
+
[Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v3.6.0...v3.7.0)
|
|
10
16
|
|
|
11
17
|
## [3.6.0] - 2023-08-11
|
|
12
18
|
|
|
@@ -70,13 +70,16 @@ module.exports = {
|
|
|
70
70
|
file: { lines: 'always' },
|
|
71
71
|
fileOverview: { lines: 'always' },
|
|
72
72
|
license: { lines: 'always' },
|
|
73
|
-
see: { lines: 'never' },
|
|
74
|
-
template: { lines: 'never' },
|
|
75
73
|
param: { lines: 'never' },
|
|
76
74
|
private: { lines: 'never' },
|
|
75
|
+
property: { lines: 'never' },
|
|
77
76
|
protected: { lines: 'never' },
|
|
78
77
|
public: { lines: 'never' },
|
|
79
|
-
|
|
78
|
+
returns: { lines: 'never' },
|
|
79
|
+
see: { lines: 'any' },
|
|
80
|
+
template: { lines: 'never' },
|
|
81
|
+
throws: { lines: 'never' },
|
|
82
|
+
typedef: { lines: 'never' }
|
|
80
83
|
},
|
|
81
84
|
startLines: null,
|
|
82
85
|
endLines: null,
|
package/lint.js
CHANGED
|
@@ -259,7 +259,6 @@ void (async () => {
|
|
|
259
259
|
*
|
|
260
260
|
* @param {ReturnType<isNpmOrYarn>} npmOrYarn - This should be the return value of `isNpmOrYarn()`.
|
|
261
261
|
* @returns {boolean} Returns `true` if the environment is valid, otherwise `false` is returned.
|
|
262
|
-
*
|
|
263
262
|
*/
|
|
264
263
|
function validateEnvironment (npmOrYarn) {
|
|
265
264
|
const outdatedOverrides = validatePackageOverrides();
|
|
@@ -312,7 +311,6 @@ function validateEnvironment (npmOrYarn) {
|
|
|
312
311
|
*
|
|
313
312
|
* @param {string[]} argv - Command-line arguments (usual `process.argv.splice(2)`)
|
|
314
313
|
* @returns {TaskNameAndConfig[]} The task execution setup.
|
|
315
|
-
*
|
|
316
314
|
* @throws {Error} If no task has be specified in the arguments.
|
|
317
315
|
*/
|
|
318
316
|
function getTasksToRun (argv) {
|
|
@@ -379,7 +377,6 @@ function getTasksToRun (argv) {
|
|
|
379
377
|
* @param {string} pattern - Glob pattern
|
|
380
378
|
* @param {Partial<Record<string, (string | true)[]>>} config - Linter configuration
|
|
381
379
|
* @returns {string} Space-separated file names in double-quotes to be used in the command-line, or an empty string if no file matches.
|
|
382
|
-
*
|
|
383
380
|
*/
|
|
384
381
|
function getIncludes (list, pattern, config) {
|
|
385
382
|
const include = config['include']?.[0];
|
|
@@ -402,7 +399,6 @@ function getIncludes (list, pattern, config) {
|
|
|
402
399
|
*
|
|
403
400
|
* @param {TaskSetup} setup - The task execution setup.
|
|
404
401
|
* @returns {Job} Job
|
|
405
|
-
*
|
|
406
402
|
*/
|
|
407
403
|
function runTask (setup) {
|
|
408
404
|
return {
|
|
@@ -419,7 +415,6 @@ function runTask (setup) {
|
|
|
419
415
|
* @param {Partial<Record<string, (string | true)[]>>} config - The configuration of the task.
|
|
420
416
|
* @param {{ code?: number; stdout?: string; stderr?: string; }} output - The output which should be returned as result of the job.
|
|
421
417
|
* @returns {Job} Job
|
|
422
|
-
*
|
|
423
418
|
*/
|
|
424
419
|
function generateDummyJobOutput (taskName, config, output) {
|
|
425
420
|
return {
|
|
@@ -448,7 +443,6 @@ function generateDummyJobOutput (taskName, config, output) {
|
|
|
448
443
|
*
|
|
449
444
|
* @param {TaskSetup} setup - The task execution setup.
|
|
450
445
|
* @returns {string} The title of the job with a leading line-break and two trailing line-breaks.
|
|
451
|
-
*
|
|
452
446
|
*/
|
|
453
447
|
function getJobTitle (setup) {
|
|
454
448
|
/** @type {string} */
|
package/package.json
CHANGED
|
@@ -139,11 +139,11 @@ const getDisallowedList = (ignore) => {
|
|
|
139
139
|
/**
|
|
140
140
|
* Returns the input string stripped of its vendor prefix.
|
|
141
141
|
*
|
|
142
|
-
* @param {string} property - String with or without vendor prefix.
|
|
143
|
-
* @returns {string} String name without vendor prefixes.
|
|
144
|
-
*
|
|
145
142
|
* @example
|
|
146
143
|
* unprefixed('-moz-tab-size') //=> 'tab-size'
|
|
144
|
+
*
|
|
145
|
+
* @param {string} property - String with or without vendor prefix.
|
|
146
|
+
* @returns {string} String name without vendor prefixes.
|
|
147
147
|
*/
|
|
148
148
|
const unprefixed = (property) => property.replace(/^-\w+-/u, '');
|
|
149
149
|
|