Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to TSDOC #48

Merged
merged 9 commits into from
Feb 18, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/nodejs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push]

jobs:

build:
types:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -17,8 +17,8 @@ jobs:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: npm ci
- name: build
run: npm run build
- name: types
run: npm run types

lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
- name: install dependencies
run: npm ci
- name: old node tests
run: npx ts-node src/spec/old-node-tests.uvu.ts
run: node src/spec/old-node-tests.uvu.js

coveralls:
runs-on: ubuntu-latest
Expand Down
20 changes: 5 additions & 15 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
const eslint = require('@eslint/js');
const tseslint = require('typescript-eslint');
const prettierPlugin = require('eslint-plugin-prettier/recommended');

module.exports = tseslint.config(
module.exports = [
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierPlugin,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-expect-error': 'allow-with-description',
'ts-ignore': true,
'ts-nocheck': true,
'ts-check': false,
minimumDescriptionLength: 3,
},
],
'no-undef': 'off',
'no-constant-condition': 'off',
'prefer-const': 'error',
},
},
);
];
5 changes: 2 additions & 3 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
module.exports = {
roots: ['<rootDir>/src'],
preset: 'ts-jest',
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
},
collectCoverageFrom: ['./src/index.ts'],
collectCoverageFrom: ['./src/index.js'],
coverageThreshold: {
global: {
branches: 97,
branches: 92,
functions: 99,
lines: 99,
statements: 99,
Expand Down
Loading
Loading