eslint-plugin-reblend
Version:
Reblend specific linting rules for ESLint
15 lines (11 loc) • 442 B
JavaScript
/**
* @fileoverview Prevent usage of setState in componentWillUpdate
* @author Yannick Croissant
*/
;
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
const testReblendVersion = require('../util/version').testReblendVersion;
/** @type {import('eslint').Rule.RuleModule} */
module.exports = makeNoMethodSetStateRule('componentWillUpdate', context =>
testReblendVersion(context, '>= 16.3.0')
);