@cuiqg/eslint-config 2.2.0 → 2.2.1
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/dist/index.js +7 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -897,6 +897,7 @@ const unocss = async () => {
|
|
|
897
897
|
*/
|
|
898
898
|
const unplugin = async () => {
|
|
899
899
|
const resolved = resolve(process.cwd(), `./.eslintrc-auto-import.json`);
|
|
900
|
+
let globals$1 = {};
|
|
900
901
|
if (fs.existsSync(resolved) && fs.statSync(resolved).isFile) {
|
|
901
902
|
const cwd = dirname(resolved);
|
|
902
903
|
const { config } = await loadConfig({
|
|
@@ -909,11 +910,12 @@ const unplugin = async () => {
|
|
|
909
910
|
}],
|
|
910
911
|
cwd
|
|
911
912
|
});
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
913
|
+
globals$1 = { ...config };
|
|
914
|
+
}
|
|
915
|
+
return [{
|
|
916
|
+
name: "cuiqg/unplugin/auto-import",
|
|
917
|
+
languageOptions: { globals: globals$1 }
|
|
918
|
+
}];
|
|
917
919
|
};
|
|
918
920
|
|
|
919
921
|
//#endregion
|