Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install SCSS-Lint with RubyGems, add a .scss-lint.yml file to control its rules, then run scss-lint against your SCSS files. It remains a workable option for existing Ruby Sass projects, but its repository warns that its Ruby Sass dependency limits future compatibility; for a new project, evaluate Stylelint.

What SCSS-Lint does

SCSS-Lint is a command-line linter for files written in SCSS syntax. It checks code against configurable style rules and reports issues with the file, location, severity, linter name, and explanation. It can scan directories and file patterns or read code from standard input. The project also documents hooks, build-tool tasks, and editor integrations. See the SCSS-Lint repository.

Install SCSS-Lint

The documented prerequisites are Ruby 2.4 or newer, Sass 3.5.5 or newer, and SCSS-formatted files. These requirements refer to the tool’s documented Ruby Sass environment, not indented Sass syntax.

Install globally

gem install scss_lint

Install for a project

Add the gem to your project’s Gemfile, then install the bundle:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
gem 'scss_lint', require: false
bundle install

Keep require: false: SCSS-Lint monkey-patches Sass while traversing its parse tree, so loading it broadly can interfere with other Sass users in the same process.

Run a first scan

Scan a directory

SCSS-Lint searches the directory recursively:

scss-lint app/assets/stylesheets/

Scan selected files

Use a glob to limit the scan to matching files:

scss-lint app/assets/stylesheets/**/*.css.scss

Lint standard input

When piping a file into the command, provide the path SCSS-Lint should associate with the input:

cat some-file.scss | scss-lint --stdin-file-path=path/to/treat/stdin/as/having.scss

The supplied path matters because configuration and exclusions can depend on where a file is located.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Configure rules with .scss-lint.yml

By default, SCSS-Lint looks for configuration in this order: a path supplied with --config, .scss-lint.yml in the current working directory, then .scss-lint.yml in the user’s home directory. It loads the first matching file; it does not merge these locations. Configuration extends the tool’s defaults.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For example, this configuration scopes linting to an application’s stylesheets, excludes plugins, disables a rule, and sets indentation to two spaces with warning severity:

scss_files: 'app/assets/stylesheets/**/*.css.scss'
exclude: 'app/assets/stylesheets/plugins/**'

linters:
  BorderZero:
    enabled: false
  Indentation:
    severity: warning
    width: 2

Each linter can be enabled or disabled, and many have rule-specific settings. Severity can be configured globally or for an individual linter. To generate a configuration that disables currently failing linters, use the Config formatter, for example scss-lint --format=Config with the files you want to check. This can help teams adopt rules incrementally.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Make a narrow inline exception

Use inline comments when a specific file, block, or line needs an exception. For example:

// scss-lint:disable BorderZero
// scss-lint:enable BorderZero

Keep exceptions as small as possible and explain unusual ones in code review.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use SCSS-Lint in scripts and CI

The default formatter is suited to local feedback. The project also documents JSON, TAP, Files, CleanFiles, and Config formatters. JSON can feed machine processing; Config can help build an initial baseline.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

SCSS-Lint’s exit codes let automation distinguish outcomes:

Exit code Meaning
0 No lints
1 Warnings only
2 One or more errors
64 Invalid command usage
66 Missing files
69 Required library missing
70 Unexpected error
78 Invalid YAML or configuration
80 A glob matched no files

A gradual rollout can start by treating warnings as a baseline while the team tunes configuration, then make errors the failure threshold once the rules are established. That is a workflow choice based on the documented severities and exit codes, not a turnkey CI policy supplied by SCSS-Lint.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Connect it to an editor or build workflow

The project documents integrations for Vim/Syntastic, IntelliJ, Sublime Text, Atom, Emacs/Flycheck, TextMate 2, and Visual Studio Code. It also documents Git hooks through Overcommit, plus Rake and Maven integrations. Choose the integration that fits the repository’s existing toolchain rather than requiring every developer to adopt a new editor plugin.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

SCSS-Lint uses opinionated default rules for consistency and can load custom linters from repository directories or Ruby gems. Its repository documentation describes the available formatters and integrations.

Should a new project use SCSS-Lint or Stylelint?

The practical decision is usually between preserving compatibility in an existing Ruby Sass codebase and choosing a tool with a more current setup for a new project. The SCSS-Lint repository says the Sass core team is building Sass in Dart rather than Ruby and warns that SCSS-Lint’s dependency on Ruby Sass will eventually mean losing support for the latest Sass features and bug fixes. The repository lists version 0.60.0, released January 27, 2023, as its latest release.

Stylelint’s current getting-started guide recommends an npm setup with stylelint and stylelint-config-standard-scss, a stylelint.config.mjs configuration file, and a command like stylelint "**/*.scss". The SCSS configuration provides custom SCSS syntax and SCSS-specific rules. Stylelint’s overview says it parses SCSS, Sass, Less, and SugarSS and includes more than 100 built-in rules for modern CSS syntax. See the Stylelint getting-started guide and Stylelint project overview.

Consideration SCSS-Lint Stylelint
Runtime and package manager Ruby gem Node.js packages installed with npm in the current getting-started guide
Compatibility direction Depends on Ruby Sass; its repository warns this will limit support for newer Sass features and bug fixes Current setup uses the SCSS config package and supports modern CSS tooling
Configuration .scss-lint.yml, with configurable linters, severity, and rule options stylelint.config.mjs in the current getting-started guide, using stylelint-config-standard-scss
CI behavior Documented exit codes distinguish warnings, errors, and command or configuration failures not stated in the cited Stylelint getting-started guide
Editor integrations Project documents integrations for several editors and build workflows not stated in the cited Stylelint getting-started guide
Migration effort Existing rules and exceptions live in .scss-lint.yml Moving requires translating configuration and checking rule differences; direct compatibility is not established by the cited setup guides

For a maintained legacy repository already built around Ruby Sass and .scss-lint.yml, continuity may outweigh switching costs. For a new repository, the Ruby Sass maintenance warning makes Stylelint the stronger candidate to evaluate. A migration is not just a package swap: teams should map their existing rules and inline exceptions to the new configuration and verify behavior against their own files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.