File: 2002_avoid_prettier.patch

package info (click to toggle)
node-eslint-plugin-es 4.1.0~ds1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,656 kB
  • sloc: javascript: 7,934; makefile: 31; sh: 1
file content (38 lines) | stat: -rw-r--r-- 1,311 bytes parent folder | download | duplicates (2)
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
34
35
36
37
38
Description: avoid eslint prettier hints unsupported in Debian
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/rules/no-arrow-functions.js
+++ b/lib/rules/no-arrow-functions.js
@@ -53,7 +53,6 @@
                 .trim()
 
             let resultText =
-                /*eslint-disable @mysticatea/prettier */
                 node.body.type === "BlockStatement" ? (
                     `function(${paramText}) ${bodyText}`
                 ) : preText.includes("\n") ? (
@@ -61,7 +60,6 @@
                 ) : (
                     `function(${paramText}) { return ${bodyText} }`
                 )
-                /*eslint-enable @mysticatea/prettier */
 
             if (node.async) {
                 resultText = `async ${resultText}`
--- a/tests/tester.js
+++ b/tests/tester.js
@@ -10,12 +10,10 @@
 
 const eslintVersion = new Linter().version
 const ecmaVersion =
-    /*eslint-disable @mysticatea/prettier */
     semver.gte(eslintVersion, "7.8.0") ? 2021 :
     semver.gte(eslintVersion, "6.2.0") ? 2020 :
     semver.gte(eslintVersion, "5.0.0") ? 2019 :
     2018
-    /*eslint-enable @mysticatea/prettier */
 
 //eslint-disable-next-line no-console
 console.log("ECMAScript Version: %d", ecmaVersion)