chore: cleanup eslint suppressions (#38417)
* chore: cleanup eslint suppressions * address feedback * revert script/lib/azput.js * revert spec/fixtures/apps/remote-control/main.js * address feedback * revert typings/internal-ambient.d.ts
This commit is contained in:
parent
1c075e5ea0
commit
82af000a37
34 changed files with 76 additions and 115 deletions
|
@ -84,7 +84,6 @@ describe('BrowserWindow module', () => {
|
|||
it('window does not get garbage collected when opened', async () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
// Keep a weak reference to the window.
|
||||
// eslint-disable-next-line no-undef
|
||||
const wr = new WeakRef(w);
|
||||
await setTimeout();
|
||||
// Do garbage collection, since |w| is not referenced in this closure
|
||||
|
@ -3158,15 +3157,15 @@ describe('BrowserWindow module', () => {
|
|||
afterEach(closeAllWindows);
|
||||
it('can be set on a window', () => {
|
||||
expect(() => {
|
||||
/* eslint-disable no-new */
|
||||
/* eslint-disable-next-line no-new */
|
||||
new BrowserWindow({
|
||||
tabbingIdentifier: 'group1'
|
||||
});
|
||||
/* eslint-disable-next-line no-new */
|
||||
new BrowserWindow({
|
||||
tabbingIdentifier: 'group2',
|
||||
frame: false
|
||||
});
|
||||
/* eslint-enable no-new */
|
||||
}).not.to.throw();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue