Open ajafff opened 6 years ago
type-assertion
:
foo
bar() as void
// fixed to
foo
<void>bar()
// which is parsed as
(foo < void) > bar()
prefer-dot-notation
:
foo
1['toString']();
// fixed to
foo
(1).toString();
// parsed as
foo(1).toString();
no-useless-strict
:
'foo'
'use strict';
[1].toString()
// fixed to
'foo'
[1].toString()
// parsed as
'foo'[1].toString()
Though this case should be pretty rare in real world code.
no-debugger
:await-only-promise
:no-unused-label
:prefer-object-spread
: