mirror of
https://github.com/mblanke/ThreatHunt.git
synced 2026-03-02 06:10:21 -05:00
CLAUDE branch
i made have screwed the pooch with this
This commit is contained in:
15
frontend/node_modules/eslint-plugin-react/lib/rules/no-will-update-set-state.js
generated
vendored
Normal file
15
frontend/node_modules/eslint-plugin-react/lib/rules/no-will-update-set-state.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @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')
|
||||
);
|
||||
Reference in New Issue
Block a user