Skip to content

Commit 92b8e7d

Browse files
committed
in progress: v6
1 parent 35061ab commit 92b8e7d

19 files changed

Lines changed: 1771 additions & 116 deletions

.eslintrc.yml

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ extends:
66
plugins:
77
- node
88
- prettier
9+
env:
10+
es2022: true
911
rules:
1012
prettier/prettier: error
1113
block-scoped-var: error
@@ -27,28 +29,49 @@ rules:
2729
property: only
2830
overrides:
2931
- files:
30-
- "**/*.ts"
31-
- "**/*.tsx"
32+
- "**/**.ts"
33+
- "**/**.tsx"
3234
parser: "@typescript-eslint/parser"
35+
plugins:
36+
- "@typescript-eslint"
3337
extends:
3438
- plugin:@typescript-eslint/recommended
39+
- plugin:@typescript-eslint/recommended-requiring-type-checking
3540
rules:
3641
"@typescript-eslint/no-non-null-assertion": 'off'
37-
"@typescript-eslint/no-use-before-define": 'off'
38-
"@typescript-eslint/no-warning-comments": 'off'
39-
"@typescript-eslint/no-empty-function": 'off'
40-
"@typescript-eslint/no-var-requires": 'off'
41-
"@typescript-eslint/explicit-function-return-type": 'off'
42-
"@typescript-eslint/explicit-module-boundary-types": 'off'
43-
"@typescript-eslint/ban-types": 'off'
44-
"@typescript-eslint/camelcase": 'off'
42+
# "@typescript-eslint/no-use-before-define": 'off'
43+
# "@typescript-eslint/no-warning-comments": 'off'
44+
# "@typescript-eslint/no-empty-function": 'off'
45+
# "@typescript-eslint/no-var-requires": 'off'
46+
# "@typescript-eslint/explicit-function-return-type": 'off'
47+
# "@typescript-eslint/explicit-module-boundary-types": 'off'
48+
# "@typescript-eslint/ban-types": 'off'
49+
# "@typescript-eslint/camelcase": 'off'
50+
"@typescript-eslint/no-misused-promises": ["error", {"checksvoidReturn": false}]
4551
node/no-missing-import: 'off'
4652
node/no-empty-function: 'off'
4753
node/no-unsupported-features/es-syntax: 'off'
4854
node/no-missing-require: 'off'
4955
node/shebang: 'off'
50-
no-dupe-class-members: 'off'
51-
require-atomic-updates: 'off'
56+
node/no-unpublished-import:
57+
- error
58+
- convertPath:
59+
src/**/*.ts:
60+
- "^src/(.+?)\\.ts$"
61+
- "lib/$1.js"
62+
# no-dupe-class-members: 'off'
63+
# require-atomic-updates: 'off'
5264
parserOptions:
65+
project: './tsconfig.json'
5366
ecmaVersion: 2018
5467
sourceType: module
68+
- files:
69+
- "**/**.mjs"
70+
parser: "@babel/eslint-parser"
71+
parserOptions:
72+
requireConfigFile: false
73+
rules:
74+
node/shebang: off
75+
plugins:
76+
- node
77+
- prettier

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test

jest.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
};

0 commit comments

Comments
 (0)