Skip to content

Commit

Permalink
build: add rule that enforces named exports over default exports (#3000)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Oct 26, 2022
1 parent 23f56d0 commit 8fa40d4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"allowSeparatedGroups": true,
"ignoreCase": true
}
]
],
"import/no-named-as-default": "error"
},
"overrides": [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/api/core/src/api/publish.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';

import { asyncOra } from '@electron-forge/async-ora';
import PublisherBase from '@electron-forge/publisher-base';
import { PublisherBase } from '@electron-forge/publisher-base';
import {
ForgeConfigPublisher,
ForgeMakeResult,
Expand Down
2 changes: 1 addition & 1 deletion packages/api/core/src/util/plugin-interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PluginBase from '@electron-forge/plugin-base';
import { PluginBase } from '@electron-forge/plugin-base';
import { IForgePlugin, IForgePluginInterface, ResolvedForgeConfig, StartResult } from '@electron-forge/shared-types';
import debug from 'debug';

Expand Down
2 changes: 1 addition & 1 deletion packages/maker/base/test/config-fetcher_spec.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/webpack/test/WebpackPlugin_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 8fa40d4

Please sign in to comment.