Skip to content

Commit 3ff5fcf

Browse files
committed
add promise/param-names rule
Ensures that new Promise() is instantiated with the parameter names resolve, reject. Fixes standard/standard#282
1 parent 9374285 commit 3ff5fcf

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

eslintrc.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
},
1515

1616
"plugins": [
17-
"standard"
17+
"standard",
18+
"promise"
1819
],
1920

2021
"globals": {
@@ -129,6 +130,8 @@
129130

130131
"standard/object-curly-even-spacing": [2, "either"],
131132
"standard/array-bracket-even-spacing": [2, "either"],
132-
"standard/computed-property-even-spacing": [2, "even"]
133+
"standard/computed-property-even-spacing": [2, "even"],
134+
135+
"promise/param-names": 2
133136
}
134137
}

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
"bugs": {
1111
"url": "https://github.com/feross/eslint-config-standard/issues"
1212
},
13-
"peerDependencies": {
14-
"eslint-plugin-standard": "^1.1.0"
15-
},
1613
"devDependencies": {
1714
"eslint": "^2.0.0-rc.0",
1815
"eslint-plugin-standard": "^1.1.0",
@@ -47,6 +44,10 @@
4744
],
4845
"license": "MIT",
4946
"main": "index.js",
47+
"peerDependencies": {
48+
"eslint-plugin-promise": "^1.0.0",
49+
"eslint-plugin-standard": "^1.1.0"
50+
},
5051
"repository": {
5152
"type": "git",
5253
"url": "git://github.com/feross/eslint-config-standard.git"

0 commit comments

Comments
 (0)