Skip to content

Commit 78ddc17

Browse files
committed
wip
1 parent 7989674 commit 78ddc17

13 files changed

+4306
-1158
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

.eslintrc.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
module.exports = {
2+
root: true,
3+
extends: [
4+
'plugin:@typescript-eslint/recommended',
5+
'prettier',
6+
'plugin:prettier/recommended',
7+
],
8+
parserOptions: {
9+
ecmaVersion: 2020,
10+
sourceType: 'module',
11+
},
12+
rules: {
13+
complexity: 'off',
14+
'sort-keys': 'off',
15+
'no-tabs': 'error',
16+
'no-nested-ternary': 'off',
17+
'no-plusplus': 'off',
18+
'unicorn/expiring-todo-comments': 'off',
19+
'import/no-default-export': 'off',
20+
'@typescript-eslint/no-parameter-properties': 'off',
21+
'@typescript-eslint/no-use-before-define': 'off',
22+
'no-underscore-dangle': 'off',
23+
'node/no-unsupported-features/es-builtins': 'off',
24+
'unicorn/prefer-spread': 'off',
25+
},
26+
ignorePatterns: ['*.mjs', '*.cjs'],
27+
}

.github/workflows/tests.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: tests
2+
on: [push, pull_request]
3+
jobs:
4+
test:
5+
name: Test on node ${{ matrix.node }}
6+
if: github.actor != 'github-actions[bot]'
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node: [20, 21, 22, 23, 24]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: ${{ matrix.node }}
16+
cache: 'npm'
17+
- name: Install dependencies and test
18+
run: |
19+
npm install --immutable
20+
npm run build
21+
npm test

.gitignore

-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
.vscode
2-
.eslintignore
3-
.eslintrc.js
4-
.prettierignore
52
.editorconfig
6-
tsconfig.json
73
babel.config.js
8-
jest.config.js
9-
prettier.config.js
104
vite.config.ts
115
webpack.config.js
126
*.tsbuildinfo

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/
2+
dist/

dist/bundle.cjs.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.esm.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bundle.umd.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/simple.js

Whitespace-only changes.

jest.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('ts-jest').JestConfigWithTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
}

0 commit comments

Comments
 (0)