@mycadet/cli 0.13.0-dev.202611121243.82bf60e → 0.13.0-dev.202611131045.a556a8a
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/node_modules/@mycadet/assistant-api/node_modules/@mycadet/service-contracts/package.json +1 -1
- package/node_modules/@mycadet/avatar-manifest/package.json +1 -1
- package/node_modules/@mycadet/environments/package.json +1 -1
- package/node_modules/@mycadet/ipc-server-utils/package.json +1 -1
- package/node_modules/@mycadet/local-mode/node_modules/@mycadet/avatar-manifest/package.json +1 -1
- package/node_modules/@mycadet/local-mode/node_modules/@mycadet/environments/package.json +1 -1
- package/node_modules/@mycadet/local-mode/node_modules/@mycadet/ipc-server-utils/package.json +1 -1
- package/node_modules/@mycadet/local-mode/node_modules/@mycadet/service-contracts/package.json +1 -1
- package/node_modules/@mycadet/local-mode/node_modules/@mycadet/shared/eslint/no-empty-imports.mjs +1 -7
- package/node_modules/@mycadet/local-mode/node_modules/@mycadet/shared/package.json +1 -1
- package/node_modules/@mycadet/local-mode/package.json +1 -1
- package/node_modules/@mycadet/service-contracts/package.json +1 -1
- package/node_modules/@mycadet/shared/eslint/no-empty-imports.mjs +1 -7
- package/node_modules/@mycadet/shared/package.json +1 -1
- package/package.json +1 -1
package/node_modules/@mycadet/local-mode/node_modules/@mycadet/shared/eslint/no-empty-imports.mjs
CHANGED
|
@@ -28,13 +28,7 @@
|
|
|
28
28
|
* `ns`, and an unused namespace is `no-unused-vars`' territory.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Whether the import declaration's source text declares an empty named
|
|
33
|
-
* list. The AST gives `import {} from "y"` and `import "y"` the same shape
|
|
34
|
-
* (zero specifiers), so the braces only exist in the text.
|
|
35
|
-
* @param {import("eslint").SourceCode} sourceCode
|
|
36
|
-
* @param {import("estree").ImportDeclaration} node
|
|
37
|
-
*/
|
|
31
|
+
/** True for an empty named import list: the AST gives `import {} from "y"` and `import "y"` the same shape, so the braces only exist in the text. */
|
|
38
32
|
function hasEmptyNamedList(sourceCode, node) {
|
|
39
33
|
const text = sourceCode.getText(node);
|
|
40
34
|
return /^import\s*(?:type\s*)?\{/.test(text);
|
|
@@ -28,13 +28,7 @@
|
|
|
28
28
|
* `ns`, and an unused namespace is `no-unused-vars`' territory.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
|
-
/**
|
|
32
|
-
* Whether the import declaration's source text declares an empty named
|
|
33
|
-
* list. The AST gives `import {} from "y"` and `import "y"` the same shape
|
|
34
|
-
* (zero specifiers), so the braces only exist in the text.
|
|
35
|
-
* @param {import("eslint").SourceCode} sourceCode
|
|
36
|
-
* @param {import("estree").ImportDeclaration} node
|
|
37
|
-
*/
|
|
31
|
+
/** True for an empty named import list: the AST gives `import {} from "y"` and `import "y"` the same shape, so the braces only exist in the text. */
|
|
38
32
|
function hasEmptyNamedList(sourceCode, node) {
|
|
39
33
|
const text = sourceCode.getText(node);
|
|
40
34
|
return /^import\s*(?:type\s*)?\{/.test(text);
|