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.
Common errors
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
Warnings
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.
Install
npm install sass-lint-rules yarn add sass-lint-rules pnpm add sass-lint-rules Imports
- .sass-lint.yml wrong
require('sass-lint-rules')correctUse the config file path: node_modules/sass-lint-rules/.sass-lint.yml
Quickstart
// 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