Skip to content

Commit b7b3444

Browse files
authored
Merge pull request #55 from octet-stream/esm
2 parents 3e8109a + 50586bd commit b7b3444

40 files changed

+1072
-1539
lines changed

.c8rc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"include": ["lib/**/**.ts"],
3-
"exclude": ["lib/__helper__", "lib/**/*.test.ts"]
2+
"include": ["src/**/*.ts"],
3+
"exclude": ["src/__helper__", "src/**/*.test.ts"]
44
}

.eslintrc.json

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,34 @@
11
{
22
"root": true,
3-
"parser": "@typescript-eslint/parser",
43
"parserOptions": {
54
"project": "./tsconfig.eslint.json"
65
},
7-
"env": {
8-
"browser": true,
9-
"node": true
10-
},
116
"plugins": [
12-
"@typescript-eslint",
137
"ava"
148
],
159
"extends": [
16-
"airbnb-typescript",
17-
"@octetstream",
18-
"plugin:ava/recommended"
10+
"plugin:ava/recommended",
11+
"@octetstream/eslint-config/esm/typescript"
1912
],
2013
"settings": {
2114
"import/resolver": {
2215
"typescript": {}
2316
}
2417
},
2518
"rules": {
26-
"no-void": 0,
27-
"func-names": 0,
28-
"no-shadow": 0,
2919
"no-use-before-define": 0,
30-
"max-len": [
31-
"error",
32-
{
33-
"code": 80,
34-
"ignoreComments": true
35-
}
36-
],
3720
"import/no-unresolved": [
3821
"error",
3922
{
4023
"ignore": [
41-
"dinky.js"
24+
"formdata-node"
4225
]
4326
}
4427
],
4528

46-
"no-plusplus": 0,
47-
4829
// These two rules are false-positive and have no solution for TS
4930
"no-redeclare": 0,
5031
"no-dupe-class-members": 0,
51-
"lines-between-class-members": 0,
52-
53-
"@typescript-eslint/semi": 0,
54-
"@typescript-eslint/no-shadow": 0,
55-
"@typescript-eslint/quotes": [
56-
"error",
57-
"double"
58-
],
59-
"@typescript-eslint/object-curly-spacing": [
60-
"error",
61-
"never"
62-
],
63-
"@typescript-eslint/comma-dangle": 0
32+
"lines-between-class-members": 0
6433
}
6534
}

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ jobs:
5050
node-version: ${{ matrix.node }}
5151

5252
- name: Setup pnpm
53-
uses: pnpm/action-setup@v2.0.1
53+
uses: pnpm/action-setup@v2
5454
with:
5555
version: 6.2.1
5656
run_install: true
5757

5858
- run: pnpm run ci
5959

6060
- name: Upload codecov report
61-
uses: codecov/codecov-action@v1
61+
uses: codecov/codecov-action@v3
6262
if: matrix.node == '16.x' && matrix.os == 'ubuntu-latest'
6363
with:
6464
file: ./coverage/coverage-final.json

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ coverage
1212
*.old
1313
@type
1414

15-
/lib/**/*.js
15+
/lib

.npmignore

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,13 @@ pnpm-lock.yaml
1616
/.editorconfig
1717
/.eslintrc.json
1818
/.lintstagedrc
19-
/ava.config.cjs
19+
/ava.config.js
2020
/yarn.lock
2121
/test.mjs
2222
/tsconfig.json
23-
/tsconfig.esm.json
24-
/tsconfig.cjs.json
2523
/tsconfig.eslint.json
2624
/tsconfig.d.ts.json
2725
/tsconfig.ava.json
28-
/lib/**/*.ts
26+
/src/**/*.ts
2927

30-
!/lib/node-domexception.d.ts
28+
!/src/node-domexception.d.ts

ava.config.cjs

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

ava.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
extensions: {
3+
ts: "module"
4+
},
5+
nodeArguments: [
6+
"--loader=ts-node/esm/transpile-only"
7+
],
8+
files: [
9+
"src/**/*.test.ts"
10+
]
11+
}

lib/__helper__/sleep.ts

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

lib/cjs/package.json

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

lib/deprecateConstructorEntries.ts

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

0 commit comments

Comments
 (0)