UNPKG

luhn-generator

Version:

A generator of numbers that passes the validation of Luhn algorithm or Luhn formula, also known as the 'modulus 10' or 'mod 10' algorithm

15 lines (11 loc) 380 B
/** * @fileoverview Prevent usage of setState in componentWillUpdate * @author Yannick Croissant */ 'use strict'; const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule'); const versionUtil = require('../util/version'); module.exports = makeNoMethodSetStateRule( 'componentWillUpdate', (context) => versionUtil.testReactVersion(context, '16.3.0') );