Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

Commit

Permalink
feat: enable rules regarding A+ promise safety
Browse files Browse the repository at this point in the history
Closes #21
  • Loading branch information
EricCrosson committed Oct 17, 2021
1 parent 61f153b commit 3fb0ad7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ module.exports = {
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',

// A+ Promise rules
'@typescript-eslint/promise-function-async': 'error',
'prefer-promise-reject-errors': 'error',
'no-promise-executor-return': 'error',
'require-atomic-updates': 'error',

quotes: 'off',
'@typescript-eslint/quotes': [
'error',
Expand Down

0 comments on commit 3fb0ad7

Please sign in to comment.