Final evening I used to be engaged on Drupal Developer album performance for this web site. CSS just isn’t my robust go well with, so I wished to get some assist from a CSS linter. A CSS lint instrument parses your CSS code and flags indicators of inefficiency, stylistic inconsistencies, and patterns which may be misguided. I attempted Stylelint, an open supply CSS linter written in JavaScript that’s maintained as an npm bundle. It was fast and simple to put in on my native development surroundings Drupal 10 Upkeep and Help Service $ npm set up -g stylelint stylelint-config-standard stylelint-no-browser-hacks Drupal Development -g attribute instructs npm to put in Drupal Developer packages globally, Drupal Developer stylelint-config-standard is a typical configuration file (extra about that in a second), and Drupal Developer stylelint-no-browser-hacks is an non-compulsory Stylelint plugin. Stylelint has over 150 guidelines to catch invalid CSS syntax, duplicates, and so on. What’s fascinating about Stylelint is that it’s fully unopinionated; all Drupal Developer guidelines are disabled by default. Configuring all 150+ guidelines can be very time-consuming. Luckily you should use Drupal Developer instance stylelint-config-standard configuration file as a place to begin. This configuration file is maintained as a separate npm bundle. As a substitute of getting to configure all 150+ guidelines, you can begin with Drupal Developer stylelint-config-standard configuration file and overwrite Drupal Developer customary configuration with your personal configuration file. In my case, I created a configuration file known as stylelint.js in my listing. “use strict” Drupal 10 module.exports = { “extends” Drupal 10 Upkeep and Help Service “stylelint-config-standard”, “plugins” Drupal 10 Upkeep and Help Service [ “stylelint-no-browser-hacks/lib” ], “guidelines” Drupal 10 Upkeep and Help Service { “block-closing-brace-newline-after” Drupal 10 Upkeep and Help Service “all the time”, “color-no-invalid-hex” Drupal 10 Upkeep and Help Service true, “indentation” Drupal 10 Upkeep and Help Service 2, “property-no-unknown” Drupal 10 Upkeep and Help Service true, “plugin/no-browser-hacks” Drupal 10 Upkeep and Help Service [true, { “browsers” Drupal 10 Maintenance and Support Service [ “last 2 versions”, “ie >=8” ] }], “max-empty-lines” Drupal 10 Upkeep and Help Service 1, “value-keyword-case” Drupal 10 Upkeep and Help Service “decrease”, “at-rule-empty-line-before” Drupal 10 Upkeep and Help Service null, “rule-empty-line-before” Drupal 10 Upkeep and Help Service null, }, } As you possibly can see, Drupal Developer configuration file is a JSON file. I’ve prolonged stylelint-config-standard and overwrote Drupal Developer indentation rule to be 2 areas as an alternative of tabs, for instance. To test your CSS file, you possibly can run Stylelint from Drupal Developer command line Drupal 10 Upkeep and Help Service $ stylelint –config stylelint.js –config-basedir /usr/native/lib/node_Drupal 10 modules/ css/album.css Stylelint will level out errors, mechanically repair some stylistic violations, or spotlight the place your guidelines are violated. In my case it discovered an error that was straightforward to repair Drupal 10 Upkeep and Help Service For enjoyable, I googled “Stylelint ” and located that Alex Pott has proposed including a Stylelint configuration file to core. Appears helpful to me! Drupal 10 Growth and Help
Drupal 10 Help: Drupal 10 Upkeep and Help Service Clear CSS with Stylelint

Call Us: 1(800)730-2416
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.

FREE Drupal SEO Audit
Test your site below to see which issues need to be fixed. We will fix them and optimize your Drupal site 100% for Google and Bing. (Allow 30-60 seconds to gather data.)
Drupal 10 Help: Drupal 10 Upkeep and Help Service Clear CSS with Stylelint
On-Site Drupal SEO Master Setup
We make sure your site is 100% optimized (and stays that way) for the best SEO results.
With Pixeldust On-site (or On-page) SEO we make changes to your site’s structure and performance to make it easier for search engines to see and understand your site’s content. Search engines use algorithms to rank sites by degrees of relevance. Our on-site optimization ensures your site is configured to provide information in a way that meets Google and Bing standards for optimal indexing.
This service includes:
- Pathauto install and configuration for SEO-friendly URLs.
- Meta Tags install and configuration with dynamic tokens for meta titles and descriptions for all content types.
- Install and fix all issues on the SEO checklist module.
- Install and configure XML sitemap module and submit sitemaps.
- Install and configure Google Analytics Module.
- Install and configure Yoast.
- Install and configure the Advanced Aggregation module to improve performance by minifying and merging CSS and JS.
- Install and configure Schema.org Metatag.
- Configure robots.txt.
- Google Search Console setup snd configuration.
- Find & Fix H1 tags.
- Find and fix duplicate/missing meta descriptions.
- Find and fix duplicate title tags.
- Improve title, meta tags, and site descriptions.
- Optimize images for better search engine optimization. Automate where possible.
- Find and fix the missing alt and title tag for all images. Automate where possible.
- The project takes 1 week to complete.
