eslint-plugin-use-agnostic 1.7.1 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,3 +4,5 @@ import { resolvedConfigData } from "../../../comments.config.mjs";
|
|
|
4
4
|
|
|
5
5
|
/** @type {ResolvedConfigData} `resolvedConfigData` can be imported as is but I've noticed that for some reason the type-safety is more advanced when it is re-typed and re-exported, here as `commentVariablesData`. */
|
|
6
6
|
export const commentVariablesData = resolvedConfigData;
|
|
7
|
+
|
|
8
|
+
export const directive21Data = commentVariablesData.directive21;
|
package/library/index.js
CHANGED
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -16,8 +16,6 @@ export const directive21ConfigName: "directive21";
|
|
|
16
16
|
export const enforceEffectiveDirectivesRuleName: "enforce-effective-directives-import-rules";
|
|
17
17
|
export const enforceCommentedDirectivesRuleName: "enforce-commented-directives-import-rules";
|
|
18
18
|
|
|
19
|
-
// NEW
|
|
20
|
-
|
|
21
19
|
// JavaScript/TypeScript extensions array
|
|
22
20
|
export const EXTENSIONS: readonly [
|
|
23
21
|
".tsx",
|
|
@@ -328,6 +326,9 @@ export const commentedDirectives_reactDirectives: Readonly<{
|
|
|
328
326
|
[USE_AGNOSTIC_STRATEGIES]: null;
|
|
329
327
|
}>;
|
|
330
328
|
|
|
329
|
+
/** Typing currently unavailable. To be used by chaining `.importingCommentedDirective` `.importedCommentedDirective` `.value` to obtain the reason why a module import is or isn't allowed. */
|
|
330
|
+
export const directive21Data: object;
|
|
331
|
+
|
|
331
332
|
/**
|
|
332
333
|
* Gets the commented directive of a module from its ESLint `SourceCode` object.
|
|
333
334
|
*
|