config: configure import/core-modules setting of the import eslint plugin to include 'electron'
This makes it possible to not have to ignore the 'import/no-extraneous-dependencies' rule every time electron is imported.
This commit is contained in:
parent
b2a4bb1b76
commit
f290cac744
@ -50,6 +50,9 @@
|
||||
"parserOptions": {
|
||||
"project": "./tsconfig.json"
|
||||
},
|
||||
"settings": {
|
||||
"import/core-modules": ["electron"]
|
||||
},
|
||||
"rules": {
|
||||
"no-console": "error",
|
||||
"no-magic-numbers": "off",
|
||||
|
@ -1,4 +1,3 @@
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { app, BrowserWindow } from 'electron';
|
||||
import BrowserWindowConstructorOptions = Electron.BrowserWindowConstructorOptions;
|
||||
import os from 'os';
|
||||
|
@ -1,4 +1,3 @@
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { ipcMain } from 'electron';
|
||||
import IpcMainEvent = Electron.IpcMainEvent;
|
||||
import { mainWindow } from '../../main';
|
||||
|
@ -1,4 +1,3 @@
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { session } from 'electron';
|
||||
import OnHeadersReceivedDetails = Electron.OnHeadersReceivedDetails;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user