Skip to content

Commit

Permalink
feat: Support require-await, no-return-await, space-infix-ops (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jun-sheaf committed Feb 6, 2021
1 parent ae5de5b commit 57a3142
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,22 @@ module.exports = {
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-before-function-paren.md
'space-before-function-paren': 'off',
'@typescript-eslint/space-before-function-paren': baseStyleRules['space-before-function-paren'],


// Replace Airbnb 'require-await' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/require-await.md
'require-await': 'off',
'@typescript-eslint/require-await': baseBestPracticesRules['require-await'],

// Replace Airbnb 'no-return-await' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/return-await.md
'no-return-await': 'off',
'@typescript-eslint/return-await': baseBestPracticesRules['no-return-await'],

// Replace Airbnb 'space-infix-ops' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/space-infix-ops.md
'space-infix-ops': 'off'
'@typescript-eslint/space-infix-ops': baseStyleRules['space-infix-ops'],

// Append 'ts' and 'tsx' to Airbnb 'import/extensions' rule
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/extensions.md
'import/extensions': [
Expand Down

0 comments on commit 57a3142

Please sign in to comment.