Socket
Socket
Sign inDemoInstall

@washingtonpost/eslint-plugin-wpds

Package Overview
Dependencies
1
Maintainers
0
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@washingtonpost/eslint-plugin-wpds

WPDS lint rules


Version published
Weekly downloads
1.7K
increased by27.55%
Maintainers
0
Created
Weekly downloads
 

Changelog

Source

2.4.0 (2024-06-28)

Features

  • switch to font display swap (#641) (bb1f5df)

Readme

Source

ESLint Plugin

Docs

WPDS Linting rules

  1. theme-colors - looks for colors properties in style objects that use hex values and suggests a design token replacement.

Installation

  • Install from npm
    npm i @washingtonpost/eslint-plugin-wpds/ --dev
    
  • Add plugin and set level of rules in eslint.rc
    module.exports = {
      ...
      plugins: [
        "@washingtonpost/wpds",
      ],
      ...
      rules: [
        "@washingtonpost/wpds/theme-colors": "warn",
      ]
    }
    

FAQs

Last updated on 28 Jun 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc