8.11.123 • Published 10 months ago

@patrtorg/sint-sed-temporibus v8.11.123

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

@patrtorg/sint-sed-temporibus

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/sint-sed-temporibus:

npm install @patrtorg/sint-sed-temporibus --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install @patrtorg/sint-sed-temporibus 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
equalitypicomatchmimetypesoffsetread3dfigletcryptochanneldatasomeomitUnderscoresetPrototypeOftrimStartarktypeeventDispatcherviewairbnbECMAScript 2019eslint-plugindependenciesconcatMapstreamsnodejslocationidleRFC-6455buffersapieshooksownguidlockfileendpointmapTypedArrayrecursiveStreamsbeanstalkString.prototype.trimiconvbatchdragtostringtagfast-copyutilitiesES2016environmentsflattenflatMapassertionUint8ClampedArrayObject.assignfindLastnegativeES7definePropertyterminalsymbolscode pointscreateECMAScript 6unicodeidentifiersrouteReactiveExtensionsmodulesperformantmoduleargsObject.entriescomparesyntaxtermchrome[[Prototype]]clonecommand-linesuperstructtypedECMAScript 2022minimaleventsautoscalinghelperes-abstractposeinternal slotfpsfaststdliblogginganimationPushbyteOffsetonceutilvarsfull-widthes2016globalaccessibilitycharacterPromiseindicatorconvertObject.valuesmobileutil.inspectvalueeast-asian-widthcacheconcurrencyisConcatSpreadableprototypecolorshasOwn.enveslintplugintimeparserchinesejsdiffUint16Arraylibphonenumberxtermiehashkeysmatchfindassignlanguageassertsreadablestreamstreams2ES2015Object.definePropertyregular expressionstoStringTagObject.isdeep-copyglobalsvalidationl10nasyncgroupByresolvebrowserenvironmentavanativeflagsfind-upes2018matchAllequalreact animationgetsymlinksUint8Arraytyped arrayESinstallercommanderconsumehastestingArray.prototype.includesinstrumentationparentReflect.getPrototypeOfstyled-componentscircularjson cachequeueoutputtrimEndgetoptdotenvRxJSjsdomvpcprefixwalkduplexES2019textcallbindpostcssproxydatastructurewrapES5BigUint64ArrayajvmomentspringES2020mapreduceshamprogresseventEmittertypeofjQueryarraybufferfile systemistanbulajaxreduxloadingcharsetwgetconfigurabledynamodbshebangawaitformpnpm9bannerargumentspackage managerfromparsingtc39bddURLSearchParamsInt8Arrayreactcomputed-typesregulardirformstaskfindLastIndexcolorsetECMAScript 2018stylesnpmdebugspeedintrinsicsortedmrudescriptorsnamesrdspipeamazonclass-validatorspinnerpackagevaluesFunction.prototype.nameECMAScript 2015deep-clonebufferBigInt64Arraybyteuninstall
8.11.122

10 months ago

8.11.123

10 months ago

5.7.63

12 months ago

5.7.62

12 months ago

3.2.23

1 year ago

5.7.65

12 months ago

5.7.64

12 months ago

5.7.61

12 months ago

3.2.22

1 year ago

8.10.100

11 months ago

8.10.101

11 months ago

4.6.45

1 year ago

8.10.102

11 months ago

4.6.48

1 year ago

4.6.49

1 year ago

4.6.46

1 year ago

4.6.47

1 year ago

6.8.88

11 months ago

6.8.87

11 months ago

6.8.86

11 months ago

6.8.85

11 months ago

6.8.84

11 months ago

6.8.83

11 months ago

6.8.82

11 months ago

8.11.121

10 months ago

8.11.120

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.12

1 year ago

2.1.13

1 year ago

8.11.119

10 months ago

8.11.118

10 months ago

8.11.111

10 months ago

3.4.25

1 year ago

8.11.110

10 months ago

3.4.26

1 year ago

8.11.113

10 months ago

8.10.99

11 months ago

3.4.27

1 year ago

8.11.112

10 months ago

8.10.98

11 months ago

3.6.45

1 year ago

3.4.28

1 year ago

8.11.115

10 months ago

3.6.44

1 year ago

3.4.29

1 year ago

8.11.114

10 months ago

3.6.43

1 year ago

8.11.117

10 months ago

8.11.116

10 months ago

8.10.97

11 months ago

7.8.89

11 months ago

7.8.88

11 months ago

3.4.23

1 year ago

3.4.24

1 year ago

8.11.108

10 months ago

8.11.107

10 months ago

8.11.109

10 months ago

5.6.61

12 months ago

8.11.102

11 months ago

8.11.104

10 months ago

7.8.93

11 months ago

5.8.81

11 months ago

8.11.103

10 months ago

7.8.92

11 months ago

5.8.82

11 months ago

8.11.106

10 months ago

7.8.91

11 months ago

5.6.60

1 year ago

8.11.105

10 months ago

7.8.90

11 months ago

7.8.97

11 months ago

7.8.96

11 months ago

7.8.95

11 months ago

3.4.30

1 year ago

7.8.94

11 months ago

5.8.80

11 months ago

3.4.31

1 year ago

3.4.32

1 year ago

3.4.33

1 year ago

3.4.34

1 year ago

4.6.50

1 year ago

5.8.74

12 months ago

5.6.51

1 year ago

5.8.75

12 months ago

5.6.50

1 year ago

5.8.76

12 months ago

5.6.53

1 year ago

5.8.77

12 months ago

5.6.52

1 year ago

5.8.70

12 months ago

5.8.71

12 months ago

5.8.72

12 months ago

3.1.18

1 year ago

5.8.73

12 months ago

3.1.17

1 year ago

7.10.97

11 months ago

5.6.59

1 year ago

5.6.58

1 year ago

5.8.78

12 months ago

5.6.55

1 year ago

5.8.79

11 months ago

5.6.54

1 year ago

5.6.57

1 year ago

5.6.56

1 year ago

3.1.22

1 year ago

5.8.65

12 months ago

5.8.66

12 months ago

3.1.21

1 year ago

3.1.20

1 year ago

3.1.19

1 year ago

5.8.67

12 months ago

5.8.68

12 months ago

5.8.69

12 months ago

3.5.36

1 year ago

3.5.35

1 year ago

3.5.34

1 year ago

7.9.97

11 months ago

3.5.39

1 year ago

3.5.38

1 year ago

3.5.37

1 year ago

3.5.43

1 year ago

3.5.42

1 year ago

3.5.41

1 year ago

3.5.40

1 year ago

3.3.23

1 year ago

2.1.11

1 year ago

2.0.11

1 year ago

2.0.9

1 year ago

2.0.10

1 year ago

2.0.8

1 year ago

2.0.7

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