12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
/**
|
|
* @fileoverview Prevent usage of setState in componentDidUpdate
|
|
* @author Yannick Croissant
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
|
|
|
|
/** @type {import('eslint').Rule.RuleModule} */
|
|
module.exports = makeNoMethodSetStateRule('componentDidUpdate');
|