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