Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blueprintjs/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blueprintjs/eslint-plugin - npm Package Compare versions

Comparing version 0.3.2 to 0.4.0-alpha.0

6

lib/rules/classes-constants.js

@@ -26,4 +26,4 @@ "use strict";

// find all pt- prefixed classes, except those that begin with pt-icon (handled by other rules).
// currently support pt- and bp3- prefixes.
const BLUEPRINT_CLASSNAME_PATTERN = /[^\w-<.]?((pt|bp3)-(?!icon-?)[\w-]+)/g;
// currently support "pt-", "bp3-", "bp4-" prefixes.
const BLUEPRINT_CLASSNAME_PATTERN = /[^\w-<.]?((pt|bp3|bp4)-(?!icon-?)[\w-]+)/g;
exports.classesConstantsRule = createRule_1.createRule({

@@ -130,3 +130,3 @@ name: "classes-constants",

const className = text
.replace(/(pt|bp3)-/, "")
.replace(/(pt|bp3|bp4)-/, "")
.replace(/-/g, "_")

@@ -133,0 +133,0 @@ .toUpperCase();

{
"name": "@blueprintjs/eslint-plugin",
"version": "0.3.2",
"version": "0.4.0-alpha.0",
"description": "ESLint rules for use with @blueprintjs packages",

@@ -19,3 +19,3 @@ "main": "lib/index.js",

"devDependencies": {
"@blueprintjs/node-build-scripts": "^1.5.0",
"@blueprintjs/node-build-scripts": "^1.6.0-alpha.0",
"@types/dedent": "^0.7.0",

@@ -22,0 +22,0 @@ "dedent": "^0.7.0",

@@ -27,4 +27,4 @@ /*

// find all pt- prefixed classes, except those that begin with pt-icon (handled by other rules).
// currently support pt- and bp3- prefixes.
const BLUEPRINT_CLASSNAME_PATTERN = /[^\w-<.]?((pt|bp3)-(?!icon-?)[\w-]+)/g;
// currently support "pt-", "bp3-", "bp4-" prefixes.
const BLUEPRINT_CLASSNAME_PATTERN = /[^\w-<.]?((pt|bp3|bp4)-(?!icon-?)[\w-]+)/g;

@@ -143,3 +143,3 @@ type MessageIds = "useBlueprintClasses";

const className = text
.replace(/(pt|bp3)-/, "")
.replace(/(pt|bp3|bp4)-/, "")
.replace(/-/g, "_")

@@ -146,0 +146,0 @@ .toUpperCase();

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc