{"id":26361,"library":"sass-lint-format-scss-lint","title":"Sass-lint scss-lint Default Formatter","description":"A formatter plugin for sass-lint that reproduces the default output style of scss-lint. Version 1.1.0 is the latest stable release. Requires sass-lint >= 2.0.0. This package is specifically designed for users migrating from scss-lint to sass-lint who want to maintain the same CLI output format. It is a simple adapter that transforms sass-lint's results into scss-lint's format string. No active development expected; primarily used in legacy projects.","status":"maintenance","version":"1.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/DanPurdy/sass-lint-format-scss-lint","tags":["javascript","sass-lint","formatter","scss-lint","Sass","scss","linter","lint","format"],"install":[{"cmd":"npm install sass-lint-format-scss-lint","lang":"bash","label":"npm"},{"cmd":"yarn add sass-lint-format-scss-lint","lang":"bash","label":"yarn"},{"cmd":"pnpm add sass-lint-format-scss-lint","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CommonJS require works in Node.js environments; ESM import is also valid as the package provides a default export.","wrong":"const formatter = require('sass-lint-format-scss-lint');","symbol":"default","correct":"import formatter from 'sass-lint-format-scss-lint';"},{"note":"The package exports a single default function; there is no named export 'format'.","wrong":"import { format } from 'sass-lint-format-scss-lint';","symbol":"format","correct":"const format = require('sass-lint-format-scss-lint');"},{"note":"The formatter is not integrated into sass-lint's built-in formatter options; it must be applied manually to the results object.","wrong":"sassLint.lintFiles({options}, {formatter: 'scss-lint'});","symbol":"use as sass-lint formatter","correct":"const sassLint = require('sass-lint'); const formatter = require('sass-lint-format-scss-lint'); sassLint.lintFiles({options}).then(results => console.log(formatter(results)));"}],"quickstart":{"code":"const sassLint = require('sass-lint');\nconst formatter = require('sass-lint-format-scss-lint');\n\nconst files = ['src/**/*.scss'];\nconst options = {\n  options: {\n    formatter: 'stylish', // default, but we override manually\n    cache: false,\n  },\n  files: { include: files },\n};\n\nsassLint.lintFiles(options)\n  .then(results => {\n    const output = formatter(results);\n    console.log(output);\n  })\n  .catch(err => console.error(err));","lang":"javascript","description":"Shows how to use the formatter to convert sass-lint results to scss-lint style output."},"warnings":[{"fix":"Ensure you pass the exact results object returned by sass-lint.lintFiles() (the raw output).","message":"The formatter expects the result object from sass-lint.lintFiles() directly; passing an array or modified object may cause errors.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install sass-lint-format-scss-lint' (or 'yarn add' / 'pnpm add').","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'sass-lint-format-scss-lint'"},{"fix":"Use 'const formatter = require('sass-lint-format-scss-lint');' (CommonJS) or 'import formatter from ...' (ESM).","cause":"Incorrect import style; using destructuring on a default export that is a function.","error":"TypeError: formatter is not a function"},{"fix":"Use 'sassLint = require('sass-lint');' then invoke 'sassLint.lintFiles()' or 'sassLint.lintText()'.","cause":"Using outdated or incorrect sass-lint API (require('sass-lint') returns an object with methods, not a function).","error":"sass-lint is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}