eslint-plugin-use-agnostic 1.7.4 → 1.7.5

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.
package/library/index.js CHANGED
@@ -53,6 +53,8 @@ export {
53
53
  commentedDirectives_commentedModules,
54
54
  } from "./_commons/constants/bases.js";
55
55
 
56
+ export { highlightFirstLineOfCode } from "./_commons/utilities/helpers.js";
57
+
56
58
  // agnostic20
57
59
 
58
60
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
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
@@ -45,6 +45,24 @@ export const commentedDirectives_commentedModules: Readonly<{
45
45
  "use agnostic strategies": "Agnostic Strategies Module";
46
46
  }>;
47
47
 
48
+ /**
49
+ * Gets the coordinates for the first line of code of a file.
50
+ * @param context An ESLint rule's `context` object.
51
+ * @returns The `context.report` `loc`-compatible coordinates for the first line of code of a file.
52
+ */
53
+ export const highlightFirstLineOfCode: (
54
+ context: RuleContext<string, readonly unknown[]>
55
+ ) => {
56
+ start: {
57
+ line: number;
58
+ column: number;
59
+ };
60
+ end: {
61
+ line: number;
62
+ column: number;
63
+ };
64
+ };
65
+
48
66
  // agnostic20
49
67
 
50
68
  // directives