@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.
Files changed (2) hide show
  1. package/dist/index.js +7 -5
  2. 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
- return [{
913
- name: "cuiqg/unplugin/auto-import",
914
- languageOptions: { globals: { ...config } }
915
- }];
916
- } else return [];
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuiqg/eslint-config",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "ESLint config preset for @cuiqg",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",