1.9.103 • Published 1 year ago

@hishprorg/quaerat-natus-cumque v1.9.103

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishprorg/quaerat-natus-cumque

npm version npm downloads last month

A plugin pack of order-related linting rules for Stylelint. Every rule supports autofixing (stylelint --fix).

Installation

  1. If you haven't, install Stylelint:
npm install stylelint --save-dev
  1. Install @hishprorg/quaerat-natus-cumque:
npm install @hishprorg/quaerat-natus-cumque --save-dev

Usage

Add @hishprorg/quaerat-natus-cumque to your Stylelint config plugins array, then add rules you need to the rules list. All rules from @hishprorg/quaerat-natus-cumque need to be namespaced with order.

{
	"plugins": [
		"@hishprorg/quaerat-natus-cumque"
	],
	"rules": {
		"order/order": [
			"custom-properties",
			"declarations"
		],
		"order/properties-order": [
			"width",
			"height"
		]
	}
}

Rules

Autofixing

Every rule supports autofixing with stylelint --fix. postcss-sorting is used internally for order autofixing.

Automatic sorting has some limitations that are described for every rule, if any. Please, take a look at how comments are handled by postcss-sorting.

CSS-in-JS styles with template interpolation could be ignored by autofixing to avoid style corruption.

Autofixing in Less syntax may work but isn't officially supported.

Example configs

All these configs have properties-order configured with logical properties groups:

Thanks

properties-order and properties-alphabetical-order code and README were based on the declaration-block-properties-order rule which was a core rule prior to Stylelint 8.0.0.

censorbusyECMAScript 2023serializationcreateeditorform-validationchromiumsuperstructhasvisualTypeScriptsetPrototypeOfcolumnsFunction.prototype.namepositivefast-deep-copyiamredirectvestsesassertionbrowserslistdom-testing-libraryreducerexecStyleSheetsharedistanbulhelperlimitedflattenECMAScript 2015typed arrayclientdotenvflagchromejoiflatjsdiffes-abstractvalidatecorecollectioncall-bindresolvekinesispruneeventswgetvpcstylingsortedcodesWeakSetdeepcopyloadbalancingpackage managerObject.issyntaxES2016filterschematypeurlstrimStartcliJSON-Schemaefficientmake direc2command-linecolorcryptospinnersglobObject.valuesRxJSpushinternal slotl10nnegativebundlinga11ylockfileserializericulibphonenumbermkdirpromisesnativemimetypesxtermSymbol.toStringTagjsonpathrgbformatlookscheme-validationIteratoridentifierswidthES6ObservablesexeconcatgetterreadablestreambyteLengthparserdependency managerArray.prototype.flatMapECMAScript 2021poseforEachopenertoolstraversedataviewJSONdeepjapaneseaccessibilitycommandcallbackpostcss-pluginthroatreal-timechineseReactiveXtimehttpES2022reusevalidfindminimalsameValueZerogroupexpressiontypesafeasyncconsumeimportexportregulargroupBystreambeanstalkparentESnextebsescapebyteOffset@@toStringTagcollection.es6ObjectserializeidpopmotionmoduleseventEmittercharacterproxyfind-upslicerequeststdlibrecursivepersistentaws-0preserve-symlinksredux-toolkitutil.inspectargscmdstatelessunicodecloudtrailArrayBuffer.prototype.slicetoSortedcharseteslintpluginmimeautoscalingerrorfunction.lengthtextwaapiECMAScript 7avaFloat64Arraysetdescriptorinputreact-hook-formstyleguidees2016wafoptioncloudwatchlogstoragegatewaytouchiterationcomputed-typesinstallerprefixstyled-componentsloggerpluginTypeBoxbannerprivatecircularfolderHyBiieSetreact-hooksruntimepyyamltoolkitECMAScript 2019BigInt64ArrayidleloadingglobalsquoteObject.getPrototypeOfArray.prototype.findLastfetchgetOwnPropertyDescriptortddhas-ownmoveshellnameomitupArrayeslintconfigspawnwebsiteES2017ratelimitES5includessomefilecommanderboundtestingYAMLassignTypedArraybundlerES2019autoprefixereslintkey parStreamstypedarrayconfigurablevarsoffsetnumberes8utilitiesarrayelectroncompareArray.prototype.filterfull-widthcurldeterministicchaistreamsnopeArray.prototype.includesRegExp.prototype.flagses2015symbolfile cacheconfigdefaultassertsoutputcharactersprotostylesworkerkey valueObject.assignWeakMaptypesendercloudsearchsequencenodeduplexspringwhatwgstreams2valuestartercore-jselbdynamodbes-shim APIjsdomperformantzodArray.prototype.containsregular expressionprocessreactdatawordbreaktelephonedirisConcatSpreadabletslibtoArrayReflect.getPrototypeOfjsonmatchObject.definePropertyexecutableregular expressionslastpatchECMAScript 6npmintrinsicfindLastIndexformswordwrapurlECMAScript 2016redactfullwidthopentrimLeftreducesymbolsnamesobjectObject.keyswritedebuggersyntaxerroremittoobjectPushargumentsES2015styleawaitenvironmentelasticachesymlinkmakermparentsglacierslotmoduleagentbrowserlistprotocol-bufferstapecallbindfast-cloneterminalfast-deep-clonetypeerrorxdg-open.envvariablesansicheckreadgetoptbatchgraphqlmergeindicatorcloudformationfunctionamazonisuuidcontainsweaksetlocationspecemrsqsvalidationparsingroutingfromargumentmatchestesterjavascriptinvariantinspectrandomreact-testing-libraryfile systemdiffreduxCSSStyleDeclarationhashstartfindLastcallbounddomajvsortqueuewaitconcurrencylistenersdatastructureinference$.extendECMAScript 2022flagsFloat32Arraypackage.jsonformpathArrayBufferrm -rfprogresslinkdefinePropertydayjsES2023onceasttapmappicomatchvaluesdescriptorsarraysdataViewUint8ClampedArraywritableES2020mapreduceURLSearchParamsfigletES2018bddexpress__proto__takequeueMicrotaskextraeveryrobusttypescriptequalityrmdirString.prototype.matchAllartsetImmediatesymlinkssidelinttaskES8installcss-in-jscoerciblemetadatarateESdropshrinkwrapendpointparsesharedarraybufferwalkwalkingfastcopymulti-packagebindaccessor[[Prototype]]Array.prototype.flattenspinnerconcatMapdeleteregexsimple cacheschemexdgenvECMAScript 3es2018yamlArrayBuffer#slicematchAllhttpscloudfront
1.8.60

2 years ago

1.8.61

1 year ago

1.8.62

1 year ago

1.8.63

1 year ago

1.6.40

2 years ago

1.8.64

1 year ago

1.8.65

1 year ago

1.6.42

2 years ago

1.8.66

1 year ago

1.6.41

2 years ago

1.8.67

1 year ago

1.6.44

2 years ago

1.8.68

1 year ago

1.6.43

2 years ago

1.8.69

1 year ago

1.6.46

2 years ago

1.6.45

2 years ago

1.6.48

2 years ago

1.6.47

2 years ago

1.6.49

2 years ago

1.8.70

1 year ago

1.9.99

1 year ago

1.8.71

1 year ago

1.9.98

1 year ago

1.8.72

1 year ago

1.9.97

1 year ago

1.8.73

1 year ago

1.9.96

1 year ago

1.6.51

2 years ago

1.9.95

1 year ago

1.6.50

2 years ago

1.9.94

1 year ago

1.6.53

2 years ago

1.9.93

1 year ago

1.6.52

2 years ago

1.9.92

1 year ago

1.9.91

1 year ago

1.6.54

2 years ago

1.9.90

1 year ago

1.4.35

2 years ago

1.2.12

2 years ago

1.4.34

2 years ago

1.2.13

2 years ago

1.4.37

2 years ago

1.4.36

2 years ago

1.2.16

2 years ago

1.4.38

2 years ago

1.2.17

2 years ago

1.2.14

2 years ago

1.2.15

2 years ago

1.3.32

2 years ago

1.3.33

2 years ago

1.3.34

2 years ago

1.8.56

2 years ago

1.8.57

2 years ago

1.8.58

2 years ago

1.8.59

2 years ago

1.9.100

1 year ago

1.7.54

2 years ago

1.7.55

2 years ago

1.7.56

2 years ago

1.5.38

2 years ago

1.5.39

2 years ago

1.5.40

2 years ago

1.2.18

2 years ago

1.2.19

2 years ago

1.9.89

1 year ago

1.9.88

1 year ago

1.9.87

1 year ago

1.9.86

1 year ago

1.9.85

1 year ago

1.9.84

1 year ago

1.9.83

1 year ago

1.9.82

1 year ago

1.9.81

1 year ago

1.9.80

1 year ago

1.2.20

2 years ago

1.2.23

2 years ago

1.2.24

2 years ago

1.2.21

2 years ago

1.2.22

2 years ago

1.2.27

2 years ago

1.2.28

2 years ago

1.2.25

2 years ago

1.2.26

2 years ago

1.2.29

2 years ago

1.9.79

1 year ago

1.9.78

1 year ago

1.9.77

1 year ago

1.9.76

1 year ago

1.9.75

1 year ago

1.9.74

1 year ago

1.9.73

1 year ago

1.9.103

1 year ago

1.2.30

2 years ago

1.2.31

2 years ago

1.9.101

1 year ago

1.9.102

1 year ago

1.2.32

2 years ago

1.2.11

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.9

2 years ago

1.2.10

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago