5.10.129 • Published 10 months ago

@diotoborg/officiis-nam-dignissimos v5.10.129

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

@diotoborg/officiis-nam-dignissimos

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 @diotoborg/officiis-nam-dignissimos:

npm install @diotoborg/officiis-nam-dignissimos --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @diotoborg/officiis-nam-dignissimos 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
RegExp.prototype.flagsArrayfsrandomRxsameValueZerobddtddjssetPrototypeOfdebuggercharsetsymlinksregular expressionsspeedwebquerystringajvmergevaluesRFC-6455filewordwrapruntimeObservableweaksetyamlcommand-lineserialization.envhasOwnPropertyoptimizerECMAScript 2015cloudtrailredux-toolkitReactiveExtensionsbusytaskurlstypeprivatesnsargparseframeworkkeyspyyamlfullperformanceparsertypedscheme-validationYAMLwhichxdgexpressiontrimLeftbuffervestopensflattenprivate datatc39stringifierterminalJSONcontainshasWebSocketshooksreadablelanguagequerytestdefaultansiserializeiteratefoldercharacterclistartermkdirpsidestructuredCloneformattingoptionBigUint64ArrayutilityObject.getPrototypeOfStreaminstallerArray.prototype.findLastIndexwaitInt32ArrayiamutilitiesbrowserslistES5assertionopenerObjecttoobjectfunction.lengthjsdomtsa11yAsyncIteratorviewcjkformatinaccessibilitypostcssgetRxJSjestemrslotapiformeslintHyBispinnerWeakSetyupString.prototype.matchAllcompilerreact-hooksdropvalidroute53mapmoveenvironmentsdatacheckshimassignpackagesfastunicodedefinePropertyes2015throttlewordbreaktapethreemodulesbundlingnodesortflagarraysmobilees-shimspropertiesfilterlockfileopenanimationpropertyrecursivecall-boundes7commanderinvariantsharedarraybuffervalidatecomputed-typesairbnbrangeerrorpostcss-pluginObject.assigncollection.es6cloudwatchECMAScript 7streams2lintES2016enumerabletrimRightrmdirECMAScript 2022elasticacheexpressconcatMaptostringtagargumentinspect__proto__extensionlistenerswrapES2020react poselibphonenumberparentscmddeletenegativeReactiveXimportexportutilxdg-openreusecodeshashendpointhookformreact-testing-librarystoragegatewayflagsdependenciesstdlibsymlinkdatesetjsonpathfullwidthcurlgroupBymatcherrorlengthamazonFloat32Arraydeep-cloneObject.definePropertydescriptormetadatafast-copyglobalsjsxstreamcloudsearchicuparentautoscalingrdssymbolsentriesfast-cloneeventEmitterbytedescriptorsStreamstapdotenvmulti-packageupRegExp#flagsStyleSheetprotocol-bufferspatchpropgetintrinsictouchrm -frrgb3dESnextregularlimitedmkdirsidentifiersdebugautoprefixerindicatorsortedcallboundcloudfrontstyleeditorArray.prototype.flattenfastclonebannergetPrototypeOfreact-hook-formbuffersredactemittypesafeeveryreadablestreampackage managerprotobufcallconvertECMAScript 2017
5.10.129

10 months ago

5.9.129

10 months ago

2.6.92

11 months ago

2.6.93

11 months ago

2.6.94

11 months ago

2.6.95

11 months ago

2.6.96

11 months ago

5.8.128

10 months ago

5.8.129

10 months ago

4.7.106

11 months ago

4.7.107

11 months ago

5.8.124

10 months ago

4.7.108

11 months ago

5.8.125

10 months ago

4.7.109

11 months ago

5.8.126

10 months ago

5.8.127

10 months ago

5.8.120

10 months ago

5.8.121

10 months ago

5.8.122

10 months ago

5.8.123

10 months ago

2.1.16

1 year ago

2.1.17

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.13

1 year ago

4.7.110

11 months ago

3.7.99

11 months ago

5.7.120

10 months ago

3.7.97

11 months ago

3.7.98

11 months ago

2.1.18

1 year ago

2.1.19

1 year ago

2.3.49

1 year ago

5.7.118

10 months ago

5.7.119

10 months ago

2.5.69

1 year ago

2.1.23

1 year ago

2.3.48

1 year ago

2.1.21

1 year ago

2.3.47

1 year ago

2.1.22

1 year ago

5.7.112

11 months ago

5.7.113

11 months ago

3.7.96

11 months ago

2.1.20

1 year ago

5.7.110

11 months ago

5.7.111

11 months ago

5.7.116

11 months ago

5.7.117

10 months ago

5.7.114

11 months ago

5.7.115

11 months ago

2.5.70

1 year ago

2.5.71

1 year ago

2.3.57

1 year ago

2.3.56

1 year ago

2.3.59

1 year ago

2.3.58

1 year ago

2.5.76

12 months ago

2.3.53

1 year ago

2.5.77

12 months ago

2.3.52

1 year ago

2.5.78

12 months ago

2.3.55

1 year ago

2.7.96

11 months ago

2.5.79

12 months ago

2.3.54

1 year ago

2.5.72

12 months ago

2.5.73

12 months ago

2.5.74

12 months ago

2.3.51

1 year ago

2.5.75

12 months ago

2.3.50

1 year ago

2.5.80

12 months ago

2.5.81

12 months ago

2.5.82

12 months ago

2.5.87

12 months ago

2.5.88

12 months ago

2.5.89

12 months ago

2.5.83

12 months ago

2.5.84

12 months ago

2.5.85

12 months ago

2.5.86

12 months ago

2.5.90

12 months ago

2.5.91

12 months ago

2.5.92

11 months ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.23

1 year ago

3.7.100

11 months ago

3.7.105

11 months ago

3.7.106

11 months ago

3.7.103

11 months ago

3.7.104

11 months ago

3.7.101

11 months ago

3.7.102

11 months ago

2.2.39

1 year ago

2.2.37

1 year ago

2.2.38

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

2.2.33

1 year ago

2.4.59

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

2.4.69

1 year ago

2.2.46

1 year ago

2.4.68

1 year ago

2.2.47

1 year ago

2.2.44

1 year ago

2.2.45

1 year ago

2.4.65

1 year ago

2.2.42

1 year ago

2.4.64

1 year ago

2.2.43

1 year ago

2.4.67

1 year ago

2.2.40

1 year ago

2.4.66

1 year ago

2.2.41

1 year ago

2.4.61

1 year ago

2.4.60

1 year ago

2.4.63

1 year ago

2.4.62

1 year ago

2.1.12

1 year ago

2.1.9

1 year ago

2.1.10

1 year ago

2.1.8

1 year ago

2.1.11

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago