Add recipe's inline alternative UOM. Closes #154. #422
Annotations
10 errors and 2 warnings
build:
src/ingredientParser.js#L93
Delete `··`
|
build:
src/ingredientParser.js#L101
Replace `alternativeFirstQuantity,·alternativeQuantity,·alternativeQuantityText,·alternativeQtyEndIndex]·=·getQuantity(⏎······tokens,⏎······units,⏎······alternativeQtyIndex·+·1⏎····` with `⏎······alternativeFirstQuantity,⏎······alternativeQuantity,⏎······alternativeQuantityText,⏎······alternativeQtyEndIndex,⏎····]·=·getQuantity(tokens,·units,·alternativeQtyIndex·+·1`
|
build:
src/ingredientParser.js#L101
'alternativeQuantityText' is assigned a value but never used
|
build:
src/ingredientParser.js#L144
Insert `⏎······`
|
build:
src/ingredientParser.js#L145
Insert `··`
|
build:
src/ingredientParser.js#L146
Insert `··`
|
build:
src/ingredientParser.js#L147
Replace `)` with `··),⏎····`
|
build:
test/index_en.spec.js#L263
Replace `"1·cup·(120grams)·of·flour",·1,·1,·1,·"cup",·"flour",·120,·120,·120,·"gram"` with `⏎······"1·cup·(120grams)·of·flour",⏎······1,⏎······1,⏎······1,⏎······"cup",⏎······"flour",⏎······120,⏎······120,⏎······120,⏎······"gram",⏎····`
|
build:
test/index_en.spec.js#L265
Replace `"100-200g·(1-2·cup)·of·flour",·200,·100,·200,·"gram",·"flour",·2,·1,·2,·"cup"` with `⏎······"100-200g·(1-2·cup)·of·flour",⏎······200,⏎······100,⏎······200,⏎······"gram",⏎······"flour",⏎······2,⏎······1,⏎······2,⏎······"cup",⏎····`
|
build:
test/index_pt.spec.js#L331
Replace `"1·copo·(120g)·farinha",·1,·1,·1,·"copo",·"farinha",·120,·120,·120,·"grama"` with `⏎······"1·copo·(120g)·farinha",⏎······1,⏎······1,⏎······1,⏎······"copo",⏎······"farinha",⏎······120,⏎······120,⏎······120,⏎······"grama",⏎····`
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build:
src/ingredientParser.js#L163
Missing JSDoc @param "index" declaration
|