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 +2 -0
- package/package.json +1 -1
- package/types/index.d.ts +18 -0
package/library/index.js
CHANGED
package/package.json
CHANGED
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
|