1.0.0 • Published 10 days ago

@npmteam2024/impedit-dignissimos-quam v1.0.0

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

@npmteam2024/impedit-dignissimos-quam

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 @npmteam2024/impedit-dignissimos-quam:
npm install @npmteam2024/impedit-dignissimos-quam --save-dev

Usage

Add @npmteam2024/impedit-dignissimos-quam to your Stylelint config plugins array, then add rules you need to the rules list. All rules from @npmteam2024/impedit-dignissimos-quam need to be namespaced with order.

{
	"plugins": [
		"@npmteam2024/impedit-dignissimos-quam"
	],
	"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.

safevarapidirMicrosoftvestcurlwordbreaklimitedfpcontainsguidflagspathmulti-packageterminalES2015createWeakMapInt8ArrayRxcommandBigUint64Arraynegative zeroloadinghookslrucjksetterlogdropcall-boundpureexpression6to5jsdomstringBigInt64ArrayjestdeleteUint8ArrayECMAScript 6colourbufferstatuses-shimswatcheres7isConcatSpreadablevaluesPushsortedsameValueZeroglobpopmotionrmdiraccessibilitykarmainterruptswhatwgbannersharedarraybufferparserpackage.jsondeep-cloneflatES2023emitObject.fromEntriesString.prototype.matchAllphonedependencieshardlinkswatchingcss-in-jslazyrecursiveclass-validatortestserializernamesweaksetfigletawesomesaucebytelinewrappipespechookformponyfillhastypedFloat32Arraymobilecompile lessthroatES5macosnested cssarktypeworkflowreusekeyfetchtapesearchArray.prototype.findLastes6.envstoragegatewayiscallbindReflect.getPrototypeOfasyncreducerassertfastclonetestingl10nhashcharactersrm -frfullwidthxhrtoolkitconsoleexpresshelperstakearrayscloudsearchvalidatorform-validationreadablestreambusyshimprogressUint8ClampedArrayletagentcss variableStreamswatchFilestylerm -rfimmutableconnecttelephonepyyamlclassnamesauthenticationregularefficientfull-widthES6makespringIteratorslotoutputcolumnslengthbreaktrimEndindicatorreact animationloadbalancingURLmoduleswrapcompilerqueryremovecompare-0formatlesscssemrsharedqsoncefile systemSymbol.toStringTagspinneruser-streamsredacttrimgroup__proto__prototypemapreducesymlinkfast-clonewritefast-deep-cloneprotobuflinkelbbrowserlistObject.valuesavaruntimeroute53AsyncIteratorirqjwtzodqueueMicrotaskfilterstatelessscheme-validationsymlinksutilitybyteOffsetgdprWebSocketrdssigintprefixbindelasticacheclientlessfolderregular expressionfullminimalexecES2018es-abstractformbootstrap csssortmiddlewareHyBistylesheetwordwrapsqswindowsenvairbnbvariables in cssinstallerbluebirdstructuredClonettyebstimeprotocol-bufferscore-jsutilsYAMLformsArray.prototype.filtersnsFloat64Arraysanitizebddunicodeserializationmime-dbjson-schemaweakmapfast-copynameerrorasciistyled-componentsajvSet$.extendescapetoArraydataViewpushfindfunctiondiffdatastructuremomentvisualloggerdayjssignalES7schemeeventsECMAScript 2021configurablelookprotopositivedataviewutil.inspectcheckcensorsetchaiTypedArraygradients cssamazonduplexcloudformationelectroneslintpluginlaststarterpostcssa11ycolumndefineperformantconsumewalktostringtagexitcrypttoobjectdescriptor_.extendconstsymbolarrayprivateES2021mkdirInt32Arraytranspilespeedmixinsthrottledirectoryjavascriptnativeeslintconfignodeflagwatch[[Prototype]]bootstrap lesscloudwatchPromisefastframerregular expressionssettingsargparsecurriedreal-time
1.0.0

10 days ago