From 22672c1cdcae9b717ca2710b42f6572f45dea8b5 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 22 Aug 2017 19:44:12 -0700 Subject: [PATCH] [eslint config] [new] add `propWrapperFunctions` default settings for `eslint-plugin-react` --- packages/eslint-config-airbnb/rules/react.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/eslint-config-airbnb/rules/react.js b/packages/eslint-config-airbnb/rules/react.js index e0a5587f..96b1d256 100644 --- a/packages/eslint-config-airbnb/rules/react.js +++ b/packages/eslint-config-airbnb/rules/react.js @@ -360,5 +360,10 @@ module.exports = { pragma: 'React', version: '15.0' }, + propWrapperFunctions: [ + 'forbidExtraProps', // https://www.npmjs.com/package/airbnb-prop-types + 'exact', // https://www.npmjs.com/package/prop-types-exact + 'Object.freeze', // https://tc39.github.io/ecma262/#sec-object.freeze + ], } };