[Pkg-javascript-devel] Bug#1058080: node-eslint-plugin-eslint-plugin: Please add this patch for node-ajv >= 8

Yadd yadd at debian.org
Tue Dec 12 06:57:02 GMT 2023


Package: node-eslint-plugin-eslint-plugin
Version: 2.3.0+~0.3.0-3
Severity: important
Tags: ftbfs patch upstream
X-Debbugs-Cc: yadd at debian.org

Hi,

here is a patch that updates AJV schemas. It is compatible with current
node-ajv 6 and node-ajv >= 8

Cheers,
Yadd
-------------- next part --------------
diff --git a/debian/changelog b/debian/changelog
index e799068..317e5a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-eslint-plugin-eslint-plugin (2.3.0+~0.3.0-4) UNRELEASED; urgency=medium
+
+  * Team upload
+
+ -- Yadd <yadd at debian.org>  Tue, 12 Dec 2023 09:38:42 +0400
+
 node-eslint-plugin-eslint-plugin (2.3.0+~0.3.0-3) unstable; urgency=medium
 
   * add patch cherry-picked upstream
diff --git a/debian/patches/2006_prepare-for-ajv-8.patch b/debian/patches/2006_prepare-for-ajv-8.patch
new file mode 100644
index 0000000..4444669
--- /dev/null
+++ b/debian/patches/2006_prepare-for-ajv-8.patch
@@ -0,0 +1,27 @@
+Description: prepare for ajv 8
+Author: Yadd <yadd at debian.org>
+Forwarded: no
+Last-Update: 2023-12-12
+
+--- a/lib/rules/meta-property-ordering.js
++++ b/lib/rules/meta-property-ordering.js
+@@ -21,7 +21,7 @@
+     fixable: 'code',
+     schema: [{
+       type: 'array',
+-      elements: { type: 'string' },
++      items: { type: 'string' },
+     }],
+   },
+ 
+--- a/lib/rules/test-case-property-ordering.js
++++ b/lib/rules/test-case-property-ordering.js
+@@ -22,7 +22,7 @@
+     fixable: 'code',
+     schema: [{
+       type: 'array',
+-      elements: { type: 'string' },
++      items: { type: 'string' },
+     }],
+   },
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 5eb779a..1de9aa5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@
 2003_avoid_eslint-config-not-an-aardvark.patch
 2004_avoid_eslint-config-airbnb-base.patch
 2005_no-require-jsdoc.patch
+2006_prepare-for-ajv-8.patch


More information about the Pkg-javascript-devel mailing list