gulp-eslint-new 1.4.1 → 1.4.2

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.
Files changed (3) hide show
  1. package/index.d.ts +13 -6
  2. package/package.json +2 -1
  3. package/util.js +3 -3
package/index.d.ts CHANGED
@@ -87,7 +87,7 @@ declare const gulpESLintNew: {
87
87
  /**
88
88
  * Append ESLint result to each file.
89
89
  *
90
- * @param options Options for gulp-eslint-new.
90
+ * @param options - Options for gulp-eslint-new.
91
91
  * @returns gulp file stream.
92
92
  */
93
93
  (options?: GulpESLintOptions): NodeJS.ReadWriteStream;
@@ -95,7 +95,7 @@ declare const gulpESLintNew: {
95
95
  /**
96
96
  * Append ESLint result to each file.
97
97
  *
98
- * @param overrideConfigFile The path to a configuration file.
98
+ * @param overrideConfigFile - The path to a configuration file.
99
99
  * @returns gulp file stream.
100
100
  */
101
101
  (overrideConfigFile?: string): NodeJS.ReadWriteStream;
@@ -133,10 +133,10 @@ declare const gulpESLintNew: {
133
133
  /**
134
134
  * Format the results of each file individually.
135
135
  *
136
- * @param formatter
136
+ * @param formatter -
137
137
  * A name or path of a formatter, a formatter object or a formatter function.
138
138
  * Defaults to the [stylish](https://eslint.org/docs/user-guide/formatters/#stylish) formatter.
139
- * @param writer
139
+ * @param writer -
140
140
  * A funtion or stream to write the formatted ESLint results.
141
141
  * Defaults to gulp's [fancy-log](https://github.com/gulpjs/fancy-log#readme).
142
142
  * @returns gulp file stream.
@@ -149,10 +149,10 @@ declare const gulpESLintNew: {
149
149
  /**
150
150
  * Wait until all files have been linted and format all results at once.
151
151
  *
152
- * @param formatter
152
+ * @param formatter -
153
153
  * A name or path of a formatter, a formatter object or a formatter function.
154
154
  * Defaults to the [stylish](https://eslint.org/docs/user-guide/formatters/#stylish) formatter.
155
- * @param writer
155
+ * @param writer -
156
156
  * A funtion or stream to write the formatted ESLint results.
157
157
  * Defaults to gulp's [fancy-log](https://github.com/gulpjs/fancy-log#readme).
158
158
  * @returns gulp file stream.
@@ -161,5 +161,12 @@ declare const gulpESLintNew: {
161
161
  formatter?: string | ESLint.Formatter | FormatterFunction,
162
162
  writer?: GulpESLintWriter | NodeJS.WritableStream
163
163
  ): NodeJS.ReadWriteStream;
164
+
165
+ /**
166
+ * Overwrite source files with the fixed content provided by ESLint if present.
167
+ *
168
+ * @returns gulp file stream.
169
+ */
170
+ fix(): NodeJS.ReadWriteStream;
164
171
  };
165
172
  export default gulpESLintNew;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gulp-eslint-new",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A gulp plugin to lint code with ESLint 8",
5
5
  "keywords": [
6
6
  "gulpplugin",
@@ -52,6 +52,7 @@
52
52
  "@typescript-eslint/parser": "^5.12.1",
53
53
  "c8": "^7.11.0",
54
54
  "eslint-plugin-eslint-comments": "^3.2.0",
55
+ "eslint-plugin-tsdoc": "^0.2.14",
55
56
  "gulp": "^4.0.2",
56
57
  "mocha": "^9.2.1",
57
58
  "typescript": "^4.5.5",
package/util.js CHANGED
@@ -285,9 +285,9 @@ function throwInvalidOptionError(message) {
285
285
  /**
286
286
  * Convert a string array to a boolean map.
287
287
  *
288
- * @param {string[]|null} keys The keys to assign true.
289
- * @param {boolean} defaultValue The default value for each property.
290
- * @param {string} displayName The property name which is used in error message.
288
+ * @param {string[]|null} keys - The keys to assign true.
289
+ * @param {boolean} defaultValue - The default value for each property.
290
+ * @param {string} displayName - The property name which is used in error message.
291
291
  * @returns {Record<string,boolean>} The boolean map.
292
292
  */
293
293
  function toBooleanMap(keys, defaultValue, displayName) {