Skip to content

Commit

Permalink
build: add rule that enforces named exports over default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Oct 26, 2022
1 parent e404bf1 commit 0af6502
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 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/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 0af6502

Please sign in to comment.