MBX-3707: add lint rules. fix rules error #17
Annotations
10 errors and 4 warnings
lint:
src/__tests__/index.test.ts#L69
Replace `operationSystemName·&&·typeof·operationSystemName·===·'string'·&&·operationSystemName.length·>·0·&&·operationBodyString·&&·typeof·operationBodyString·===·'string'·&&·operationBodyString.length·>·0` with `⏎············operationSystemName·&&⏎············typeof·operationSystemName·===·'string'·&&⏎············operationSystemName.length·>·0·&&⏎············operationBodyString·&&⏎············typeof·operationBodyString·===·'string'·&&⏎············operationBodyString.length·>·0⏎··········`
|
lint:
src/__tests__/index.test.ts#L79
Replace `operationSystemName·&&·typeof·operationSystemName·===·'string'·&&·operationBodyString·&&·typeof·operationBodyString·===·'string'` with `⏎············operationSystemName·&&⏎············typeof·operationSystemName·===·'string'·&&⏎············operationBodyString·&&⏎············typeof·operationBodyString·===·'string'⏎··········`
|
lint:
src/__tests__/index.test.ts#L92
Replace `operationBodyString·!==·JSON.stringify({·recommendation:·{·limit:·'10'·}·})` with `⏎··············operationBodyString·!==⏎··············JSON.stringify({·recommendation:·{·limit:·'10'·}·})⏎············`
|
lint:
src/__tests__/index.test.ts#L98
Insert `⏎·····················`
|
lint:
src/__tests__/index.test.ts#L120
Insert `⏎·······················`
|
lint:
src/__tests__/index.test.ts#L123
Insert `⏎·······················`
|
lint:
src/__tests__/index.test.ts#L158
Replace `·Platform.OS·===·'ios'·?·'pushok-rn-ios-sandbox'` with `⏎······Platform.OS·===·'ios'⏎········?·'pushok-rn-ios-sandbox'⏎·······`
|
lint:
src/__tests__/index.test.ts#L207
Replace `'Unexpected·token'` with `⏎··········'Unexpected·token'⏎········`
|
lint:
src/__tests__/index.test.ts#L218
Replace `MindboxSdk.initialize(notValidInitializationData)` with `⏎··········MindboxSdk.initialize(notValidInitializationData)⏎········`
|
lint:
src/__tests__/index.test.ts#L269
Replace `'Error'` with `⏎··········'Error'⏎········`
|
unit-tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
unit-tests
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|