Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
erickzhao committed Nov 1, 2023
1 parent 3ac2db0 commit 2f904c6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion advanced/auto-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Setting up Auto Updates in your app with Electron Forge is mostly the same proce

## Open source apps: update.electronjs.org

Open source apps hosted on GitHub can use a free auto update service from the Electron team, [update.electronjs.org](auto-update.md#update.electronjs.org). To use this module with Forge, set up the [GitHub Publisher](../config/publishers/github.md) and add the [`update-electron-app`](https://github.com/electron/update-electron-app) module to your app.
Open source apps hosted on GitHub can use a free auto update service from the Electron team, [update.electronjs.org](auto-update.md#open-source-apps-update.electronjs.org). To use this module with Forge, set up the [GitHub Publisher](../config/publishers/github.md) and add the [`update-electron-app`](https://github.com/electron/update-electron-app) module to your app.

This setup is going to be around 2 lines of code and a few lines of configuration. It is by far the easiest way to set up auto updates if you're an open source app.

Expand Down
28 changes: 14 additions & 14 deletions config/plugins/fuses.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,22 @@ You can use the `FusesPlugin` constructor just like the `flipFuses` function fro
{% tabs %}
{% tab title="forge.config.js" %}
```js
const { FusesPlugin } = require('@electron-forge/plugin-fuses')
const { FuseV1Options, FuseVersion } = require('@electron/fuses')
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');

const forgeConfig = {
// ...
plugins: [
new FusesPlugin({
version: FuseVersion.V1,
[FuseV1Options.RunAsNode]: false,
[FuseV1Options.RunAsNode]: false
// ...any other options supported by @electron/fuses
}),
],
})
]
// ...
}
};

module.exports = forgeConfig
module.exports = forgeConfig;
```

{% endtab %}
Expand All @@ -67,22 +67,22 @@ The example above assumes you're using `@electron/fuses` v1.x, which is the late
{% tabs %}
{% tab title="forge.config.js" %}
```js
const { FusesPlugin } = require('@electron-forge/plugin-fuses')
const { FuseV2Options, FuseVersion } = require('@electron/fuses')
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV2Options, FuseVersion } = require('@electron/fuses');

const forgeConfig = {
// ...
plugins: [
new FusesPlugin({
version: FuseVersion.V2,
[FuseV2Options.SomeV2OnlyFuse]: false,
[FuseV2Options.SomeV2OnlyFuse]: false
// ...any other options supported by @electron/fuses
}),
],
})
]
// ...
}
};

module.exports = forgeConfig
module.exports = forgeConfig;
```

{% endtab %}
Expand Down
12 changes: 6 additions & 6 deletions config/publishers/s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
}
}
]
}
};
```
{% endcode %}

Expand Down Expand Up @@ -78,15 +78,15 @@ module.exports = {
// Note that we must provide this S3 URL here
// in order to support smooth version transitions
// especially when using a CDN to front your updates
macUpdateManifestBaseUrl: 'https://my-bucket.s3.amazonaws.com/my-app-updates/darwin/${arch}/RELEASES.json'
macUpdateManifestBaseUrl: `https://my-bucket.s3.amazonaws.com/my-app-updates/darwin/${arch}/RELEASES.json`
})
},
{
name: '@electron-forge/maker-squirrel',
config: (arch) => ({
// Note that we must provide this S3 URL here
// in order to generate delta updates
remoteReleases: `https://my-bucket.s3.amazonaws.com/my-app-updates/win32/${arch}`,
remoteReleases: `https://my-bucket.s3.amazonaws.com/my-app-updates/win32/${arch}`
})
}
],
Expand All @@ -95,11 +95,11 @@ module.exports = {
name: '@electron-forge/publisher-s3',
config: {
bucket: 'my-bucket',
public: true,
public: true
}
}
]
}
};
```
{% endcode %}

Expand All @@ -112,7 +112,7 @@ const { updateElectronApp, UpdateSourceType } = require('update-electron-app');
updateElectronApp({
updateSource: {
type: UpdateSourceType.StaticStorage,
baseUrl: `https://my-bucket.s3.amazonaws.com/my-app-updates/${process.platform}/${process.arch}`,
baseUrl: `https://my-bucket.s3.amazonaws.com/my-app-updates/${process.platform}/${process.arch}`
}
});
```
Expand Down
12 changes: 6 additions & 6 deletions guides/framework-integration/vue-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@ console.log('👋 This message is being logged by "App.vue", included via Vite')
Mount `App.vue` into the DOM with Vue's `createApp` API.

```javascript
import { createApp } from "vue";
import App from "./App.vue";
import { createApp } from 'vue';
import App from './App.vue';

createApp(App).mount("#app");
createApp(App).mount('#app');
```

{% endtab %}
Expand All @@ -118,12 +118,12 @@ createApp(App).mount("#app");
Configure the Vue plugin for Vite.js.

```javascript
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';

// https://vitejs.dev/config
export default defineConfig({
plugins: [vue()],
plugins: [vue()]
});
```

Expand Down

0 comments on commit 2f904c6

Please sign in to comment.