diff --git a/.eslintrc.json b/.eslintrc.json index 1eac58badf..39a02aebee 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -36,7 +36,8 @@ "allowSeparatedGroups": true, "ignoreCase": true } - ] + ], + "import/no-named-as-default": "error" }, "overrides": [ { diff --git a/packages/maker/base/test/config-fetcher_spec.ts b/packages/maker/base/test/config-fetcher_spec.ts index 20d65ff100..3487b1c8e7 100644 --- a/packages/maker/base/test/config-fetcher_spec.ts +++ b/packages/maker/base/test/config-fetcher_spec.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { stub } from 'sinon'; -import MakerBase from '../src/Maker'; +import { MakerBase } from '../src/Maker'; class MakerImpl extends MakerBase<{ a: number }> { name = 'test'; diff --git a/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts b/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts index 5ecd087584..09dd904e0e 100644 --- a/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts +++ b/packages/plugin/local-electron/test/LocalElectronPlugin_spec.ts @@ -5,7 +5,7 @@ import { ResolvedForgeConfig } from '@electron-forge/shared-types'; import { expect } from 'chai'; import fs from 'fs-extra'; -import LocalElectronPlugin from '../src/LocalElectronPlugin'; +import { LocalElectronPlugin } from '../src/LocalElectronPlugin'; describe('LocalElectronPlugin', () => { describe('start logic', () => { diff --git a/packages/plugin/webpack/test/WebpackPlugin_spec.ts b/packages/plugin/webpack/test/WebpackPlugin_spec.ts index 4d6080190d..acfefbacb4 100644 --- a/packages/plugin/webpack/test/WebpackPlugin_spec.ts +++ b/packages/plugin/webpack/test/WebpackPlugin_spec.ts @@ -7,7 +7,7 @@ import { IgnoreFunction } from 'electron-packager'; import * as fs from 'fs-extra'; import { WebpackPluginConfig } from '../src/Config'; -import WebpackPlugin from '../src/WebpackPlugin'; +import { WebpackPlugin } from '../src/WebpackPlugin'; describe('WebpackPlugin', () => { const baseConfig: WebpackPluginConfig = {