New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tslint-react

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tslint-react - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

9

package.json
{
"name": "tslint-react",
"version": "3.0.0",
"version": "3.1.0",
"description": "Lint rules related to React & JSX for TSLint",

@@ -21,2 +21,9 @@ "main": "tslint-react.json",

},
"dependencies": {
"tsutils": "^1.7.0"
},
"peerDependencies": {
"tslint": "^5.1.0",
"typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev"
},
"devDependencies": {

@@ -23,0 +30,0 @@ "@types/colors": "^1.1.3",

5

README.md

@@ -12,4 +12,3 @@ [![NPM version](https://badge.fury.io/js/tslint-react.svg)](https://www.npmjs.com/package/tslint-react)

tslint-react has _implicit_ peer dependencies on TSLint and TypeScript. The recommended versions of those packages are
listed as `devDependencies`.
tslint-react has peer dependencies on TSLint and TypeScript.

@@ -29,2 +28,4 @@ To use these lint rules with the default preset, use configuration inheritance via the `extends` keyword.

To lint your `.ts` **and** `.tsx` files you can simply run `tslint -c tslint.json 'src/**/*.{ts,tsx}'`.
### Rules

@@ -31,0 +32,0 @@

@@ -65,2 +65,7 @@ "use strict";

}
// Ignore "ref" attribute.
// ref is not part of the props so using lambdas here will not trigger useless re-renders
if (node.name.text === "ref") {
return;
}
var expression = initializer.expression;

@@ -67,0 +72,0 @@ if (expression !== undefined && isLambda(expression)) {

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