Sass Lint Rules (Chinese Translation)

raw JSON →
1.0.2 verified Fri May 01 auth: no javascript abandoned

A translation of sass-lint rule descriptions into Chinese, bundled with a Sass coding standard config file. Version 1.0.2 is the latest stable release, with no active development since 2016. It provides a Chinese-language reference for sass-lint rules and a pre-defined .sass-lint.yml configuration. The package is a thin wrapper around sass-lint and has no other differentiators.

error Cannot find module 'sass-lint-rules'
cause Trying to require the package as a module, but it only exports a config file.
fix
Do not use require('sass-lint-rules'). Instead, use the -c flag: sass-lint -c node_modules/sass-lint-rules/.sass-lint.yml
deprecated sass-lint itself is deprecated in favor of stylelint with scss plugin.
fix Migrate to stylelint + stylelint-scss: npm install --save-dev stylelint stylelint-scss and configure accordingly.
gotcha This package only provides translations and a config file. It does not include new lint rules beyond what sass-lint offers.
fix If you need actual linting functionality, install sass-lint separately.
gotcha The config file references rules that may no longer be valid in newer versions of sass-lint. The package has not been updated since sass-lint changes.
fix Review the config file and adjust rules manually to match your sass-lint version.
npm install sass-lint-rules
yarn add sass-lint-rules
pnpm add sass-lint-rules

Install sass-lint and sass-lint-rules, then run sass-lint using the provided Chinese-translated config file.

// Install both packages
npm install --save-dev sass-lint sass-lint-rules

// Run sass-lint with the provided config
npx sass-lint -c node_modules/sass-lint-rules/.sass-lint.yml -v -q