Registry / devops / sass-lint-rules

sass-lint-rules

JSON →
library1.0.2jsnpmunverified

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.

npm install sass-lint-rules
INSTALL
IMPORT
SIG · SASS-LINT-RULES
S
sass-lint-rules
devopsjavascriptv1.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

.sass-lint.yml
Use the config file path: node_modules/sass-lint-rules/.sass-lint.yml
require('sass-lint-rules')
This package is not a JavaScript module; it provides a config file. There is no importable symbol.

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
Debug
Known issues
deprecatedsass-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.
affects: all
gotchaThis 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.
affects: all
gotchaThe 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.
affects: all
Errors
Common errors & fixes
Cannot find module 'sass-lint-rules'
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
Upgrade
Version history
1.0.2latest on npm
Audit
Dependencies
sass-lintrequiredThe rules and config file are designed to be consumed by sass-lint; sass-lint must be installed separately.
Agent activity
2 hits · last 30 days
node
2
Resources
sass-lint-rules — npm install sass-lint-rules · libregistry