Files
NapCatQQ/.pnpm-store/v3/files/3a/a1f969dad6951e8f089b6e0726e1920e1f8a88c42dd4028a53b6a78c7c4ef10d2477a6716305eea3e178bf667d37e3a85f5425b75b8cea3f20b75c9f2d7be6
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
441 B
Plaintext

/**
* @fileoverview Prevent usage of setState in componentWillUpdate
* @author Yannick Croissant
*/
'use strict';
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
const testReactVersion = require('../util/version').testReactVersion;
/** @type {import('eslint').Rule.RuleModule} */
module.exports = makeNoMethodSetStateRule(
'componentWillUpdate',
(context) => testReactVersion(context, '>= 16.3.0')
);