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

@magicspace/tslint-rules

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magicspace/tslint-rules - npm Package Compare versions

Comparing version 0.1.24 to 0.1.25

3

bld/rules/emptyLineAroundBlocksRule.js

@@ -203,2 +203,5 @@ "use strict";

}
else if (typescript_1.isCaseClause(parent) || typescript_1.isDefaultClause(parent)) {
return parent.getChildAt(siblingCount - 1);
}
if (parent.getChildCount() > 0) {

@@ -205,0 +208,0 @@ return parent.getChildAt(0);

6

bld/rules/importPathBeSmartRule.js

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

const RELATIVE_PATH_REGEX = /^(?:\.{1,2}[\\/])+/;
const CURRENT_RELATIVE_PATH_REGEX = /^\w/;
const ERROR_MESSAGE_NONSTANDARD_IMPORT_PATH = 'The import path is invalid.';
const UPPER_RELATIVE_PATH_REGEX = /^\.\.\//;
const ERROR_MESSAGE_NONSTANDARD_IMPORT_PATH = 'The import path could be smarter.';
class Rule extends tslint_1.Rules.AbstractRule {

@@ -59,3 +59,3 @@ apply(sourceFile) {

.join('/');
if (CURRENT_RELATIVE_PATH_REGEX.test(relativePath)) {
if (!UPPER_RELATIVE_PATH_REGEX.test(relativePath)) {
relativePath = `./${relativePath}`;

@@ -62,0 +62,0 @@ }

{
"name": "@magicspace/tslint-rules",
"version": "0.1.24",
"version": "0.1.25",
"description": "Custom TSLint rules for MagicSpace.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/makeflow/magicspace.git",

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