Skip to content

Commit

Permalink
Add some new eslint-plugin-promise rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 27, 2016
1 parent ad941f5 commit 3e1a318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ module.exports = {
rules: {
'no-use-extend-native/no-use-extend-native': 'error',
'promise/param-names': 'error',
'promise/no-promise-in-callback': 'error',
'promise/no-callback-in-promise': 'error',
// enable this sometime in the future when Node.js has async/await support
// 'promise/prefer-await-to-then': 'error',
'import/default': 'error',
'import/export': 'error',
'import/extensions': ['error', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"eslint-plugin-ava": "^3.1.0",
"eslint-plugin-import": "^2.0.0",
"eslint-plugin-no-use-extend-native": "^0.3.2",
"eslint-plugin-promise": "^3.0.0",
"eslint-plugin-promise": "^3.4.0",
"eslint-plugin-unicorn": "^1.0.0",
"get-stdin": "^5.0.0",
"globby": "^6.0.0",
Expand Down

0 comments on commit 3e1a318

Please sign in to comment.