1.9.103 • Published 12 months ago

@hishprorg/quaerat-natus-cumque v1.9.103

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months 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

1 year ago

1.8.61

1 year ago

1.8.62

1 year ago

1.8.63

1 year ago

1.6.40

1 year ago

1.8.64

1 year ago

1.8.65

1 year ago

1.6.42

1 year ago

1.8.66

1 year ago

1.6.41

1 year ago

1.8.67

1 year ago

1.6.44

1 year ago

1.8.68

1 year ago

1.6.43

1 year ago

1.8.69

1 year ago

1.6.46

1 year ago

1.6.45

1 year ago

1.6.48

1 year ago

1.6.47

1 year ago

1.6.49

1 year ago

1.8.70

1 year ago

1.9.99

12 months ago

1.8.71

1 year ago

1.9.98

12 months ago

1.8.72

1 year ago

1.9.97

12 months ago

1.8.73

1 year ago

1.9.96

12 months ago

1.6.51

1 year ago

1.9.95

12 months ago

1.6.50

1 year ago

1.9.94

12 months ago

1.6.53

1 year ago

1.9.93

12 months ago

1.6.52

1 year ago

1.9.92

12 months ago

1.9.91

12 months ago

1.6.54

1 year ago

1.9.90

12 months ago

1.4.35

1 year ago

1.2.12

1 year ago

1.4.34

1 year ago

1.2.13

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.2.16

1 year ago

1.4.38

1 year ago

1.2.17

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.3.32

1 year ago

1.3.33

1 year ago

1.3.34

1 year ago

1.8.56

1 year ago

1.8.57

1 year ago

1.8.58

1 year ago

1.8.59

1 year ago

1.9.100

12 months ago

1.7.54

1 year ago

1.7.55

1 year ago

1.7.56

1 year ago

1.5.38

1 year ago

1.5.39

1 year ago

1.5.40

1 year ago

1.2.18

1 year ago

1.2.19

1 year 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

1 year ago

1.2.23

1 year ago

1.2.24

1 year ago

1.2.21

1 year ago

1.2.22

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.2.29

1 year 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

12 months ago

1.2.30

1 year ago

1.2.31

1 year ago

1.9.101

12 months ago

1.9.102

12 months ago

1.2.32

1 year ago

1.2.11

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.9

1 year ago

1.2.10

1 year ago

1.2.6

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago