@@ -66,12 +66,8 @@ function partition<T, V extends _.Collection<T>>(
6666 const b : _ . TypeOfCollection < V > [ ] = [ ] ;
6767 _ . forEach ( list , ( elem , key , ctx ) => {
6868 if ( iteratee ( elem , key , ctx ) ) {
69- // TODO(LEMS-3083): Remove eslint suppression
70- // eslint-disable-next-line functional/immutable-data
7169 a . push ( elem ) ;
7270 } else {
73- // TODO(LEMS-3083): Remove eslint suppression
74- // eslint-disable-next-line functional/immutable-data
7571 b . push ( elem ) ;
7672 }
7773 } ) ;
@@ -3599,8 +3595,6 @@ var parseError = function (str: string, hash) {
35993595
36003596// expose concrete nodes to parser scope
36013597// see http://zaach.github.io/jison/docs/#sharing-scope
3602- // TODO(LEMS-3083): Remove eslint suppression
3603- // eslint-disable-next-line functional/immutable-data
36043598parser . yy = {
36053599 Add : Add ,
36063600 Mul : Mul ,
@@ -3637,12 +3631,8 @@ export const parse = function (input: string, options?: ParseOptions) {
36373631 try {
36383632 if ( options && options . functions ) {
36393633 // reserve the symbol "i" for complex numbers
3640- // TODO(LEMS-3083): Remove eslint suppression
3641- // eslint-disable-next-line functional/immutable-data
36423634 parser . yy . functions = _ . without ( options . functions , "i" ) ;
36433635 } else {
3644- // TODO(LEMS-3083): Remove eslint suppression
3645- // eslint-disable-next-line functional/immutable-data
36463636 parser . yy . functions = [ ] ;
36473637 }
36483638
@@ -3777,16 +3767,12 @@ export const unitParse = function (input: string) {
37773767 const unitArray : Pow [ ] = [ ] ;
37783768
37793769 _ ( parseResult . unit . num ) . each ( ( unitSpec ) => {
3780- // TODO(LEMS-3083): Remove eslint suppression
3781- // eslint-disable-next-line functional/immutable-data
37823770 unitArray . push (
37833771 new Pow ( unprefixify ( unitSpec . name ) , new Int ( unitSpec . pow ) ) ,
37843772 ) ;
37853773 } ) ;
37863774
37873775 _ ( parseResult . unit . denom ) . each ( ( unitSpec ) => {
3788- // TODO(LEMS-3083): Remove eslint suppression
3789- // eslint-disable-next-line functional/immutable-data
37903776 unitArray . push (
37913777 new Pow ( unprefixify ( unitSpec . name ) , new Int ( - 1 * unitSpec . pow ) ) ,
37923778 ) ;
@@ -3877,17 +3863,13 @@ const makeAlias = function (str: string, prefixes: Prefixes) {
38773863 numdenomStr [ 0 ]
38783864 . split ( " " )
38793865 . filter ( ( x ) => x !== "" )
3880- // TODO(LEMS-3083): Remove eslint suppression
3881- // eslint-disable-next-line functional/immutable-data
38823866 . forEach ( ( x ) => numdenom . push ( new Unit ( x ) ) ) ;
38833867 }
38843868
38853869 if ( numdenomStr [ 1 ] ) {
38863870 numdenomStr [ 1 ]
38873871 . split ( " " )
38883872 . filter ( ( x ) => x !== "" )
3889- // TODO(LEMS-3083): Remove eslint suppression
3890- // eslint-disable-next-line functional/immutable-data
38913873 . forEach ( ( x ) => numdenom . push ( new Pow ( new Unit ( x ) , NumDiv ) ) ) ;
38923874 }
38933875
0 commit comments