Skip to content

Commit 7d7d0ae

Browse files
committed
fix: patch sheriff to remove side-effect import
Work around AndreaPontrandolfo/sheriff#400.
1 parent 64774b8 commit 7d7d0ae

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

patches/eslint-config-sheriff.patch

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/dist/index.js b/dist/index.js
2-
index 2b83747e0517c5883b6cadc86a6bf3b78d5abfae..a24325a7c8e63d9b30299e81dd43d6d2ec024335 100644
2+
index 2b83747e0517c5883b6cadc86a6bf3b78d5abfae..30e8597ec56cebb7a2dd7926d9cb18e248fec1b0 100644
33
--- a/dist/index.js
44
+++ b/dist/index.js
55
@@ -16,7 +16,8 @@ var tsExtensions = "ts,mts,cts";
@@ -12,3 +12,11 @@ index 2b83747e0517c5883b6cadc86a6bf3b78d5abfae..a24325a7c8e63d9b30299e81dd43d6d2
1212
var testsFilePatterns = [
1313
`**/*.{test,spec}.{${allJsExtensions}}`,
1414
`**/tests/**/*.{${allJsExtensions}}`,
15+
@@ -1192,7 +1193,6 @@ var getExportableConfig = (userConfigChoices = sheriffStartingOptions, areAllRul
16+
};
17+
18+
// src/index.ts
19+
-import {} from "@typescript-eslint/utils";
20+
import { default as default2 } from "typescript-eslint";
21+
var exportableAllJsExtensions = allJsExtensions;
22+
var exportableAllJsxExtensions = allJsxExtensions;

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)