@@ -60,6 +60,10 @@ describe('get()', function () {
6060 describe ( 'rfc6901 compliance' , function ( ) {
6161 // See https://tools.ietf.org/html/rfc6901#section-5
6262
63+ // eslint no-useless-escape rule disabled for some lines
64+ // as theses checks are taken straight from the spec so
65+ // don't want to change them.
66+
6367 const testDoc = {
6468 foo : [ 'bar' , 'baz' ] ,
6569 '' : 0 ,
@@ -68,7 +72,7 @@ describe('get()', function () {
6872 'e^f' : 3 ,
6973 'g|h' : 4 ,
7074 'i\\j' : 5 ,
71- 'k\"l' : 6 ,
75+ 'k\"l' : 6 , // eslint-disable-line no-useless-escape
7276 ' ' : 7 ,
7377 'm~n' : 8
7478 } ;
@@ -83,7 +87,7 @@ describe('get()', function () {
8387 { pointer : '/e^f' , expected : 3 } ,
8488 { pointer : '/g|h' , expected : 4 } ,
8589 { pointer : '/i\\j' , expected : 5 } ,
86- { pointer : '/k\"l' , expected : 6 } ,
90+ { pointer : '/k\"l' , expected : 6 } , // eslint-disable-line no-useless-escape
8791 { pointer : '/ ' , expected : 7 } ,
8892 { pointer : '/m~0n' , expected : 8 } ,
8993 { pointer : '#' , expected : testDoc } ,
0 commit comments