AriPerkkio/eslint-remote-tester

Weekly scheduled smoke test: typescript-eslint-eslint-plugin

github-actions opened this issue · 6 comments

Detected 2 ESLint reports and/or crashes.
Scanned 540 repositories.

Rules:

  • @typescript-eslint/prefer-readonly-parameter-types
  • ``
Click to expand

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/effector/effector/packages/effector/index.d.ts:2784 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: effector/effector/packages/effector/index.d.ts
  • Link
  2782 | export function combine<State extends Tuple, R>(
  2783 |   tuple: State,
> 2784 |   fn: (
  2785 |     tuple: {[K in keyof State]: State[K] extends Store<infer U> ? U : State[K]},
  2786 |   ) => R,
  2787 | ): Store<R>
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/effector/effector/packages/effector/index.d.ts:2784
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Rule:

  • Message: ERR_WORKER_OUT_OF_MEMORY Worker terminated due to reaching memory limit: JS heap out of memory
  • Path: aodocs-backlight/simba-design-ystem
  • Link

Detected 1 ESLint reports and/or crashes.
Scanned 738 repositories.

Rules:

  • @typescript-eslint/no-misused-promises
Click to expand

Rule: @typescript-eslint/no-misused-promises

  • Message: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/keystonejs/keystone/tests/api-tests/extend-graphql-schema/extend-graphql-schema.test.ts:24 Rule: "@typescript-eslint/no-misused-promises"
  • Path: keystonejs/keystone/tests/api-tests/extend-graphql-schema/extend-graphql-schema.test.ts
  • Link
  22 | };
  23 |
> 24 | const runner = setupTestRunner({
  25 |   config: apiTestConfig({
  26 |     lists: {
  27 |       User: list({
Error: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/keystonejs/keystone/tests/api-tests/extend-graphql-schema/extend-graphql-schema.test.ts:24
Rule: "@typescript-eslint/no-misused-promises"
    at assignParameterType (/github/workspace/ci/node_modules/typescript/lib/typescript.js:77753:26)
    at assignContextualParameterTypes (/github/workspace/ci/node_modules/typescript/lib/typescript.js:77714:21)
    at contextuallyCheckFunctionExpressionOrObjectLiteralMethod (/github/workspace/ci/node_modules/typescript/lib/typescript.js:78197:29)
    at checkFunctionExpressionOrObjectLiteralMethod (/github/workspace/ci/node_modules/typescript/lib/typescript.js:78172:13)
    at checkExpressionWorker (/github/workspace/ci/node_modules/typescript/lib/typescript.js:79965:28)
    at checkExpression (/github/workspace/ci/node_modules/typescript/lib/typescript.js:79860:38)
    at checkExpressionWithContextualType (/github/workspace/ci/node_modules/typescript/lib/typescript.js:79490:28)
    at inferTypeArguments (/github/workspace/ci/node_modules/typescript/lib/typescript.js:75531:39)
    at chooseOverload (/github/workspace/ci/node_modules/typescript/lib/typescript.js:76301:53)
    at resolveCall (/github/workspace/ci/node_modules/typescript/lib/typescript.js:76126:26)

Detected 2 ESLint reports and/or crashes.
Scanned 785 repositories.

Rules:

  • @typescript-eslint/prefer-readonly-parameter-types
Click to expand

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapMaybeSelector.ts:313 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: elyukai/optolith-client/src/App/Utilities/createMapMaybeSelector.ts
  • Link
  311 |   > =
  312 |     (...globalValuesWithKey: MappedMaybeI<MappedReturnType<MappedReturnType<K>>>) =>
> 313 |     (...globalValues: MappedReturnType<G>) =>
  314 |     (...mapValueValues: MappedReturnType<M>) => R
  315 |
  316 | type CallbackWithoutKeys
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapMaybeSelector.ts:313
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapSelector.ts:276 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: elyukai/optolith-client/src/App/Utilities/createMapSelector.ts
  • Link
  274 |     R
  275 |   > =
> 276 |     (...globalValuesWithKey: MappedReturnType<MappedReturnType<K>>) =>
  277 |     (...globalValues: MappedReturnType<G>) =>
  278 |     (...mapValueValues: MappedReturnType<M>) => R
  279 |
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapSelector.ts:276
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Detected 2 ESLint reports and/or crashes.
Scanned 846 repositories.

Rules:

  • @typescript-eslint/prefer-readonly-parameter-types
Click to expand

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapMaybeSelector.ts:313 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: elyukai/optolith-client/src/App/Utilities/createMapMaybeSelector.ts
  • Link
  311 |   > =
  312 |     (...globalValuesWithKey: MappedMaybeI<MappedReturnType<MappedReturnType<K>>>) =>
> 313 |     (...globalValues: MappedReturnType<G>) =>
  314 |     (...mapValueValues: MappedReturnType<M>) => R
  315 |
  316 | type CallbackWithoutKeys
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapMaybeSelector.ts:313
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapSelector.ts:276 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: elyukai/optolith-client/src/App/Utilities/createMapSelector.ts
  • Link
  274 |     R
  275 |   > =
> 276 |     (...globalValuesWithKey: MappedReturnType<MappedReturnType<K>>) =>
  277 |     (...globalValues: MappedReturnType<G>) =>
  278 |     (...mapValueValues: MappedReturnType<M>) => R
  279 |
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/elyukai/optolith-client/src/App/Utilities/createMapSelector.ts:276
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Detected 3 ESLint reports and/or crashes.
Scanned 530 repositories.

Rules:

  • @typescript-eslint/prefer-readonly-parameter-types
Click to expand

Rule:

  • Message: ERR_WORKER_OUT_OF_MEMORY Worker terminated due to reaching memory limit: JS heap out of memory
  • Path: oktadeveloper/react-odyssey
  • Link

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/effector/effector/packages/effector/index.d.ts:2784 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: effector/effector/packages/effector/index.d.ts
  • Link
  2782 | export function combine<State extends Tuple, R>(
  2783 |   tuple: State,
> 2784 |   fn: (
  2785 |     tuple: {[K in keyof State]: State[K] extends Store<infer U> ? U : State[K]},
  2786 |   ) => R,
  2787 | ): Store<R>
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/effector/effector/packages/effector/index.d.ts:2784
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Rule:

  • Message: ERR_WORKER_OUT_OF_MEMORY Worker terminated due to reaching memory limit: JS heap out of memory
  • Path: betagouv/ecolab-climat
  • Link

Detected 7 ESLint reports and/or crashes.
Scanned 648 repositories.

Rules:

  • @typescript-eslint/prefer-optional-chain
  • @typescript-eslint/no-misused-promises
Click to expand

Rule: @typescript-eslint/prefer-optional-chain

  • Message: Unexpected member object type: AssignmentExpression Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/expandorg/expand-components/docs/static/js/vendors.1ac56837.js:128 Rule: "@typescript-eslint/prefer-optional-chain"
  • Path: expandorg/expand-components/docs/static/js/vendors.1ac56837.js
  • Link
  126 |     height: 100%;
  127 |   }
> 128 | `,d=Object(i.c)([".cm-s-docz-light.CodeMirror{border-radius:0;background:#fbfcfd;color:#24292e;}.cm-s-docz-light .CodeMirror-gutters{background:#fbfcfd;border-right-width:0;border-radius:0;}.cm-s-docz-light .CodeMirror-guttermarker{color:white;}.cm-s-docz-light .CodeMirror-guttermarker-subtle{color:#d0d0d0;}.cm-s-docz-light .CodeMirror-linenumber{color:#959da5;background:#fbfcfd;}.cm-s-docz-light .CodeMirror-cursor{border-left:1px solid #24292e;}.cm-s-docz-light div.CodeMirror-selected,.cm-s-docz-light .CodeMirror-line::selection,.cm-s-docz-light .CodeMirror-line > span::selection,.cm-s-docz-light .CodeMirror-line > span > span::selection,.cm-s-docz-light .CodeMirror-line::-moz-selection,.cm-s-docz-light .CodeMirror-line > span::-moz-selection,.cm-s-docz-light .CodeMirror-line > span > span::-moz-selection{background:#c8c8fa;}.cm-s-docz-light .CodeMirror-activeline-background{background:#fafbfc;}.cm-s-docz-light .CodeMirror-matchingbracket{text-decoration:underline;color:#94...
  129 | //# sourceMappingURL=vendors.264c3cdedeefcb372aa5.js.map
Error: Unexpected member object type: AssignmentExpression
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/expandorg/expand-components/docs/static/js/vendors.1ac56837.js:128
Rule: "@typescript-eslint/prefer-optional-chain"
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:384:17)
    at getText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:358:14)
    at LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:141:32)
    at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
    at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: @typescript-eslint/prefer-optional-chain

  • Message: Unexpected member object type: AssignmentExpression Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/appbaseio/reactivesearch/packages/web/umd/reactivesearch.js:19 Rule: "@typescript-eslint/prefer-optional-chain"
  • Path: appbaseio/reactivesearch/packages/web/umd/reactivesearch.js
  • Link
  17 |  * @author   Feross Aboukhadijeh <http://feross.org>
  18 |  * @license  MIT
> 19 |  */(t.length)?i(e,0):f(e,t);if("Buffer"===t.type&&G(t.data))return f(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(0>e)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(c(t),e=i(e,0>t?0:0|h(t)),!s.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=0>t.length?0:0|h(t.length);e=i(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function g(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":...
  20 |
Error: Unexpected member object type: AssignmentExpression
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/appbaseio/reactivesearch/packages/web/umd/reactivesearch.js:19
Rule: "@typescript-eslint/prefer-optional-chain"
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:384:17)
    at getText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:358:14)
    at LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:141:32)
    at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
    at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: @typescript-eslint/no-misused-promises

  • Message: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/keystonejs/keystone/tests/api-tests/extend-graphql-schema/extend-graphql-schema.test.ts:24 Rule: "@typescript-eslint/no-misused-promises"
  • Path: keystonejs/keystone/tests/api-tests/extend-graphql-schema/extend-graphql-schema.test.ts
  • Link
  22 | };
  23 |
> 24 | const runner = setupTestRunner({
  25 |   config: apiTestConfig({
  26 |     lists: {
  27 |       User: list({
Error: Debug Failure. Expected [object Object] === [object Object]. Parameter symbol already has a cached type which differs from newly assigned type
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/keystonejs/keystone/tests/api-tests/extend-graphql-schema/extend-graphql-schema.test.ts:24
Rule: "@typescript-eslint/no-misused-promises"
    at assignParameterType (/github/workspace/ci/node_modules/typescript/lib/typescript.js:77753:26)
    at assignContextualParameterTypes (/github/workspace/ci/node_modules/typescript/lib/typescript.js:77714:21)
    at contextuallyCheckFunctionExpressionOrObjectLiteralMethod (/github/workspace/ci/node_modules/typescript/lib/typescript.js:78197:29)
    at checkFunctionExpressionOrObjectLiteralMethod (/github/workspace/ci/node_modules/typescript/lib/typescript.js:78172:13)
    at checkExpressionWorker (/github/workspace/ci/node_modules/typescript/lib/typescript.js:79965:28)
    at checkExpression (/github/workspace/ci/node_modules/typescript/lib/typescript.js:79860:38)
    at checkExpressionWithContextualType (/github/workspace/ci/node_modules/typescript/lib/typescript.js:79490:28)
    at inferTypeArguments (/github/workspace/ci/node_modules/typescript/lib/typescript.js:75531:39)
    at chooseOverload (/github/workspace/ci/node_modules/typescript/lib/typescript.js:76301:53)
    at resolveCall (/github/workspace/ci/node_modules/typescript/lib/typescript.js:76126:26)

Rule: @typescript-eslint/prefer-optional-chain

  • Message: Unexpected member property type: Identifier Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/vassourita/ally/web/src/pages/CreateVacancy/index.js:142 Rule: "@typescript-eslint/prefer-optional-chain"
  • Path: vassourita/ally/web/src/pages/CreateVacancy/index.js
  • Link
  140 |               disabled={
  141 |                 knowledges.length &&
> 142 |                 (!knowledges[knowledges.length - 1].name || !knowledges[knowledges.length - 1].typeId)
  143 |               }
  144 |               onClick={() => setKnowledges([...knowledges, { differential: false }])}
  145 |             >
Error: Unexpected member property type: Identifier
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/vassourita/ally/web/src/pages/CreateVacancy/index.js:142
Rule: "@typescript-eslint/prefer-optional-chain"
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:406:19)
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:375:24)
    at getText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:358:14)
    at LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:141:32)
    at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
    at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)

Rule: @typescript-eslint/prefer-optional-chain

  • Message: Unexpected member object type: TSNonNullExpression Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/numToStr/listrrr/packages/client/src/gql/project.query.ts:96 Rule: "@typescript-eslint/prefer-optional-chain"
  • Path: numToStr/listrrr/packages/client/src/gql/project.query.ts
  • Link
  94 |             update(cache, { data }) {
  95 |                 // if rearrangeColumn is false => return, means update is not successful
> 96 |                 if (!data!.rearrangeColumn || !options) {
  97 |                     return;
  98 |                 }
  99 |
Error: Unexpected member object type: TSNonNullExpression
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/numToStr/listrrr/packages/client/src/gql/project.query.ts:96
Rule: "@typescript-eslint/prefer-optional-chain"
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:384:17)
    at getText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:358:14)
    at LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:141:32)
    at ruleErrorHandler (/github/workspace/ci/node_modules/eslint/lib/linter/linter.js:1114:28)
    at /github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/ci/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: @typescript-eslint/prefer-optional-chain

  • Message: Unexpected member object type: TSAsExpression Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/LXSMNSYC/indigo-player-2/src/extensions/FreeWheelExtension/FreeWheelExtension.ts:69 Rule: "@typescript-eslint/prefer-optional-chain"
  • Path: LXSMNSYC/indigo-player-2/src/extensions/FreeWheelExtension/FreeWheelExtension.ts
  • Link
  67 |
  68 |     if (
> 69 |       !(window as any).tv
  70 |       || !(window as any).tv.freewheel
  71 |       || !(window as any).tv.freewheel.SDK
  72 |     ) {
Error: Unexpected member object type: TSAsExpression
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/LXSMNSYC/indigo-player-2/src/extensions/FreeWheelExtension/FreeWheelExtension.ts:69
Rule: "@typescript-eslint/prefer-optional-chain"
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:384:17)
    at getText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:358:14)
    at LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:141:32)
    at ruleErrorHandler (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/linter.js:1114:28)
    at /github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Rule: @typescript-eslint/prefer-optional-chain

  • Message: Unexpected member object type: TSAsExpression Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/LXSMNSYC/indigo-player-2/src/extensions/GoogleIMAExtension/GoogleIMAExtension.ts:60 Rule: "@typescript-eslint/prefer-optional-chain"
  • Path: LXSMNSYC/indigo-player-2/src/extensions/GoogleIMAExtension/GoogleIMAExtension.ts
  • Link
  58 |     super(instance);
  59 |
> 60 |     if (!(window as any).google || !(window as any).google.ima) {
  61 |       return;
  62 |     }
  63 |
Error: Unexpected member object type: TSAsExpression
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/LXSMNSYC/indigo-player-2/src/extensions/GoogleIMAExtension/GoogleIMAExtension.ts:60
Rule: "@typescript-eslint/prefer-optional-chain"
    at getMemberExpressionText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:384:17)
    at getText (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:358:14)
    at LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > Identifier,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > MemberExpression,LogicalExpression[operator="||"] > UnaryExpression[operator="!"] > ChainExpression > MemberExpression (/github/workspace/ci/node_modules/@typescript-eslint/eslint-plugin/src/rules/prefer-optional-chain.ts:141:32)
    at ruleErrorHandler (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/linter.js:1114:28)
    at /github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/node-event-generator.js:297:26)
    at NodeEventGenerator.applySelectors (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/node-event-generator.js:326:22)
    at NodeEventGenerator.enterNode (/github/workspace/ci/node_modules/eslint-remote-tester/node_modules/eslint/lib/linter/node-event-generator.js:340:14)

Detected 2 ESLint reports and/or crashes.
Scanned 611 repositories.

Rules:

  • @typescript-eslint/prefer-readonly-parameter-types
Click to expand

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/logux/state/computed/index.d.ts:29 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: logux/state/computed/index.d.ts
  • Link
  27 |   <Value extends any, OriginStores extends AnyStore[]>(
  28 |     stores: [...OriginStores],
> 29 |     cb: (...values: StoreValues<OriginStores>) => Value
  30 |   ): ReadableAtom<Value>
  31 |   <Value extends any, OriginStore extends Store>(
  32 |     stores: OriginStore,
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/logux/state/computed/index.d.ts:29
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)

Rule: @typescript-eslint/prefer-readonly-parameter-types

  • Message: Cannot read property 'flags' of undefined Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/logux/state/deprecated/index.d.ts:27 Rule: "@typescript-eslint/prefer-readonly-parameter-types"
  • Path: logux/state/deprecated/index.d.ts
  • Link
  25 |   <Value extends any, OriginStores extends ReadableAtom[]>(
  26 |     stores: [...OriginStores],
> 27 |     cb: (...values: StoreValues<OriginStores>) => Value
  28 |   ): ReadableAtom<Value>
  29 | }
  30 |
TypeError: Cannot read property 'flags' of undefined
Occurred while linting /github/workspace/ci/node_modules/eslint-remote-tester/.cache-eslint-remote-tester/logux/state/deprecated/index.d.ts:27
Rule: "@typescript-eslint/prefer-readonly-parameter-types"
    at Object.isUnionType (/github/workspace/ci/node_modules/tsutils/typeguard/2.8/type.ts:68:18)
    at unionTypeParts (/github/workspace/ci/node_modules/tsutils/util/type.ts:145:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:237:21)
    at isReadonlyPropertyFromMappedType (/github/workspace/ci/node_modules/tsutils/util/type.ts:289:12)
    at /github/workspace/ci/node_modules/tsutils/util/type.ts:264:21
    at someTypePart (/github/workspace/ci/node_modules/tsutils/util/type.ts:154:52)
    at isReadonlyPropertyIntersection (/github/workspace/ci/node_modules/tsutils/util/type.ts:257:12)
    at isPropertyReadonlyInType (/github/workspace/ci/node_modules/tsutils/util/type.ts:247:45)
    at isTypeReadonlyObject (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:156:35)
    at isTypeReadonlyRecurser (/github/workspace/ci/node_modules/@typescript-eslint/type-utils/src/isTypeReadonly.ts:296:28)