Skip to content

ci: config lint for typescript #970

ci: config lint for typescript

ci: config lint for typescript #970

Triggered via pull request July 16, 2024 15:17
Status Failure
Total duration 2m 39s
Artifacts

main.yml

on: pull_request
linter_and_tests
2m 28s
linter_and_tests
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 12 warnings
linter_and_tests: packages/common/src/hexToRgb.ts#L1
Type string trivially inferred from a string literal, remove type annotation
linter_and_tests: packages/common/src/hexToRgb.ts#L1
Type number trivially inferred from a number literal, remove type annotation
linter_and_tests: packages/common/src/hexToRgb.ts#L9
Replace `(parseInt(h.slice(from,·from·+·step).repeat(shortened·?·2·:·1),·16))` with `parseInt(h.slice(from,·from·+·step).repeat(shortened·?·2·:·1),·16)`
linter_and_tests: packages/doc/.eslintrc.js#L1
Require statement not part of import statement
linter_and_tests: packages/doc/.eslintrc.js#L2
Require statement not part of import statement
linter_and_tests: packages/doc/gatsby-config.js#L2
Require statement not part of import statement
linter_and_tests: packages/doc/gatsby-node.js#L1
Require statement not part of import statement
linter_and_tests: packages/doc/gatsby-node.js#L2
Require statement not part of import statement
linter_and_tests: packages/doc/src/components/CodeBlock/shared/modules/modules.js#L12
The members of 'YogaComponents' are read-only
linter_and_tests
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, 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/
linter_and_tests
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, 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/
linter_and_tests: packages/common/src/dummy.ts#L1
Missing return type on function
linter_and_tests: packages/common/src/hexToRgb.ts#L8
Missing return type on function
linter_and_tests: packages/common/src/merge.ts#L1
Missing return type on function
linter_and_tests: packages/doc/gatsby-node.js#L4
Missing return type on function
linter_and_tests: packages/doc/gatsby-node.js#L51
Missing return type on function
linter_and_tests: packages/doc/gatsby-node.js#L100
Missing return type on function
linter_and_tests: packages/doc/src/components/Clipboard/index.jsx#L8
Missing return type on function
linter_and_tests: packages/doc/src/components/Clipboard/index.jsx#L12
Missing return type on function
linter_and_tests: packages/doc/src/components/Clipboard/index.jsx#L18
Missing return type on function
linter_and_tests: packages/doc/src/components/Clipboard/index.jsx#L25
Missing return type on function