Skip to content

Commit 15bd41b

Browse files
authored
Remove peekTransferrables (#4)
1 parent fb18623 commit 15bd41b

File tree

16 files changed

+2309
-2380
lines changed

16 files changed

+2309
-2380
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Use Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '20'
20+
cache: 'yarn'
21+
22+
- name: Install dependencies
23+
run: yarn
24+
25+
- name: Lint
26+
run: yarn lint
27+
28+
- name: Build
29+
run: yarn build
30+
31+
- name: Test
32+
run: yarn test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.eslintcache
12
node_modules/
23
coverage/
34
.nyc_output/

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
import eslint from '@eslint/js'
2+
import { defineConfig } from 'eslint/config'
3+
import importPlugin from 'eslint-plugin-import'
4+
import tseslint from 'typescript-eslint'
5+
6+
export default defineConfig(
7+
{
8+
ignores: [
9+
'webpack.config.js',
10+
'benchmarks/*',
11+
'dist/*',
12+
'esm_*/*',
13+
'profile-bam.js',
14+
'esm/*',
15+
'example/*',
16+
'eslint.config.mjs',
17+
'test/*',
18+
],
19+
},
20+
{
21+
languageOptions: {
22+
parserOptions: {
23+
project: ['./tsconfig.lint.json'],
24+
tsconfigRootDir: import.meta.dirname,
25+
},
26+
},
27+
},
28+
eslint.configs.recommended,
29+
...tseslint.configs.recommended,
30+
...tseslint.configs.stylisticTypeChecked,
31+
...tseslint.configs.strictTypeChecked,
32+
importPlugin.flatConfigs.recommended,
33+
{
34+
rules: {
35+
'no-empty': 'off',
36+
'no-console': [
37+
'warn',
38+
{
39+
allow: ['error', 'warn'],
40+
},
41+
],
42+
'no-underscore-dangle': 'off',
43+
curly: 'error',
44+
semi: ['error', 'never'],
45+
'spaced-comment': [
46+
'error',
47+
'always',
48+
{
49+
markers: ['/'],
50+
},
51+
],
52+
53+
'@typescript-eslint/ban-ts-comment': 'off',
54+
55+
'@typescript-eslint/no-unused-vars': [
56+
'warn',
57+
{
58+
argsIgnorePattern: '^_',
59+
ignoreRestSiblings: true,
60+
caughtErrors: 'none',
61+
},
62+
],
63+
64+
'import/extensions': ['error', 'ignorePackages'],
65+
'import/no-unresolved': 'off',
66+
'import/order': [
67+
'error',
68+
{
69+
named: true,
70+
'newlines-between': 'always',
71+
alphabetize: {
72+
order: 'asc',
73+
},
74+
groups: [
75+
'builtin',
76+
['external', 'internal'],
77+
['parent', 'sibling', 'index', 'object'],
78+
'type',
79+
],
80+
},
81+
],
82+
},
83+
},
84+
)

jest.config.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"concurrency"
1111
],
1212
"license": "MIT",
13-
"homepage": "https://github.com/cmdcolin/librpc-web",
13+
"homepage": "https://github.com/GMOD/librpc-web",
1414
"repository": {
1515
"type": "git",
16-
"url": "https://github.com/cmdcolin/librpc-web"
16+
"url": "https://github.com/GMOD/librpc-web"
1717
},
1818
"author": {
1919
"name": "Vladimir Bykov",
@@ -30,19 +30,22 @@
3030
"serialize-error": "^8.1.0"
3131
},
3232
"devDependencies": {
33-
"@types/jest": "^29.5.2",
34-
"jest": "^29.6.1",
35-
"rimraf": "^5.0.0",
36-
"ts-jest": "^29.1.1",
37-
"typescript": "^5.1.6"
33+
"eslint": "^9.39.1",
34+
"eslint-plugin-import": "^2.32.0",
35+
"prettier": "^3.7.3",
36+
"rimraf": "^6.1.2",
37+
"typescript": "^5.1.6",
38+
"typescript-eslint": "^8.48.0",
39+
"vitest": "^4.0.14"
3840
},
3941
"scripts": {
4042
"clean": "rimraf dist",
43+
"lint": "eslint --report-unused-disable-directives --max-warnings 0",
4144
"prebuild": "npm run clean",
4245
"build": "npm run build:esm && npm run build:cjs",
4346
"build:esm": "tsc --outDir esm",
4447
"build:cjs": "tsc --module commonjs --outDir dist",
45-
"test": "jest",
48+
"test": "vitest run",
4649
"preversion": "npm test && npm run build",
4750
"postversion": "git push --follow-tags"
4851
}

0 commit comments

Comments
 (0)