
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
@salesforce-ux/eslint-plugin-slds
Advanced tools
ESLint plugin provides custom linting rules specifically built for Salesforce Lightning Design System 2 (SLDS 2 beta)
ESLint plugin provides custom linting rules specifically built for Salesforce Lightning Design System 2 (SLDS 2 beta).
npm install @salesforce-ux/eslint-plugin-slds --save-dev
// .eslintrc.js
module.exports = {
plugins: ['@salesforce-ux/slds'],
extends: ['plugin:@salesforce-ux/slds/recommended']
};
// eslint.config.js
const { defineConfig } = require('eslint/config');
const sldsPlugin = require('@salesforce-ux/eslint-plugin-slds');
module.exports = defineConfig([
{
plugins: {
'@salesforce-ux/slds': sldsPlugin
},
extends: ['@salesforce-ux/slds/recommended']
}
]);
By default, the latest version of the plugin supports legacy and flat config systems.
enforce-bem-usage
: Identifies instances that use the double-dash (--) syntax for block-element-modifier (BEM) in classes.no-deprecated-classes-slds2
: Identifies classes that aren’t available in SLDS 2.modal-close-button-issue
: Identifies instances where the CSS classes or component attributes for the modal close button must be changed to follow the modal component blueprint.ISC
FAQs
ESLint plugin provides custom linting rules specifically built for Salesforce Lightning Design System 2 (SLDS 2 beta)
The npm package @salesforce-ux/eslint-plugin-slds receives a total of 16,060 weekly downloads. As such, @salesforce-ux/eslint-plugin-slds popularity was classified as popular.
We found that @salesforce-ux/eslint-plugin-slds demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.