mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 04:08:02 -05:00
[eslint config] [new] add propWrapperFunctions default settings for eslint-plugin-react
This commit is contained in:
5
packages/eslint-config-airbnb/rules/react.js
vendored
5
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -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
|
||||
],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user