eslint-plugin-use-agnostic 1.6.6 → 1.6.8

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
@@ -9,7 +9,7 @@ _(Now powered by Comment Variables.)_
9
9
  ## Installation
10
10
 
11
11
  ```
12
- npm install eslint@^9.0.0 eslint-plugin-use-agnostic@latest --save-dev
12
+ npm install eslint@^9 eslint-plugin-use-agnostic@latest --save-dev
13
13
  ```
14
14
 
15
15
  ## Setup
@@ -135,9 +135,11 @@ const importedFileFlow = (context, node) => {
135
135
 
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
- console.warn(
139
- "WARNING. The imported file, whose path has been resolved, has no directive. It is thus ignored since the report on that circumstance is available on the imported file itself."
140
- ); // The decision not to report has been taken to not inflate the number of warnings.
138
+ // Now silencing the warning as superfluous, in order to not warn on imports of files without a commented directive that are outside of linting range.
139
+
140
+ // console.warn(
141
+ // `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.`
142
+ // ); // The decision not to report has been taken to not inflate the number of warnings.
141
143
  return skipTrue;
142
144
  }
143
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "Highlights problematic server-client imports in projects made with the Fullstack React Architecture.",
5
5
  "keywords": [
6
6
  "eslint",