File: 1003_default-param-last.patch

package info (click to toggle)
node-eslint-plugin-node 11.1.0~ds-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,160 kB
  • sloc: javascript: 23,749; perl: 48; makefile: 38; sh: 1
file content (33 lines) | stat: -rw-r--r-- 1,071 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: silence false positives of default-param-last
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2022-02-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/util/visit-import.js
+++ b/lib/util/visit-import.js
@@ -24,9 +24,11 @@
  * @returns {ImportTarget[]} A list of found target's information.
  */
 module.exports = function visitImport(
+    /* eslint-disable default-param-last */
     context,
     { includeCore = false, optionIndex = 0 } = {},
     callback
+    /* eslint-enable default-param-last */
 ) {
     const targets = []
     const basedir = path.dirname(path.resolve(context.getFilename()))
--- a/lib/util/visit-require.js
+++ b/lib/util/visit-require.js
@@ -24,9 +24,11 @@
  * @returns {Object} The visitor.
  */
 module.exports = function visitRequire(
+    /* eslint-disable default-param-last */
     context,
     { includeCore = false } = {},
     callback
+    /* eslint-enable default-param-last */
 ) {
     const targets = []
     const basedir = path.dirname(path.resolve(context.getFilename()))