eslint-plugin-use-agnostic 2.0.4 → 2.0.6

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.
@@ -88,6 +88,8 @@ In this context, {{ ${specificFailure} }} `,
88
88
  const rootPath = /** @type {string | undefined} */ (
89
89
  context.settings.eXtraJSX?.rootPath
90
90
  );
91
+ console.debug("context.settings are:", context.settings);
92
+ console.debug("context.settings.eXtraJSX are:", context.settings.eXtraJSX);
91
93
  console.debug("reactFolder is:", reactFolder);
92
94
  console.debug("rootPath is:", rootPath);
93
95
 
package/library/index.js CHANGED
@@ -205,10 +205,24 @@ export const defineDirective21 = (reactFolder) => {
205
205
  */
206
206
  export const defineConfigSettings = ({ reactFolder, rootPath }) => {
207
207
  /**
208
- * @type {["**\/*.js"]}
208
+ * @type {["**\/*.tsx", "**\/*.ts", "**\/*.mtsx", "**\/*.mts", "**\/*.ctsx", "**\/*.cts", "**\/*.jsx", "**\/*.js", "**\/*.mjsx", "**\/*.mjs", "**\/*.cjsx", "**\/*.cjs"]}
209
209
  * The dummy file paths used by the eXtra JSX VS Code extension are JavaScript file paths, therefore this glob pattern is enough to work in recognizing the dummy file paths in order to retrieve the settings.
210
+ * Now that the settings are actually used in eslint-plugin-use-agnostic, they need to cover all JS/TS/JSX/TSX files.
210
211
  */
211
- const files = ["**/*.js"];
212
+ const files = [
213
+ "**/*.tsx",
214
+ "**/*.ts",
215
+ "**/*.mtsx",
216
+ "**/*.mts",
217
+ "**/*.ctsx",
218
+ "**/*.cts",
219
+ "**/*.jsx",
220
+ "**/*.js",
221
+ "**/*.mjsx",
222
+ "**/*.mjs",
223
+ "**/*.cjsx",
224
+ "**/*.cjs",
225
+ ];
212
226
 
213
227
  return {
214
228
  files,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-use-agnostic",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
4
4
  "description": "Highlights problematic server-client imports in projects made with the Fullstack React Architecture.",
5
5
  "keywords": [
6
6
  "eslint",