Skip to content

Commit 2db433f

Browse files
RSDK-1843 Add wrapper for robot (#20)
Co-authored-by: Eric Daniels <[email protected]>
1 parent de274d9 commit 2db433f

16 files changed

+2829
-71
lines changed

.eslintrc.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ module.exports = {
3131
'camelcase': ['error', { properties: 'never' }],
3232
'comma-dangle': ['error', {
3333
arrays: 'always-multiline',
34-
exports: 'never',
34+
exports: 'only-multiline',
3535
functions: 'never',
36-
imports: 'never',
36+
imports: 'only-multiline',
3737
objects: 'always-multiline',
3838
}],
3939
'complexity': ['error', { max: 50 }],
@@ -70,7 +70,8 @@ module.exports = {
7070
'quote-props': ['error', 'consistent-as-needed'],
7171
'quotes': ['error', 'single'],
7272
'semi': ['error', 'always'],
73-
73+
'sort-keys': 'off',
74+
'sort-imports': ['error', { 'allowSeparatedGroups': true }],
7475
'@typescript-eslint/prefer-for-of': 'off',
7576
'@typescript-eslint/no-shadow': ['error'], // https://github.com/typescript-eslint/typescript-eslint/issues/2483#issuecomment-687095358
7677
'@typescript-eslint/type-annotation-spacing': 'warn',

.github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_call:
55

66
jobs:
7-
build_and_lint:
7+
build_lint_test:
88
if: github.repository_owner == 'viamrobotics'
99
runs-on: [self-hosted, x64]
1010
container:
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v3
1515

16-
- name: Build and lint
16+
- name: Build, lint, and test
1717
run: |
1818
sudo chown -R testbot .
19-
sudo -u testbot bash -lc 'make build lint'
19+
sudo -u testbot bash -lc 'make build lint test'

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.test.ts

.prettierrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
2+
plugins: ['prettier-plugin-jsdoc'],
23
singleQuote: true,
34
};

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ clean-dist:
99
install:
1010
npm ci --audit=false
1111

12+
test:
13+
npm run test
14+
1215
lint: install
1316
npm run format
1417
npm run lint

0 commit comments

Comments
 (0)