Modernization to the current CSS rgb/rgba color parser #42
Annotations
3 errors and 30 warnings
Lint and tests (latest)
Process completed with exit code 1.
|
Lint and tests (18)
Process completed with exit code 1.
|
Lint and tests (20)
Process completed with exit code 1.
|
Lint and tests (latest):
lib/parsers.js#L32
Insert `⏎·`
|
Lint and tests (latest):
lib/parsers.js#L300
Replace `.slice(0,·3).map(code·=>·⏎······code.toLowerCase()·==·"none"·?·0·:·⏎······Math.min(255,·Math.max(0,·⏎··········percentRegEx.test(code)·⏎··········?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)·⏎··········:·integerRegEx.test(code)·⏎··········?·parseInt(code,·10)·⏎` with `⏎······.slice(0,·3)⏎······.map((code)·=>⏎········code.toLowerCase()·==·'none'⏎··········?·0⏎··········:·Math.min(⏎··············255,⏎··············Math.max(⏎················0,⏎················percentRegEx.test(code)⏎··················?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)⏎··················:·integerRegEx.test(code)⏎····················?·parseInt(code,·10)⏎··········`
|
Lint and tests (latest):
lib/parsers.js#L308
Insert `······`
|
Lint and tests (latest):
lib/parsers.js#L309
Replace `······` with `············`
|
Lint and tests (latest):
lib/parsers.js#L310
Insert `··`
|
Lint and tests (latest):
lib/parsers.js#L312
Insert `·`
|
Lint and tests (latest):
lib/parsers.js#L313
Insert `⏎·······`
|
Lint and tests (latest):
lib/parsers.js#L314
Insert `····`
|
Lint and tests (latest):
lib/parsers.js#L315
Replace `······` with `··········`
|
Lint and tests (latest):
lib/parsers.js#L316
Replace `······` with `············`
|
Lint and tests (18):
lib/parsers.js#L32
Insert `⏎·`
|
Lint and tests (18):
lib/parsers.js#L300
Replace `.slice(0,·3).map(code·=>·⏎······code.toLowerCase()·==·"none"·?·0·:·⏎······Math.min(255,·Math.max(0,·⏎··········percentRegEx.test(code)·⏎··········?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)·⏎··········:·integerRegEx.test(code)·⏎··········?·parseInt(code,·10)·⏎` with `⏎······.slice(0,·3)⏎······.map((code)·=>⏎········code.toLowerCase()·==·'none'⏎··········?·0⏎··········:·Math.min(⏎··············255,⏎··············Math.max(⏎················0,⏎················percentRegEx.test(code)⏎··················?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)⏎··················:·integerRegEx.test(code)⏎····················?·parseInt(code,·10)⏎··········`
|
Lint and tests (18):
lib/parsers.js#L308
Insert `······`
|
Lint and tests (18):
lib/parsers.js#L309
Replace `······` with `············`
|
Lint and tests (18):
lib/parsers.js#L310
Insert `··`
|
Lint and tests (18):
lib/parsers.js#L312
Insert `·`
|
Lint and tests (18):
lib/parsers.js#L313
Insert `⏎·······`
|
Lint and tests (18):
lib/parsers.js#L314
Insert `····`
|
Lint and tests (18):
lib/parsers.js#L315
Replace `······` with `··········`
|
Lint and tests (18):
lib/parsers.js#L316
Replace `······` with `············`
|
Lint and tests (20):
lib/parsers.js#L32
Insert `⏎·`
|
Lint and tests (20):
lib/parsers.js#L300
Replace `.slice(0,·3).map(code·=>·⏎······code.toLowerCase()·==·"none"·?·0·:·⏎······Math.min(255,·Math.max(0,·⏎··········percentRegEx.test(code)·⏎··········?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)·⏎··········:·integerRegEx.test(code)·⏎··········?·parseInt(code,·10)·⏎` with `⏎······.slice(0,·3)⏎······.map((code)·=>⏎········code.toLowerCase()·==·'none'⏎··········?·0⏎··········:·Math.min(⏎··············255,⏎··············Math.max(⏎················0,⏎················percentRegEx.test(code)⏎··················?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)⏎··················:·integerRegEx.test(code)⏎····················?·parseInt(code,·10)⏎··········`
|
Lint and tests (20):
lib/parsers.js#L308
Insert `······`
|
Lint and tests (20):
lib/parsers.js#L309
Replace `······` with `············`
|
Lint and tests (20):
lib/parsers.js#L310
Insert `··`
|
Lint and tests (20):
lib/parsers.js#L312
Insert `·`
|
Lint and tests (20):
lib/parsers.js#L313
Insert `⏎·······`
|
Lint and tests (20):
lib/parsers.js#L314
Insert `····`
|
Lint and tests (20):
lib/parsers.js#L315
Replace `······` with `··········`
|
Lint and tests (20):
lib/parsers.js#L316
Replace `······` with `············`
|