Skip to content

Commit 4a8efd7

Browse files
committed
fix: import helpers via tslib
1 parent a753b31 commit 4a8efd7

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"prettier": "3.5.3",
5353
"read-pkg-up": "^7.0.1",
5454
"semver": "^7.7.1",
55+
"tslib": "^2.8.1",
5556
"typescript": "^5.8.2",
5657
"typescript-eslint": "^8.28.0"
5758
},

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.cts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { jsonConfig } from "./json.cjs"
44
import { yamlConfig } from "./yaml.cjs"
55
import { htmlConfig } from "./html.cjs"
66
// import { pluginImportSettings } from "./plugin-import-rules.cjs"
7-
import pluginOptmizeRegex from "eslint-plugin-optimize-regex"
7+
import pluginOptimizeRegex from "eslint-plugin-optimize-regex"
88
import semverMajor from "semver/functions/major"
99
import { getEslintVersion } from "./eslint-version.cjs"
1010
import { astroConfig } from "./astro.cjs"
@@ -30,7 +30,7 @@ function maybeAddCoffeeScript() {
3030

3131
const config: Linter.Config[] = [
3232
...jsConfig,
33-
pluginOptmizeRegex.configs.all,
33+
pluginOptimizeRegex.configs.all,
3434
...tsConfigs,
3535
jsonConfig,
3636
yamlConfig,

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// target
44
"target": "ES2022",
55
"lib": ["ES2022"],
6-
"importHelpers": false,
6+
"importHelpers": true,
77
"module": "NodeNext",
88
"moduleResolution": "NodeNext",
99
"allowJs": true,

0 commit comments

Comments
 (0)