mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 00:28:25 -05:00
[eslint config] [patch] set react/no-unused-prop-types to “warn”, pending bugfixes.
Closes #1099.
This commit is contained in:
4
packages/eslint-config-airbnb/rules/react.js
vendored
4
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -271,10 +271,10 @@ module.exports = {
|
||||
|
||||
// Prevent unused propType definitions
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unused-prop-types.md
|
||||
'react/no-unused-prop-types': ['error', {
|
||||
'react/no-unused-prop-types': ['warn', {
|
||||
customValidators: [
|
||||
],
|
||||
skipShapeProps: false,
|
||||
skipShapeProps: true,
|
||||
}],
|
||||
|
||||
// Require style prop value be an object or var
|
||||
|
||||
Reference in New Issue
Block a user