File: 1004_no-shadow.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 (28 lines) | stat: -rw-r--r-- 887 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
Description: silence seemingly false positives of no-shadow
Author: Jonas Smedegaard <dr@jones.dk>
Last-Update: 2022-02-25
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/tests/lib/configs/recommended.js
+++ b/tests/lib/configs/recommended.js
@@ -7,7 +7,10 @@
 
 describe("node/recommended config", () => {
     describe("in CJS directory", () => {
+        /* eslint-disable no-shadow */
         const root = path.resolve(__dirname, "../../fixtures/configs/cjs/")
+        /* eslint-enable no-shadow */
+
 
         /** @type {CLIEngine} */
         let engine = null
@@ -84,7 +87,9 @@
     })
 
     describe("in ESM directory", () => {
+        /* eslint-disable no-shadow */
         const root = path.resolve(__dirname, "../../fixtures/configs/esm/")
+        /* eslint-enable no-shadow */
 
         /** @type {CLIEngine} */
         let engine = null