npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ptkhanh94npm/fugiat-architecto-error

v1.0.0

Published

[![NPM Version](https://img.shields.io/npm/v/@ptkhanh94npm/fugiat-architecto-error.svg?style=flat)](https://www.npmjs.org/package/@ptkhanh94npm/fugiat-architecto-error) [![GitHub Actions status](https://github.com/ptkhanh94npm/fugiat-architecto-error/work

Downloads

12

Keywords

schemaelectronreadableObject.valuesES8bootstrap lessES5Object.assignlinuxrestfulcss variablefilterparentssignalstrimStartintrinsichooksfseventsreduxArray.prototype.findLastsymbolsArray.prototype.filterfolderpropertiesECMAScript 2021i18nmkdirpworkerlintidprototyperedactcomputed-typesInt32Arraypicomatchlookes2015guidCSSpackagesUint8ClampedArraydropdefinethroatbyteOffsetfpsmakeObject.fromEntriesescapematchAllWebSocketurlcjkclassnamecollection.es6tsgetterremoveES6descriptionpyyamllast-0accessibilityjavascriptStreaml10ntrimEndpasswordrequireinputponyfilllook-uptoolkitkeydescriptors__proto__avaarktypearraynpmconfigshamsignalsafedayjsbatchTypeBoxinterruptsxhrreuseECMAScript 2023resolveirqshrinkwrapterminalsetImmediatetostringtageveryworkspace:*telephonemruES2022callnamestructuredCloneexecreact-hooksfastifyutil.inspect_.extendES2018assertarraysmulti-package[[Prototype]]argparsereactartasciiECMAScript 2016exit-codeisargvdeterministicmiddlewareiamtc39Uint32ArrayinES2016whichvestagentuninstalllessstylesheetimmutabledatanamesgradients cssvalidtypedarraysfigletES2017RFC-6455tddes2016extensionlengthprunetyped arraycommandhttpspropertygradients css3stringifybundlingwaityupconfigurablelrucodesutilitiespnpm9fastcloneeslinteventDispatcherupawesomesaucescheme-validationoptimisthookformMicrosoftvalidatefindLastIndexESMapbundlerclientjsdomdeepclonephonekeysglobmkdirenumerablelanguageonceSymbol.toStringTagenvironmentdirectoryeslintconfigmovejQueryquerystringURLpluginreduceserializeassertionerror-handlingzeroclassnamesObject.definePropertytesterjoiinspectcall-boundargsgetOwnPropertyDescriptormatchmimeserializerhotECMAScript 5findmodule256debuggerjsximmerjshintenderPromiseidentifiersInt8Arrayec2graphqlbddwebbytebrowserslistclassesmoment0Reflect.getPrototypeOfcore-jsArraypatchemrinferencelibphonenumberECMAScript 2018persistentbcryptpushstyled-componentsdirdataViewconcatMapRegExp#flagsrecursivecssObjectsliceimportexporthasArrayBuffercallbackHyBijsdiffrfc4122idlecloudtrailprocessmatchesrobustencryptionregular expressionsspeedoffsetpackageArray.prototype.flatMaprgbsiginteventEmitteressidestreamgdprformattingcachelimitedcallboundECMAScript 2022sortedcurltrimRightawspromisesrm -frpositiveequalstyleguideeast-asian-widthcircularframeworkvpccloudfrontjsonpathtakefull-widthArray.prototype.containspipeshimtslibdiffconcatRxcontainsieobjectpolyfillcorewindowsprogressSymboliterationIteratorspinnerprettylinewraprm -rfshellindicatorimportrouterforEachfast-deep-copylinktesttypedarrayInt16Arrayfast-copyliveObject.getPrototypeOfmkdirsexittouchqueuereadmonorepoinvariantES2019flatsnsstreams2httpwatchFiletermemitArray.prototype.flates6flagsiteratorvariablesreact-testing-librarysyntaxerrorsesrmcolourcloudformationreadablestreamsigtermstyleECMAScript 2019es2017channelstdliba11yless mixinsutilexpressiondataviewsqsinstalliteratesymbolweaksetfunctionsUint8Arraywritablegenericscommand-linepostcss-pluginstartervaluetypesestreecallbindruntimeerrorkinesispackage managerastglobaltestingwalking@@toStringTaggetintrinsicArrayBuffer#slicecss lessfind-upargumentprotocompilerpreprocessorRegExp.prototype.flagschaioperating-systemrdschromefastcopywatcherfluxarraybufferfile systemfast-deep-cloneloadingwordbreakUnderscoresharedarraybufferglaciersetterES7eventsjapaneserateviewbuffersconnectspinnerssomequerymime-dbcolorsvarsregular expressionFloat32Arrays3internal slotcryptoopennodeawaitregexpsequenceflagAsyncIteratornumberwriteperformanceqsfindLastfindupsharedstreamssymlinksshebangdebugform-validationdeepcopybannerreducerequalityArrayBuffer.prototype.slicecorsECMAScript 3toolscharacterscompile lesschromiumxtermloggingtypescriptdom-testing-librarywatchingstringifierjestrangeerrortaskhashweakmapreal-timelazyhigher-orderparsefunctionalwhatwgdynamodbsyntaxArray.prototype.flattenunicodeasyncfunctionsuperagentcloudwatchenvWeakMapReactiveExtensionsUint16Arraynested csstypeofmapFunction.prototype.namebrowseraccessorfromdefinePropertygroupByreact-hook-formredux-toolkitcloneparentajvecmascripttimeregularprivate datawidthwarningchecklesscsstypanionquoteESnextwgetobjchinesetapbreakio-tsauthtoobjectboundtoArrayqueueMicrotaskformsprotobufprefixString.prototype.matchAllECMAScript 2020es-shimsdeep-copystablegroupgetPrototypeOfcode pointsdependenciesinternalReactiveXglobalsObservableses-abstractECMAScript 6proptrimomitbeanstalk$.extendthrottleloadbalancinghardlinksparserflatMapes7concurrencymochaassignsymlinkownswfcreatecoerciblerandomtext.envauthenticationstoragegatewayless csscopyBigUint64Arraycensorentriescss-in-jsjwtless compilerapolloprivateYAMLuuidRxJSansiworkflowcryptPushdescriptorserializationamazoncollectionformtrimLeftjsBigInt64ArrayECMAScript 7yamlless.jssuperstructbufferstringzodefficientflattenstatushandlersreplaytraverseeslint-pluginschemedeependpointajaxlistenerssinatradeep-clonenegativejasminemacoscommanderES3expressSetES2020postcssdeleteenvironmentswalksameValueZeroArray.prototype.findLastIndexbyteLengthsearchkarmanodejsconsumestateincludesutilitymimetypessimpledbairbnbratelimitelasticacheES2021getoptTypedArraydateproxyspecwaffsprotocol-buffersCSSStyleDeclarationnopeObject.keysebsvaluesECMAScript 2017loggerWebSocketssortes5assertsmodulesoutputcharacterECMAScript 2015eslintpluginjsonsetPrototypeOftoSortedfetchcliwordwrapES2015StyleSheetparsingcall-bindpackage.jsonfullwidthelmminimalconsolemake dires2018lockfilevariables in csshas-ownURLSearchParamstypesafevalidationfileroute53optiondotenvcolumnsFloat64Arrayfullduplexbluebirdpathfastcolorpreserve-symlinkswraprequest

Readme

NPM Version GitHub Actions status Coverage Status NPM Downloads

@ptkhanh94npm/fugiat-architecto-error

ESLint rules for mocha.

Install and configure

This plugin requires ESLint 4.0.0 or later.

npm install --save-dev @ptkhanh94npm/fugiat-architecto-error

.eslintrc.json

Then add a reference to this plugin and selected rules in your eslint config:

{
    "plugins": [
        "mocha"
    ]
}

eslint.config.js (requires eslint >= 8.23.0)

To use this plugin with the new eslint configuration format (flat config):

import mochaPlugin from '@ptkhanh94npm/fugiat-architecto-error';

export default [
    mochaPlugin.configs.flat.recommended // or `mochaPlugin.configs.flat.all` to enable all
    // ... Your configurations here
];

Plugin Settings

This plugin supports the following settings, which are used by multiple rules:

  • additionalCustomNames: This allows rules to check additional function names when looking for suites or test cases. This might be used with a custom Mocha extension, such as ember-mocha or mocha-each.

    Example:

    {
        "rules": {
            "mocha/no-skipped-tests": "error",
            "mocha/no-exclusive-tests": "error"
        },
        "settings": {
            "mocha/additionalCustomNames": [
                { "name": "describeModule", "type": "suite", "interfaces": [ "BDD" ] },
                { "name": "testModule", "type": "testCase", "interfaces": [ "TDD" ] }
            ]
        }
    }

    The name property can be in any of the following forms:

    • A plain name e.g. describeModule, which allows:

      describeModule("example", function() { ... });
    • A dotted name, e.g. describe.modifier, which allows:

      describe.modifier("example", function() { ... });
    • A name with parentheses, e.g. forEach().describe, which allows:

      forEach([ 1, 2, 3 ])
          .describe("example", function(n) { ... });
    • Any combination of the above, e.g. forEach().describeModule.modifier, which allows:

      forEach([ 1, 2, 3 ])
          .describeModule.modifier("example", function(n) { ... });

Configs

recommended

This plugin exports a recommended config that enforces good practices.

Enable it with the extends option:

{
    "extends": [
        "plugin:mocha/recommended"
    ]
}

all

There's also a configuration that enables all of our rules.

See Configuring Eslint on eslint.org for more info.

Rules

💼 Configurations enabled in.
⚠️ Configurations set to warn in.
🚫 Configurations disabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.

| Name                              | Description | 💼 | ⚠️ | 🚫 | 🔧 | | :----------------------------------------------------------------------------------- | :---------------------------------------------------------------------- | :- | :- | :- | :- | | consistent-spacing-between-blocks | Require consistent spacing between blocks | ✅ | | | 🔧 | | handle-done-callback | Enforces handling of callbacks for async tests | ✅ | | | | | max-top-level-suites | Enforce the number of top-level suites in a single file | ✅ | | | | | no-async-describe | Disallow async functions passed to describe | ✅ | | | 🔧 | | no-empty-description | Disallow empty test descriptions | ✅ | | | | | no-exclusive-tests | Disallow exclusive tests | | ✅ | | | | no-exports | Disallow exports from test files | ✅ | | | | | no-global-tests | Disallow global tests | ✅ | | | | | no-hooks | Disallow hooks | | | ✅ | | | no-hooks-for-single-case | Disallow hooks for a single test or test suite | | | ✅ | | | no-identical-title | Disallow identical titles | ✅ | | | | | no-mocha-arrows | Disallow arrow functions as arguments to mocha functions | ✅ | | | 🔧 | | no-nested-tests | Disallow tests to be nested within other tests | ✅ | | | | | no-pending-tests | Disallow pending tests | | ✅ | | | | no-return-and-callback | Disallow returning in a test or hook function that uses a callback | ✅ | | | | | no-return-from-async | Disallow returning from an async test or hook | | | ✅ | | | no-setup-in-describe | Disallow setup in describe blocks | ✅ | | | | | no-sibling-hooks | Disallow duplicate uses of a hook at the same level inside a describe | ✅ | | | | | no-skipped-tests | Disallow skipped tests | | ✅ | | | | no-synchronous-tests | Disallow synchronous tests | | | ✅ | | | no-top-level-hooks | Disallow top-level hooks | | ✅ | | | | prefer-arrow-callback | Require using arrow functions for callbacks | | | ✅ | 🔧 | | valid-suite-description | Require suite descriptions to match a pre-configured regular expression | | | ✅ | | | valid-test-description | Require test descriptions to match a pre-configured regular expression | | | ✅ | |