Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

Commit

Permalink
feat: Add support for optional chaining (#44)
Browse files Browse the repository at this point in the history
By replacing 'no-unused-expressions' with its '@typescript-eslint' equivalent.
  • Loading branch information
kripod authored and iamturns committed Nov 14, 2019
1 parent 47ef757 commit 9da708c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,23 @@ module.exports = {
"@typescript-eslint/no-empty-function":
baseBestPracticesRules["no-empty-function"],

// Replace Airbnb 'no-extra-parens' rule with '@typescript-indent' version
// Replace Airbnb 'no-extra-parens' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-extra-parens.md
"no-extra-parens": "off",
"@typescript-eslint/no-extra-parens": baseErrorsRules["no-extra-parens"],

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

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

// Replace Airbnb 'no-unused-vars' rule with '@typescript-eslint' version
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
"no-unused-vars": "off",
Expand Down

0 comments on commit 9da708c

Please sign in to comment.