Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

6 changes: 4 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ module.exports = {
'eslint:recommended',
'oclif',
'oclif-typescript',
'plugin:prettier/recommended', // needs to be last
'plugin:prettier/recommended' // needs to be last
],
plugins: ['@typescript-eslint'],
/* First exclude everything, then re-include /src, then exclude tests */
ignorePatterns: ['/*', '!/src', '*.test.ts'],
rules: {
'no-unused-vars': ['error', { vars: 'all', args: 'none' }],
// The base rule reports TS enums and types as unused
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { vars: 'all', args: 'none' }],
'@typescript-eslint/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-floating-promises': 'off',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm publish --access public
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Unit tests

on:
push:
branches: [main, master, next]
pull_request:
workflow_dispatch:

jobs:
run-tests:
name: Run unit tests
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Check out repo
uses: actions/checkout@v6

- name: Set up node
uses: actions/setup-node@v6
with:
node-version: 24

- run: npm ci
- run: npm run build

# Runs mocha, then lint via posttest
- name: Run tests
run: npm test
2 changes: 1 addition & 1 deletion .github/workflows/version-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: lts/*
- run: echo "Updating ${{ inputs.segment }} version"
- run: npm ci
- name: Update version
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
*-debug.log
*-error.log
/.idea
/.nyc_output
/dist
/lib
/package-lock.json
/tmp
/yarn.lock
node_modules
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Commands section is generated by `oclif readme`
README.md
3 changes: 0 additions & 3 deletions bin/dev.cmd

This file was deleted.

6 changes: 0 additions & 6 deletions bin/dev.js

This file was deleted.

6 changes: 3 additions & 3 deletions bin/run.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({dir: import.meta.url})
})()
const oclif = await import('@oclif/core');
await oclif.execute({ dir: import.meta.url });
})();
184 changes: 1 addition & 183 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading