]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document some basic code conventions for us (#32778)
authorMark Otto <markd.otto@gmail.com>
Wed, 13 Jan 2021 19:06:07 +0000 (11:06 -0800)
committerXhmikosR <xhmikosr@gmail.com>
Fri, 15 Jan 2021 07:22:27 +0000 (09:22 +0200)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/content/docs/4.5/extend/approach.md

index 19e3e0658a78209190d3bf163d672bf9cf2440c5..ce04c5765e0288a75dcbb20ff0a4cdde9a1194c1 100644 (file)
@@ -75,3 +75,11 @@ Specifically regarding custom CSS, utilities can help combat increasing file siz
 ## Flexible HTML
 
 While not always possible, we strive to avoid being overly dogmatic in our HTML requirements for components. Thus, we focus on single classes in our CSS selectors and try to avoid immediate children selectors (`>`). This gives you more flexibility in your implementation and helps keep our CSS simpler and less specific.
+
+## Code conventions
+
+[Code Guide](https://codeguide.co/) (from Bootstrap co-creator, @mdo) documents how we write our HTML and CSS across Bootstrap. It specifices guidelines for general formatting, common sense defaults, property and attribute orders, and more.
+
+We use [Stylelint](https://stylelint.io/) to enforce these standards and more in our Sass/CSS. [Our custom Stylelint config](https://github.com/twbs/stylelint-config-twbs-bootstrap) is open source and available for others to use and extend.
+
+We use [vnu-jar](https://www.npmjs.com/package/vnu-jar) to enforce standard and semantic HTML, as well as detecting common errors.