Skip to content
This repository was archived by the owner on May 12, 2025. It is now read-only.

Commit 9da708c

Browse files
kripodiamturns
authored andcommitted
feat: Add support for optional chaining (#44)
By replacing 'no-unused-expressions' with its '@typescript-eslint' equivalent.
1 parent 47ef757 commit 9da708c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/shared.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,23 @@ module.exports = {
6565
"@typescript-eslint/no-empty-function":
6666
baseBestPracticesRules["no-empty-function"],
6767

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

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

79+
// Replace Airbnb 'no-unused-expressions' rule with '@typescript-eslint' version
80+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-expressions.md
81+
"no-unused-expressions": "off",
82+
"@typescript-eslint/no-unused-expressions":
83+
baseBestPracticesRules["no-unused-expressions"],
84+
7985
// Replace Airbnb 'no-unused-vars' rule with '@typescript-eslint' version
8086
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md
8187
"no-unused-vars": "off",

0 commit comments

Comments
 (0)