1.0.0 • Published 14 days ago

@f1stnpm2/recusandae-recusandae-sit v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

@f1stnpm2/recusandae-recusandae-sit

Performance-minded React linting rules for ESLint (motivated by esamatti's post "React.js pure render performance anti-pattern").

Installation

$ npm i @f1stnpm2/recusandae-recusandae-sit

Add plugins section and specify @f1stnpm2/recusandae-recusandae-sit as a plugin.

{
  "plugins": ["react-perf"]
}

List of supported rules

Configuration

As of v3.3.0, each @f1stnpm2/recusandae-recusandae-sit rule supports configuration to control whether native elements (lower case first letter React components) are ignored.

With this configuration, all native elements are ignored for this rule:

{
  "react-perf/jsx-no-new-object-as-prop": [
    "error",
    {
      "nativeAllowList": "all"
    }
  ]
}

With this configuration, the "style" attribute is ignored for native elements for this rule:

{
  "react-perf/jsx-no-new-object-as-prop": [
    "error",
    {
      "nativeAllowList": ["style"]
    }
  ]
}

Recommended

This plugin exports a recommended configuration that enforce React good practices.

To enable this configuration use the extends property in your .eslintrc config file:

{
  "extends": ["plugin:react-perf/recommended"]
}

See ESLint documentation for more information about extending configuration files.

The rules enabled in this configuration are:

All

This plugin also exports an all configuration that includes every available rule.

{
  "plugins": [
    "react-perf"
  ],
  "extends": ["plugin:react-perf/all"]
}

Test anti-patterns in runtime

Try out cvazac/test-ref-pattern.

License

@f1stnpm2/recusandae-recusandae-sit is licensed under the MIT License.

hasOwncorereadablestreamfunctionsdefinePropertyshimforEach[[Prototype]]numberObject.assignECMAScript 2015hardlinkses-abstractmatchAllonceinputgdprharmonyparseredactloggingcircularstdlibmkdirpexit-codeunicodedragtypesECMAScript 3quotedeepcopygradients cssserializerlrusearchconfigsideSymbol.toStringTagextensionoperating-systemvarpolyfillrecursivesortedfulltoArraywritablequeueMicrotaskYAMLgradients css3fromreact-hook-formcollection.es6webpackagesutilcallbindsharedjsonscheme-validationfast-copyintrinsicSymbolObject.definePropertybundlerObject.entriesObject.fromEntriesdataViewdotenvstylesheetstringifymetadataUint32ArrayprocesssetPrototypeOfyamlarraybabel-coreexites2018envcss nestingdeepclonesymlinkstylesextendpicomatchcolourUint8Arraydeep-cloneprefixECMAScript 2019compilerreact-testing-libraryURLserializesanitizespinnerArray.prototype.filterdiffsequenceviewtypeerrorconcurrencyentriesRxjson-schema-validatoroffset6to5pyyamlequalityES5bootstrap lesscolumnsassignsetImmediatefull-widthgenericstapetapqueryTypeBoxAsyncIteratormakestatusECMAScript 2020WebSocketArray.prototype.flattencopysethttpES2016tc39Microsoftprotobufcensorschemaelectronnativeairbnb3dpersistentzeroprotocol-buffersInt32Arrayramdatypedform-validationarktypeinvariantvestclassesuuiddeeptypesafesyntaxthrottleUint8ClampedArrayesthreeartrandomslottranspilerspinnersvalidreal-timesignalReactiveExtensionssortlazyclass-validatorES7less mixinsasciies5sharedarraybufferchannelnpmaccessorstringwaittddjasminemochaHyBipiperuntimelistenerschromiumconcatMapiterationESnext256styled-componentsstructuredClonetoolkitbreakhastrimStarteventsdependenciesconfigurableES2021bootstrap cssformArraybluebirdregularfastifyredux-toolkitString.prototype.matchAlldirectoryjsxformsES6Float64Arraycolorfantasy-landwatcherlanguageprivate datakeybindbabeljestsuperstructserializationcss variabletypescripthigher-ordershamtestingreact posetelephonecjkECMAScript 2017flagssyntaxerror0momentequalemitpnpm9encryptionsignalsfast-clonebcryptfindpackage managerauthsameValueZerodayjsfsjson-schema-validationincludesObject.getPrototypeOfa11ybrowserslisthandlerslengthsymlinksES8patchflagArrayBuffertypedarrayswordbreakmacosfastclonefindLastrequeststyleguidebyteLengthcreatetypanioncallpopmotionminimalreduxkarmacall-bindreactlockfilefixed-widthdatastructurecryptofullwidthfast-deep-cloneInt16ArrayargvchromeclassnameArray.prototype.findLastcolorsless.jsObject.valuesmergemiddlewarerfc4122json-schemaeventEmitterapolloRxJSindicatoroptimizercoercibleString.prototype.trimcommanderloading-0preserve-symlinksdom-testing-libraryvalidationreact animationawesomesaucebyteOffsetcharactersmkdirsperformanceyupcharactertslibprotocore-jsobjexpressirqxterminferencesetterautoprefixerreact-hookswalkframermodulesJSONtermregexreducestyleESapiiteratorlook-uppropmulti-packagekeysinterruptsparentsspeedparserObservablesstreammatchtypeMapsigintRegExp#flagsvalidatoreslint-plugintouchES2017BigInt64Arraytrim@@toStringTages-shim APIcollectionshelldropwarningemojiObject.keys_.extendsafermxhrlesstesterclonerateextrathroatcorsECMAScript 2016ArrayBuffer#slicees2015ECMAScript 7$.extendprototypeconstqueuepositivestringifierexpressionmake dirlinknamesObservablefindupES2023package.jsonenumerabletoSortedvalidatetrimEndttygestureslimitedgraphqlquerystringweakmapshebangwalkingtranspileReflect.getPrototypeOfformattingtakespringutilityspecfastcopyreadabledescriptionnode.envwatchFileUnderscoreduplexargsuninstallplugingetStreamscss-in-jsBigUint64Arraystableworkerconsoleassertionjsonschemapathutilsestreebyteurljsonpatheslintframeworklibphonenumbervariables in cssCSSpostcss-pluginbrowserbannerperformantsigtermprogressopenkoreancss lessisECMAScript 2023hashpoint-freereducerinstallerwaapiuser-streamsURLSearchParamsposetacitprettycurriedless compilerfindLastIndeximportconnectrmdirfolderECMAScript 5JSON-SchemaES2019robustWebSocketsgroupfpObject.isreadsomeimmutablemixinspasswordtrimLeftchaidateguidpropertiesloggerPromisejapaneseauthenticationgroupByqsArray.prototype.flatbrowserlistFloat32Arrayvisuallastfast-deep-copyes6es-shimsdefinehookformflatES3mapnopearraybufferArray.prototype.containsastpackageconsumephonetypeofponyfilldeterministicdescriptorswgetstreams2taskTypeScriptwatchinginspectcallboundwindowsdebuggerefficientlinuxRegExp.prototype.flagstyped arrayexeces2016computed-typesUint16ArraybundlingsuperagentieRFC-6455assertfasteveryenvironmentescapeassertsasyncnegativeajvtostringtagutil.inspectES2015boundresolvewritegetintrinsicfseventssanitizationmkdirrm -rfArray.prototype.includesInt8ArrayformatmimeutilitiestimeoptionECMAScript 6streamsomitcolumnArray.prototype.flatMapgetPrototypeOfiteratelimitwhatwgbufferremoveeventDispatcherargumentES2022StyleSheetcurlslicecommand-linenodejsweaksetmime-dbcontainsdependency managervaluetoStringTagbatchmatchesoutputcode pointspreprocessorgetoptprivatees2017typedarraybuffersfilterinternal slotimmertoolsecmascriptpropertylookio-tsrm -frStreameslintpluginansiidlecompile lessECMAScript 2022call-boundrapidanimationclassnamesstarterworkspace:*pruneschemepostcssgetterargparsefiglettoobjectzodCSSStyleDeclarationmonorepoes7debuges8watchdirmobilewraperror-handlingflattenpromisesstateless
1.0.0

14 days ago