1.0.0 • Published 16 days ago

@wemnyelezxnpm/doloremque-magni-natus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

@wemnyelezxnpm/doloremque-magni-natus

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 @wemnyelezxnpm/doloremque-magni-natus:
npm install @wemnyelezxnpm/doloremque-magni-natus --save-dev

Usage

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

{
	"plugins": [
		"@wemnyelezxnpm/doloremque-magni-natus"
	],
	"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.

ArrayBuffer.prototype.sliceansifastifyruntimegesturesES2023idclienthigher-orderpnpm9ECMAScript 2023getOwnPropertyDescriptorimmutabledayjsrobustapollojsdiffbufferapichaiECMAScript 2015matchcss-in-jsObject.getPrototypeOfwaapinegativeless cssavaCSSStyleDeclarationUint8ClampedArrayvariables in cssfullwidthprefixparentsprotocol-buffersdirectoryshebangoptioncharactersfromreact-testing-librarydefineharmonycoerciblereact-hooksemojithrottlees8__proto__look-upencryptionhookformfantasy-landshimjQueryReactiveXschemacolumncompareenderchannelcallbackMicrosoftjavascripterror-handlingcolumnsconcatfast-clonecurlReactiveExtensionsES5ES2022rm -rfmixinsmomentschemeregular expressionseslint-plugindescriptorsmimepackage.jsonuplistenersa11ycall-bindtc39syntaxhttpslimitedtapsanitizecachejestjapaneseinvariantString.prototype.trimStreamqsxdg-openisConcatSpreadabletoolkitmakeobjlogboundponyfillwatchinges2016toobjectshellclassnamestypaniontraverseinputpromiseIteratorfiglettoStringTagasciisidemergeflattenInt16Arraytoucheventstsframeworkarraybuffertapegrouphookslazypositivecalles7deepcopypureauthmacosarrayirqsafeperformancefastramdatrimEndArray.prototype.containses-shim APItrimRightless mixinsfseventsdropreact animationdirstyledeletefetchpropertydataViewserializeworkerUint16Arraybcryptdeep-copyajaxtypehashlookfindLasthandlersextendprivate dataimmerexit-codedeepObjectzeroInt32Arraydebuggerwrapiteratormime-dbbrowserlistfunctionconfigbreakexpressmimetypestrimLeftopenerparentfixed-widthratefsoutputtypeofutilityregularspeedESnextyamlrgbproptextforEachmulti-packagetoolscurrieddependency managerauthenticationECMAScript 2017PromisegraphqlcensortypeerrorspringcollectionpackageECMAScript 2022$.extendio-tspicomatchtoSortedbootstrap lessargumentsMaperrorxterminterruptsperformantglobwritableletESUnderscorerandomworkspace:*helperssetterhasinstallreusematchAllaccessorchinesetermnumbernpmcall-boundassertsenvironmentflagfunctionsgradients css3indicatorstarternegative zerovaluesassignECMAScript 2019utilpropertiestaskstatelessjsonschemadefaultBigInt64ArrayprocessunicodecliconfigurableutilitiesArrayBuffer#sliceprotojson-schema-validationCSSshamWeakSetextensionserializationvalueObject.entriesdeep-clonetestingeverycommandposequerystringlintmake dirthroatTypeScriptttytimecss lessdependenciescloneArray.prototype.filterpreserve-symlinksYAMLargumentphonecontainsmetadataspinnerstostringtagjsdomstreamspromisesecmascriptreducerfindupcore-jsformattingregular expression-0essymbolloadingconnectdataviewvestnested cssgetPrototypeOfsymbolsrmidleexecutablerecursiveelectronbyteLengthreadablestreamfast-copyvalidatorweaksetwgetcircularnamesremoveloggerArray.prototype.flatteneslintconfigexpressionsharedsigintdatastructurewalkingES2016optimizerestreeserializerPushlesscsseslintpluginlruentriesWebSocketequalitywatchkeyfind-upcssfulluser-streamsuninstallcolorsclassesbyteOffsetbufferscreatepasswordajvoffsetiterationsharedarraybufferbrowserstyleguidewindowsrangeerrorurlsbootstrap cssform-validationargparsesettingsrfc4122copyAsyncIteratortakeautoprefixerobjectprunedom-testing-librarydeepclonekeysbrowserslistsuperstructSetstylingmkdirminimalTypeBoxWebSocketsString.prototype.matchAlltranspilergetintrinsicspec_.extendappcomputed-typespushURLomittyped arrayECMAScript 63dwhatwgpostcss-pluginbundlingcharacternodees2017ECMAScript 2018nativestringinstallerjson-schemaexecpreprocessorinternalRegExp.prototype.flagsforms
1.0.0

16 days ago