eslint-plugin-use-agnostic 2.0.5 → 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.
- package/library/index.js +16 -2
- package/package.json +1 -1
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 = [
|
|
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,
|