eslint-plugin-use-agnostic 1.6.5 → 1.6.7
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/README.md
CHANGED
|
@@ -115,7 +115,7 @@ const effectiveDirectives_effectiveModules = Object.freeze({
|
|
|
115
115
|
[USE_AGNOSTIC_COMPONENTS]: AGNOSTIC_COMPONENTS_MODULE,
|
|
116
116
|
});
|
|
117
117
|
// and directive21
|
|
118
|
-
const commentedDirectives_commentedModules = Object.freeze({
|
|
118
|
+
export const commentedDirectives_commentedModules = Object.freeze({
|
|
119
119
|
[USE_CLIENT_CONTEXTS]: CLIENT_CONTEXTS_MODULE,
|
|
120
120
|
[USE_AGNOSTIC_CONDITIONS]: AGNOSTIC_CONDITIONS_MODULE,
|
|
121
121
|
[USE_AGNOSTIC_STRATEGIES]: AGNOSTIC_STRATEGIES_MODULE,
|
|
@@ -136,7 +136,7 @@ const importedFileFlow = (context, node) => {
|
|
|
136
136
|
// returns early if there is no directive or no valid directive (same, but eventually no directive could have defaults)
|
|
137
137
|
if (!importedFileCommentedDirective) {
|
|
138
138
|
console.warn(
|
|
139
|
-
|
|
139
|
+
`WARNING. The imported file ${resolvedImportPath}, whose path has been resolved from ${context.filename}, has no commented directive. It is thus ignored since the report on that circumstance would be available on the imported file itself.`
|
|
140
140
|
); // The decision not to report has been taken to not inflate the number of warnings.
|
|
141
141
|
return skipTrue;
|
|
142
142
|
}
|
package/library/index.js
CHANGED
|
@@ -48,7 +48,10 @@ export {
|
|
|
48
48
|
|
|
49
49
|
// NEW: eslint-plugin-use-agnostic is effectively the premier implementation of the Directive-First Architecture. As such, the following imports are to access its constants and utilities across other implementations of the Directive-First Architecture, such as eXtra JSX.
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export {
|
|
52
|
+
EXTENSIONS,
|
|
53
|
+
commentedDirectives_commentedModules,
|
|
54
|
+
} from "./_commons/constants/bases.js";
|
|
52
55
|
|
|
53
56
|
// agnostic20
|
|
54
57
|
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -34,6 +34,19 @@ export const EXTENSIONS: readonly [
|
|
|
34
34
|
".cjs"
|
|
35
35
|
];
|
|
36
36
|
|
|
37
|
+
export const commentedDirectives_commentedModules: Readonly<{
|
|
38
|
+
"use server logics": "Server Logics Module";
|
|
39
|
+
"use client logics": "Client Logics Module";
|
|
40
|
+
"use agnostic logics": "Agnostic Logics Module";
|
|
41
|
+
"use server components": "Server Components Module";
|
|
42
|
+
"use client components": "Client Components Module";
|
|
43
|
+
"use agnostic components": "Agnostic Components Module";
|
|
44
|
+
"use server functions": "Server Functions Module";
|
|
45
|
+
"use client contexts": "Client Contexts Module";
|
|
46
|
+
"use agnostic conditions": "Agnostic Conditions Module";
|
|
47
|
+
"use agnostic strategies": "Agnostic Strategies Module";
|
|
48
|
+
}>;
|
|
49
|
+
|
|
37
50
|
// agnostic20
|
|
38
51
|
|
|
39
52
|
// directives
|