Skip to content

style: fix style issue #572

style: fix style issue

style: fix style issue #572

Triggered via push September 19, 2024 03:45
Status Failure
Total duration 1m 6s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors
test/typescript.test.ts > rules > eqeqeq: test/__util__/test_util.ts#L29
AssertionError: Rule: eqeqeq Source: const a = 1;a == 1 Result: false Message:[] : expected false to be true // Object.is equality - Expected + Received - true + false ❯ test/__util__/test_util.ts:29:37
test/typescript.test.ts > rules > ts/prefer-nullish-coalescing: test/__util__/test_util.ts#L29
AssertionError: Rule: ts/prefer-nullish-coalescing Source: let a: null | string let b: null | string a ?? b Result: false Message:[ { "ruleId": "ts/prefer-nullish-coalescing", "severity": 2, "message": "This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.", "line": 0, "column": 1, "nodeType": null, "messageId": "noStrictNullCheck", "endLine": 0, "endColumn": 1 }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 1, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 1, "endColumn": 12, "fix": { "range": [ 7, 11 ], "text": "undefined" } }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 2, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 2, "endColumn": 12, "fix": { "range": [ 28, 32 ], "text": "undefined" } } ] : expected true to be false // Object.is equality - Expected + Received - false + true ❯ test/__util__/test_util.ts:29:37
test/typescript.test.ts > rules > ts/prefer-nullish-coalescing: test/__util__/test_util.ts#L29
AssertionError: Rule: ts/prefer-nullish-coalescing Source: let a: null | string let b: null | string let c: null | string a || (b && c) Result: false Message:[ { "ruleId": "ts/prefer-nullish-coalescing", "severity": 2, "message": "This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.", "line": 0, "column": 1, "nodeType": null, "messageId": "noStrictNullCheck", "endLine": 0, "endColumn": 1 }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 1, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 1, "endColumn": 12, "fix": { "range": [ 7, 11 ], "text": "undefined" } }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 2, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 2, "endColumn": 12, "fix": { "range": [ 28, 32 ], "text": "undefined" } }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 3, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 3, "endColumn": 12, "fix": { "range": [ 49, 53 ], "text": "undefined" } } ] : expected true to be false // Object.is equality - Expected + Received - false + true ❯ test/__util__/test_util.ts:29:37
test/typescript.test.ts > rules > ts/prefer-nullish-coalescing: test/__util__/test_util.ts#L29
AssertionError: Rule: ts/prefer-nullish-coalescing Source: let a: null | string let b: null | string let c: null | string a ?? (b && c) Result: false Message:[ { "ruleId": "ts/prefer-nullish-coalescing", "severity": 2, "message": "This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.", "line": 0, "column": 1, "nodeType": null, "messageId": "noStrictNullCheck", "endLine": 0, "endColumn": 1 }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 1, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 1, "endColumn": 12, "fix": { "range": [ 7, 11 ], "text": "undefined" } }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 2, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 2, "endColumn": 12, "fix": { "range": [ 28, 32 ], "text": "undefined" } }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 3, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 3, "endColumn": 12, "fix": { "range": [ 49, 53 ], "text": "undefined" } } ] : expected true to be false // Object.is equality - Expected + Received - false + true ❯ test/__util__/test_util.ts:29:37
test/typescript.test.ts > rules > ts/prefer-nullish-coalescing: test/__util__/test_util.ts#L29
AssertionError: Rule: ts/prefer-nullish-coalescing Source: let a: null | string let b = a ?? "a string" Result: false Message:[ { "ruleId": "ts/prefer-nullish-coalescing", "severity": 2, "message": "This rule requires the `strictNullChecks` compiler option to be turned on to function correctly.", "line": 0, "column": 1, "nodeType": null, "messageId": "noStrictNullCheck", "endLine": 0, "endColumn": 1 }, { "ruleId": "ts/no-restricted-types", "severity": 2, "message": "Don't use `null` as a type. Use `undefined` instead. See: https://github.com/sindresorhus/meta/issues/7", "line": 1, "column": 8, "nodeType": "TSNullKeyword", "messageId": "bannedTypeMessage", "endLine": 1, "endColumn": 12, "fix": { "range": [ 7, 11 ], "text": "undefined" } } ] : expected true to be false // Object.is equality - Expected + Received - false + true ❯ test/__util__/test_util.ts:29:37
CI
Process completed with exit code 1.