Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-direct-mutation-state.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-direct-mutation-state.js
rd565449 r0c6b92a 39 39 * Checks if the component is valid 40 40 * @param {Object} component The component to process 41 * @returns { Boolean} True if the component is valid, false if not.41 * @returns {boolean} True if the component is valid, false if not. 42 42 */ 43 43 function isValid(component) { 44 return Boolean(component && !component.mutateSetState);44 return !!component && !component.mutateSetState; 45 45 } 46 46 … … 74 74 * Determine if we should currently ignore assignments in this component. 75 75 * @param {?Object} component The component to process 76 * @returns { Boolean} True if we should skip assignment checks.76 * @returns {boolean} True if we should skip assignment checks. 77 77 */ 78 78 function shouldIgnoreComponent(component) {
Note:
See TracChangeset
for help on using the changeset viewer.