File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 33Calling a Promise static method with ` new ` is invalid, resulting in a
44` TypeError ` at runtime.
55
6+ :wrench : The ` --fix ` option on the command line can automatically fix the
7+ problems reported by this rule.
8+
69## Rule Details
710
811This rule is aimed at flagging instances where a Promise static method is called
Original file line number Diff line number Diff line change 22
33Enforce standard parameter names for Promise constructors
44
5- :wrench : The ` --fix ` option on the command line can automatically fix some of
6- the problems reported by this rule.
7-
85#### Valid
96
107``` js
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ module.exports = {
66 meta : {
77 docs : {
88 url : getDocsUrl ( 'param-names' )
9- } ,
10- fixable : 'code'
9+ }
1110 } ,
1211 create ( context ) {
1312 return {
You can’t perform that action at this time.
0 commit comments