tslint-lines-between-class-members
Advanced tools
Comparing version
{ | ||
"name": "tslint-lines-between-class-members", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing to lines-between-class-members in ESLint", | ||
"scripts": { | ||
"compile": "tsc", | ||
"prepublish": "npm run compile", | ||
"postinstall": "cd ./integration && yarn", | ||
"lint": "tslint --config tslint.json --exclude node_modules **/*.ts", | ||
"test": "ava-ts src/**/test/**/*.spec.ts --verbose", | ||
"test:watch": "npm test -- --watch" | ||
"test:watch": "concurrently \"yarn test --watch\" \"yarn compile:watch\" -n \"ava,tsc\" -p -c \"magenta,blue\"", | ||
"compile": "tsc", | ||
"compile:watch": "tsc --watch", | ||
"prepublish": "yarn compile" | ||
}, | ||
@@ -27,7 +29,8 @@ "keywords": [ | ||
"ava-ts": "^0.24.3", | ||
"concurrently": "^4.1.0", | ||
"temp-dir": "^1.0.0", | ||
"ts-node": "^6.0.0", | ||
"typescript": "3.4.5", | ||
"tslint": "5.15.0" | ||
"tslint": "5.15.0", | ||
"typescript": "3.4.5" | ||
} | ||
} |
@@ -19,3 +19,3 @@ import * as ts from 'typescript'; | ||
const prevLine = getPrevLinesText(node, sourceFile); | ||
return prevLine.trim() === '{'; | ||
return /^((\s*{\s*)|([\w\s,<]*\>\s*{\s*))$/.test(prevLine); | ||
}; | ||
@@ -22,0 +22,0 @@ |
@@ -20,3 +20,3 @@ "use strict"; | ||
var prevLine = exports.getPrevLinesText(node, sourceFile); | ||
return prevLine.trim() === '{'; | ||
return /^((\s*{\s*)|([\w\s,<]*\>\s*{\s*))$/.test(prevLine); | ||
}; | ||
@@ -23,0 +23,0 @@ /** |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
23660
13.71%8
14.29%0
-100%8
14.29%1
Infinity%1
Infinity%