Skip to content

Commit

Permalink
added new lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
c3ho committed Dec 21, 2019
1 parent 5208cf3 commit b78ba52
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,36 @@ module.exports = {
*/
'no-param-reassign': ['error', { props: false }],

/**Disallows unnecessary return await
* https://eslint.org/docs/rules/no-return-await
*/
'no-return-await': ['error'],

/**
* Disallow using an async function as a Promise executor
* https://eslint.org/docs/rules/no-async-promise-executor
*/
'no-async-promise-executor': ['error'],

/**
* Disallow await inside of loops
* https://eslint.org/docs/rules/no-await-in-loop
*/
'no-await-in-loop': ['error'],

/**
* Disallow assignments that can lead to race conditions due to
* usage of await or yield
* https://eslint.org/docs/rules/require-atomic-updates
*/
'require-atomic-updates': ['error'],

/**
* Disallow async functions which have no await expression
* https://eslint.org/docs/rules/require-await
*/
'require-awaut': ['error'],

/**
* Require or disallow named function expressions
* https://eslint.org/docs/rules/func-names
Expand Down

0 comments on commit b78ba52

Please sign in to comment.