diff --git a/lib/shared.js b/lib/shared.js index 12a414c..85ccf0d 100644 --- a/lib/shared.js +++ b/lib/shared.js @@ -12,6 +12,16 @@ module.exports = { "import/extensions": [".js", ".ts", ".mjs"], }, rules: { + "arrow-parens": [ + "error", + "as-needed", + { + // `requireForBlockBody` should be `true` (as Airbnb sets this to `true`), however it causes problems with HOC syntax in TS + // https://github.com/iamturns/eslint-config-airbnb-typescript/issues/8 + requireForBlockBody: false, + }, + ], + // Replace Airbnb 'camelcase' rule with '@typescript-eslint' version // https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/camelcase.md camelcase: "off",