build: add rule that enforces named exports over default exports (#3000)
This commit is contained in:
Родитель
23f56d08b6
Коммит
8fa40d4a1e
|
@ -36,7 +36,8 @@
|
|||
"allowSeparatedGroups": true,
|
||||
"ignoreCase": true
|
||||
}
|
||||
]
|
||||
],
|
||||
"import/no-named-as-default": "error"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче