Skip to content

Commit 3473ac4

Browse files
committed
refactor: make sheriff rexport runtime
Might as well if we're going to depend on it anyway. See: AndreaPontrandolfo/sheriff#400 (comment)
1 parent 4a68842 commit 3473ac4

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

patches/eslint-config-sheriff.patch

Lines changed: 11 additions & 2 deletions
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..30e8597ec56cebb7a2dd7926d9cb18e248fec1b0 100644
2+
index 2b83747e0517c5883b6cadc86a6bf3b78d5abfae..c5a0f0fe6e47899f9a30e500df4ab844e241a9e5 100644
33
--- a/dist/index.js
44
+++ b/dist/index.js
55
@@ -16,7 +16,8 @@ var tsExtensions = "ts,mts,cts";
@@ -12,11 +12,20 @@ index 2b83747e0517c5883b6cadc86a6bf3b78d5abfae..30e8597ec56cebb7a2dd7926d9cb18e2
1212
var testsFilePatterns = [
1313
`**/*.{test,spec}.{${allJsExtensions}}`,
1414
`**/tests/**/*.{${allJsExtensions}}`,
15-
@@ -1192,7 +1193,6 @@ var getExportableConfig = (userConfigChoices = sheriffStartingOptions, areAllRul
15+
@@ -1192,7 +1193,7 @@ var getExportableConfig = (userConfigChoices = sheriffStartingOptions, areAllRul
1616
};
1717

1818
// src/index.ts
1919
-import {} from "@typescript-eslint/utils";
20+
+import { TSESLint } from "@typescript-eslint/utils";
2021
import { default as default2 } from "typescript-eslint";
2122
var exportableAllJsExtensions = allJsExtensions;
2223
var exportableAllJsxExtensions = allJsxExtensions;
24+
@@ -1201,6 +1202,7 @@ var exportableSheriffStartingOptions = sheriffStartingOptions;
25+
var exportableSupportedFileTypes = supportedFileTypes;
26+
var exportableTestsFilePatterns = testsFilePatterns;
27+
export {
28+
+ TSESLint,
29+
exportableAllJsExtensions as allJsExtensions,
30+
exportableAllJsxExtensions as allJsxExtensions,
31+
getExportableConfig as default,

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)