sass-lint-config-brainly
raw JSON → 1.0.1 verified Fri May 01 auth: no javascript deprecated
Brainly's shared configuration for sass-lint, a deprecated SCSS linter. Version 1.0.1 is the current stable release. This package provides a pre-defined .sass-lint.yml file to enforce consistent coding standards across Brainly projects. It requires sass-lint ^1.10.2 as a peer dependency. The package is part of a monorepo of frontend tool configs and is intended for internal use, though it can be adopted by other projects. Note that sass-lint itself is deprecated in favor of stylelint, and this config is no longer actively developed.
Common errors
error Cannot find module 'sass-lint-config-brainly' ↓
cause Package not installed or not in node_modules
fix
Run npm install --save-dev sass-lint-config-brainly
Warnings
deprecated sass-lint is deprecated; consider migrating to stylelint ↓
fix Replace sass-lint with stylelint and use stylelint-scss or similar plugins.
gotcha Direct path to .sass-lint.yml may fail in yarn workspaces ↓
fix Use `node -p 'require.resolve("sass-lint-config-brainly")'` instead.
Install
npm install sass-lint-config-brainly yarn add sass-lint-config-brainly pnpm add sass-lint-config-brainly Imports
- config path wrong
sass-lint --config node_modules/sass-lint-config-brainly/.sass-lint.ymlcorrectsass-lint --config `node -p 'require.resolve("sass-lint-config-brainly")'`
Quickstart
npm install --save-dev sass-lint-config-brainly sass-lint
sass-lint --config `node -p 'require.resolve("sass-lint-config-brainly")'`