eslint-plugin-use-agnostic 1.7.1 → 1.7.2

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
@@ -130,3 +130,5 @@ export {
130
130
  getStrategizedDirective,
131
131
  isImportBlocked as isImportBlockedDirective21,
132
132
  } from "./directive21/_commons/utilities/helpers.js";
133
+
134
+ export { directive21Data } from "../jscomments/_commons/constants/data.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Highlights problematic server-client imports in projects made with the Fullstack React Architecture.",
5
5
  "keywords": [
6
6
  "eslint",
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 to obtained the reason why a module import is or not 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
  *