style: enforce disallowance of object constructor (#33211)
Applying the `prefer-literal` tslint rule to object enforces the style guide rule https://google.github.io/styleguide/jsguide.html#features-objects-ctor PR Close #33211
This commit is contained in:

committed by
Miško Hevery

parent
354f66b904
commit
db4789bf91
@ -114,7 +114,7 @@ import {SpyChangeDetectorRef} from '../spies';
|
||||
});
|
||||
|
||||
describe('Promise', () => {
|
||||
const message = new Object();
|
||||
const message = {};
|
||||
let pipe: AsyncPipe;
|
||||
let resolve: (result: any) => void;
|
||||
let reject: (error: any) => void;
|
||||
|
Reference in New Issue
Block a user