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 3
3
Calling a Promise static method with ` new ` is invalid, resulting in a
4
4
` TypeError ` at runtime.
5
5
6
+ :wrench : The ` --fix ` option on the command line can automatically fix the
7
+ problems reported by this rule.
8
+
6
9
## Rule Details
7
10
8
11
This rule is aimed at flagging instances where a Promise static method is called
Original file line number Diff line number Diff line change 2
2
3
3
Enforce standard parameter names for Promise constructors
4
4
5
- :wrench : The ` --fix ` option on the command line can automatically fix some of
6
- the problems reported by this rule.
7
-
8
5
#### Valid
9
6
10
7
``` js
Original file line number Diff line number Diff line change @@ -6,8 +6,7 @@ module.exports = {
6
6
meta : {
7
7
docs : {
8
8
url : getDocsUrl ( 'param-names' )
9
- } ,
10
- fixable : 'code'
9
+ }
11
10
} ,
12
11
create ( context ) {
13
12
return {
You can’t perform that action at this time.
0 commit comments