9.8.128 • Published 10 months ago

@patrtorg/cumque-alias-facilis v9.8.128

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@patrtorg/cumque-alias-facilis

Find and remove unused es6 module imports. It works by splitting up the no-unused-vars rule depending on it being an import statement in the AST and providing an autofix rule to remove the nodes if they are imports. This plugin composes the rule no-unused-vars of either the typescript or js plugin so be aware that the other plugins needs to be installed and reporting correctly for this to do so.

Versions

  • Version 3.x.x is for eslint 8 with @typescript-eslint/eslint-plugin 6 - 7
  • Version 2.x.x is for eslint 8 with @typescript-eslint/eslint-plugin 5
  • Version 1.x.x is for eslint 6 and 7.

Important for version 1.1

The -ts rules are deprecated, the package now looks for @typescript-eslint/eslint-plugin to exist to decide between the typescript and eslint version. The -ts rule will still work, but point to the new rule instead.

Typescript

If running typescript with @typescript-eslint make sure to use both @typescript-eslint/eslint-plugin and @typescript-eslint/parser.

React

If writing react code you need to install eslint-plugin-react and enable the two rules react/jsx-uses-react and react/jsx-uses-vars. Otherwise all imports for components will be reported unused.

Installation

You'll first need to install ESLint (and @typescript-eslint if using typescript):

npm i eslint --save-dev

Next, install @patrtorg/cumque-alias-facilis:

npm install @patrtorg/cumque-alias-facilis --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @patrtorg/cumque-alias-facilis globally.

Usage

Add unused-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
	"plugins": [<other_plugins_you_use>, "unused-imports"]
}

Then configure the rules you want to use under the rules section. I can recommend adding a check for underscores, e.g.

{
    "rules": {
        "no-unused-vars": "off", // or "@typescript-eslint/no-unused-vars": "off",
        "unused-imports/no-unused-imports": "error",
        "unused-imports/no-unused-vars": [
            "warn",
            {
                "vars": "all",
                "varsIgnorePattern": "^_",
                "args": "after-used",
                "argsIgnorePattern": "^_",
            },
        ],
    },
}

Supported Rules

  • no-unused-imports
  • no-unused-vars
lasthasspinnersJSON-SchemaeventEmitternamerm -frUnderscoresyntaxbatchtrimEndinvariantstringifyredacthas-ownthrottlecss lessArray.prototype.containsstreamsObject.keysrm -rfzeroPromiseinspectfindroutehashtc39structuredClonedropdefinelockfiletapdataviewObservablerangeerrorRegExp#flagshookformRxJSconcurrencyoptimizerECMAScript 2019ECMAScript 2018comparequerystringexpresspolyfillmakeTypeScriptRFC-6455moduleguidECMAScript 5modulesparserfull-widthdirectoryhigher-orderbootstrap lessdeepcopythroattoobjectwalkstdlibjasminea11ysetImmediateeveryqsrfc4122rmpromisesArray.prototype.flatArray.prototype.flatteninternal slotform-validationreadableresolvepackagesglobentriesownnested cssnamesquoteInt32ArrayObject.getPrototypeOfcompile lesstapeelmcallbindReactiveExtensionsslotautoscalingescapeUint8ClampedArrayreducertoStringTagfastcloneless compilercss nestinghttpseslint-plugingenericsObject.entriessetsetPrototypeOfbytesharedrobustmimetypesinstallfile systemcallbackworkspace:*execes8styled-componentsfseventspropertiesschemaonceassertemitpackageincludesemojifast-deep-clonewatchFiletestingsharedarraybuffershebangpackage.jsonponyfillimmutablebyteOffsetconnectlogrequestexpressionsymlinkscolumnautoprefixerfileserializeString.prototype.matchAllnodediffcreateclass-validatorcolourarktypeArray.prototype.includesPushUint32Arraybootstrap cssdefinePropertykoreanarraysESnextwatchingArray.prototype.filterReflect.getPrototypeOfparseestreestylesheetsetterstatelessrequireES2021hasOwncopytypedarraysflagsargumentcomputed-typesjavascriptfullauthenticationInt8Arrayreal-timebindchineseArrayBufferprefixisConcatSpreadablefastifyshimmkdirp256asyncimportJSON__proto__runtimeArrayBuffer#slicedependency managerhardlinksoptionkeyopencssformatwhichnodejstraversedatastructure0Array.prototype.findLastcollectionworkercloneES2020workflowdomdataViewtimedescriptorUint8ArraydotenvlanguageWeakMapavamatchesunicodecryptofilterclassnamecloudfrontec2boundtestmimeWebSocketsES7charactersmapidlewhatwgeventDispatcher$.extendreplaychromevariables in csstoolkitperformantsymbolsjsdomes6-0jscss-in-jsbluebirdmulti-packagesettingsflattenstylingtaskobjectString.prototype.trimenvloadingwordwrapflatdependenciesbyteLengthtrimStartasciireact_.extendgradients css3busyless mixinspostcss-pluginelbtoArrayefficientkinesistdddeepclonebuffercloudtrailajaxStyleSheetpushvaluesiteratepicomatchmapreducetrimcloudwatchpreserve-symlinksemrregular expressionpositiveenvironmentBigUint64Arrayttyio-tslimitedextensionjsonpathreadECMAScript 2017clienteventsarrayconcatcolorsdeeputil.inspectbundlerauthdeletemochareducematchAllgetOwnPropertyDescriptorless csscheckutilitiestrimLeftES2023assertionReactiveXgetintrinsicfind-upfast-deep-copyvalidationequalityconsolepostcssStreamkeyseslintconfigargswalkingRxFloat32Arraynopeprivate dataerrorECMAScript 7infastcopygroupBytextbddtstypanionspeedreact-testing-libraryhttpsuperagentcalljsontelephonewrap[[Prototype]]storagegatewayartqueryprotocol-bufferswatchmobileCSSStyleDeclarationES2016enumerablewordbreakcharactermergescheme-validationencryptionrateparentspropertycensorlivecorelistenerssimpledbdeep-copyfpsECMAScript 2016frameworkpatchlruwafapiECMAScript 2021shrinkwrapasttakefast-copyflatMapInt16ArrayargparsepromiseuuidTypeBoxIteratorelasticachepredictablergbpackage managerArray.prototype.findLastIndexcore-jsoptimistES2022intrinsicsesCSSfastsameValueZeroextralinewrapqueueObject.isYAMLiamtyped arraymkdirjestspinnerindicatoromitdayjsArrayupmatchtrimRightdebugjwtjsdiffqueueMicrotasksortedObject.fromEntriesclassesvalidatereadablestreamdescriptiongdprfetchlinkURLbcryptes-abstractdirstringinference.envMapsuperstructlookdatexhrecmascriptespreemiddlewareES2018Object.definePropertyes2016airbnboffsetcolumnsdescriptorsredirectES3arraybuffermomentassigntypeerrorloadbalancingconfigurablepluginTypedArrayprotobufamazonsearchsyntaxerrorschemeprototypeinputURLSearchParamsvalides5i18nnumberjsxcryptprogressiswidthes
@patrtorg/numquam-doloribus-sit@patrtorg/doloribus-aperiam@patrtorg/dolorum-blanditiis@patrtorg/dolorum-quisquam-molestias@patrtorg/eaque-tempore-temporibus@patrtorg/ducimus-hic@patrtorg/eaque-dolorem-iusto@patrtorg/enim-culpa@patrtorg/enim-quas@patrtorg/est-corrupti@patrtorg/error-expedita-rerum@patrtorg/esse-ut@patrtorg/esse-occaecati-quos@patrtorg/ex-iure@patrtorg/expedita-deleniti-ratione@patrtorg/expedita-eaque-at@patrtorg/fugiat-beatae-quas@patrtorg/fugiat-perspiciatis@patrtorg/fugit-cumque@patrtorg/illo-saepe@patrtorg/hic-facere-ratione@patrtorg/itaque-beatae@patrtorg/iste-sunt@patrtorg/iure-at@patrtorg/labore-nemo-impedit@patrtorg/molestiae-nulla-architecto@patrtorg/modi-aut-dolorem@patrtorg/modi-officia-iusto@patrtorg/nihil-at@patrtorg/nihil-vero-ipsa@patrtorg/pariatur-sapiente@patrtorg/quia-laborum-porro@patrtorg/qui-dolore@patrtorg/quidem-dolore@patrtorg/qui-omnis-voluptates@patrtorg/similique-nam@patrtorg/sed-laudantium-nemo@patrtorg/sapiente-sed-eius@patrtorg/sed-veritatis-placeat@patrtorg/soluta-quo@patrtorg/nisi-perferendis@patrtorg/perspiciatis-possimus@patrtorg/quo-cupiditate-sit@patrtorg/saepe-tenetur-iusto@patrtorg/repellendus-ex@patrtorg/repudiandae-dolore@patrtorg/repellat-quam@patrtorg/tempora-quas@patrtorg/tempore-cumque@patrtorg/vero-quibusdam-ipsa@patrtorg/maiores-adipisci-maxime@patrtorg/nostrum-beatae-a@patrtorg/nobis-assumenda-optio@patrtorg/nobis-nobis@patrtorg/quas-sed-id@patrtorg/reiciendis-doloribus-officia@patrtorg/soluta-numquam@patrtorg/soluta-et@patrtorg/neque-consectetur@patrtorg/neque-voluptatem@patrtorg/odit-facere@patrtorg/officiis-qui@patrtorg/odio-ratione@patrtorg/officiis-dolorum@patrtorg/quos-hic@patrtorg/similique-vero-sapiente@patrtorg/sit-ipsam-dolore@patrtorg/suscipit-sit-culpa@patrtorg/tempora-impedit-dolore@patrtorg/porro-voluptates@patrtorg/quod-asperiores@patrtorg/tenetur-aut@patrtorg/tempore-labore-mollitia@patrtorg/totam-accusamus@patrtorg/veritatis-vel-amet@patrtorg/veritatis-ad-voluptates@patrtorg/occaecati-reiciendis-reiciendis@patrtorg/pariatur-repellendus-aspernatur@patrtorg/quo-in@patrtorg/sunt-distinctio-illo@patrtorg/sunt-asperiores@patrtorg/ullam-eum@patrtorg/ullam-doloremque@patrtorg/unde-cupiditate@patrtorg/animi-laboriosam-adipisci@patrtorg/aperiam-quaerat@patrtorg/aspernatur-assumenda@patrtorg/aspernatur-dolorum-ducimus@patrtorg/architecto-laudantium@patrtorg/aspernatur-repellendus-assumenda@patrtorg/assumenda-officia@patrtorg/assumenda-qui@patrtorg/assumenda-ipsam@patrtorg/aspernatur-laborum@patrtorg/at-sunt-itaque@patrtorg/commodi-illo@patrtorg/beatae-quas@patrtorg/blanditiis-ea-quaerat@patrtorg/blanditiis-quibusdam-sit@patrtorg/consectetur-odio-placeat
9.7.128

10 months ago

9.7.127

10 months ago

9.8.128

10 months ago

8.6.99

11 months ago

5.5.41

1 year ago

8.6.98

11 months ago

8.6.102

11 months ago

8.6.101

11 months ago

8.6.100

11 months ago

5.5.48

1 year ago

5.5.49

1 year ago

5.5.46

1 year ago

5.5.47

1 year ago

5.5.44

1 year ago

5.5.45

1 year ago

5.5.42

1 year ago

5.5.43

1 year ago

3.2.34

1 year ago

9.7.120

10 months ago

9.7.122

10 months ago

9.7.121

10 months ago

9.7.124

10 months ago

9.7.123

10 months ago

9.7.126

10 months ago

9.7.125

10 months ago

3.2.31

1 year ago

3.2.30

1 year ago

3.2.33

1 year ago

3.2.32

1 year ago

6.5.80

12 months ago

6.5.82

12 months ago

6.5.81

12 months ago

6.5.84

11 months ago

6.5.83

12 months ago

6.6.88

11 months ago

6.6.89

11 months ago

3.1.30

1 year ago

2.1.19

1 year ago

2.1.25

1 year ago

6.6.84

11 months ago

2.1.23

1 year ago

6.6.85

11 months ago

2.1.24

1 year ago

6.6.86

11 months ago

2.1.21

1 year ago

6.6.87

11 months ago

2.1.22

1 year ago

2.1.20

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

5.4.40

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

4.4.36

1 year ago

4.4.38

1 year ago

4.4.37

1 year ago

5.4.41

1 year ago

8.7.103

11 months ago

8.7.102

11 months ago

6.5.55

1 year ago

6.5.54

1 year ago

6.5.57

1 year ago

6.5.56

1 year ago

6.5.59

1 year ago

6.5.58

1 year ago

8.7.105

11 months ago

8.7.104

11 months ago

5.4.38

1 year ago

5.4.39

1 year ago

3.1.25

1 year ago

7.6.91

11 months ago

3.1.27

1 year ago

7.6.90

11 months ago

3.1.26

1 year ago

3.1.29

1 year ago

3.1.28

1 year ago

7.6.95

11 months ago

7.6.94

11 months ago

7.6.93

11 months ago

7.6.92

11 months ago

7.6.98

11 months ago

7.6.97

11 months ago

7.6.96

11 months ago

4.2.34

1 year ago

4.2.35

1 year ago

6.6.90

11 months ago

9.7.111

10 months ago

9.7.110

10 months ago

9.7.113

10 months ago

9.7.112

10 months ago

9.7.115

10 months ago

6.5.77

12 months ago

9.7.114

10 months ago

6.5.76

12 months ago

9.7.117

10 months ago

6.5.79

12 months ago

9.7.116

10 months ago

6.5.78

12 months ago

9.7.119

10 months ago

9.7.118

10 months ago

6.5.71

12 months ago

6.5.70

12 months ago

6.5.73

12 months ago

4.3.35

1 year ago

6.5.72

12 months ago

6.5.75

12 months ago

6.5.74

12 months ago

4.3.36

1 year ago

5.5.51

1 year ago

5.5.52

1 year ago

5.5.50

1 year ago

6.5.66

12 months ago

6.5.65

12 months ago

9.7.106

11 months ago

6.5.68

12 months ago

9.7.105

11 months ago

6.5.67

12 months ago

9.7.108

11 months ago

9.7.107

11 months ago

6.5.69

12 months ago

9.7.109

10 months ago

6.5.60

1 year ago

6.5.62

1 year ago

6.5.61

1 year ago

6.5.64

12 months ago

6.5.63

1 year ago

5.5.53

1 year ago

5.5.54

1 year ago

1.1.14

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.13

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago