Skip to content

Conversation

@mcous
Copy link
Contributor

@mcous mcous commented Apr 6, 2023

This PR is collecting updates in reaction to integrating this config into viam-typescript-sdk. See viamrobotics/viam-typescript-sdk#52 for a little more context

'no-unreachable-loop': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'error',
'no-underscore-dangle': ['error', { allow: ['__VERSION__'] }],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See viamrobotics/viam-typescript-sdk#52 for why __VERSION__ is added to the allow list

@mcous mcous marked this pull request as ready for review April 11, 2023 14:15
uses: JS-DevTools/npm-publish@1641d030cee266f093503c555ee9303ae7aede16
with:
package: ${{ input.package }}
package: ${{ inputs.package }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silly typo I introduced in #6


// Bundler compatibility
"jsx": "preserve",
"isolatedModules": true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This setting is redundant with verbatimModuleSyntax below and shouldn't have been included in the first place. My bad!

'import/order': 'error',

// Extra SonarJS rules
'sonarjs/cognitive-complexity': ['error', 20],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

20 matches the current value of the vanilla eslint complexity setting in viamrobotics/app

Copy link
Member

@DTCurrie DTCurrie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mcous mcous merged commit 0b85af9 into viamrobotics:main Apr 11, 2023
@mcous mcous deleted the typescript-sdk-alignment branch April 11, 2023 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants