Skip to content

Commit 5619b57

Browse files
cmdcolinclaude
andcommitted
disable no-non-null-assertion rule
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f707996 commit 5619b57

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export default defineConfig(
6363
{ 'ts-expect-error': 'allow-with-description', 'ts-ignore': true },
6464
],
6565
'@typescript-eslint/no-explicit-any': 'error',
66+
'@typescript-eslint/no-non-null-assertion': 'off',
6667
'@typescript-eslint/restrict-template-expressions': 'off',
6768
'@typescript-eslint/prefer-for-of': 'off',
6869

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@
3131
"esm",
3232
"src"
3333
],
34-
"engines": {
35-
"node": ">=6"
36-
},
3734
"scripts": {
3835
"test": "vitest",
3936
"benchonly": "vitest bench",
@@ -44,7 +41,7 @@
4441
"postdocs": "prettier --write README.md",
4542
"clean": "rimraf dist esm",
4643
"build:esm": "tsc --target es2020 --outDir esm",
47-
"build:es5": "tsc --target es2020 --module commonjs --outDir dist",
44+
"build:es5": "tsc --target es2020 --module commonjs --moduleResolution bundler --outDir dist",
4845
"build": "pnpm build:esm && pnpm build:es5",
4946
"prebuild": "pnpm clean",
5047
"postbuild:es5": "echo '{\"type\": \"commonjs\"}' > dist/package.json",

0 commit comments

Comments
 (0)