@blueprintjs/eslint-plugin
Advanced tools
Comparing version 0.3.2 to 0.4.0-alpha.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77743