[Pkg-javascript-devel] Bug#1057707: Bug#1057707: eslint is incompatible with node-ajv >= 8
    Yadd 
    yadd at debian.org
       
    Thu Dec  7 13:37:31 GMT 2023
    
    
  
Control: tags -1 + patch
On 12/7/23 15:52, Jérémy Lal wrote:
> 
> 
> Le jeu. 7 déc. 2023 à 12:45, Yadd <yadd at debian.org 
> <mailto:yadd at debian.org>> a écrit :
> 
>     Package: eslint
>     Version: 6.4.0~dfsg+~6.1.9-7
>     Severity: important
>     Tags: ftbfs upstream
> 
>     Hi,
> 
>     eslint depends on node-ajv 6 and is incompatible with node-ajv 8
>     (available in exeprimental branch). All is in lib/shared/ajv.js:
> 
>       - eslint requires 'ajv/lib/refs/json-schema-draft-04.json' which is no
>         more available
>       - eslint tries to set `ajv._opts.defaultMeta` which is
>         `ajv.opts.defaultMeta` in node-ajv 8.
> 
>     Changing "ajv/lib/refs/json-schema-draft-04.json" to
>     "ajv/lib/refs/json-schema-draft-06.json" doesn't work. I tried this
>     patch which looks to work but 27 tests fail (not the good error string).
>     It uses default ajv schemas.
> 
>     Help needed here ;-)
> 
> 
> I suppose you tried
> https://github.com/eslint/eslint/pull/13911/commits 
> <https://github.com/eslint/eslint/pull/13911/commits>
> ?
Thanks a lot Jérémy! Based on your suggestion, I succeed to build a patch.
@Jonas, do you agree if I push this to experimental ?
Best regards,
Yadd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eslint_ajv8.patch
Type: text/x-diff
Size: 16697 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20231207/3b7ab855/attachment.patch>
    
    
More information about the Pkg-javascript-devel
mailing list