Skip to content

Commit

Permalink
add promise/param-names rule
Browse files Browse the repository at this point in the history
Ensures that new Promise() is instantiated with the parameter names
resolve, reject.

Fixes standard/standard#282
  • Loading branch information
feross committed Feb 5, 2016
1 parent 9374285 commit 3ff5fcf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},

"plugins": [
"standard"
"standard",
"promise"
],

"globals": {
Expand Down Expand Up @@ -129,6 +130,8 @@

"standard/object-curly-even-spacing": [2, "either"],
"standard/array-bracket-even-spacing": [2, "either"],
"standard/computed-property-even-spacing": [2, "even"]
"standard/computed-property-even-spacing": [2, "even"],

"promise/param-names": 2
}
}
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
"bugs": {
"url": "https://github.com/feross/eslint-config-standard/issues"
},
"peerDependencies": {
"eslint-plugin-standard": "^1.1.0"
},
"devDependencies": {
"eslint": "^2.0.0-rc.0",
"eslint-plugin-standard": "^1.1.0",
Expand Down Expand Up @@ -47,6 +44,10 @@
],
"license": "MIT",
"main": "index.js",
"peerDependencies": {
"eslint-plugin-promise": "^1.0.0",
"eslint-plugin-standard": "^1.1.0"
},
"repository": {
"type": "git",
"url": "git://github.com/feross/eslint-config-standard.git"
Expand Down

0 comments on commit 3ff5fcf

Please sign in to comment.