tslint-microsoft-contrib
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -40,2 +40,3 @@ "use strict"; | ||
level: 'Opportunity for Excellence', | ||
recommendation: 'false,', | ||
group: 'Deprecated', | ||
@@ -42,0 +43,0 @@ commonWeaknessEnumeration: '398, 710' |
@@ -42,2 +42,3 @@ "use strict"; | ||
level: 'Opportunity for Excellence', | ||
recommendation: 'false,', | ||
group: 'Deprecated', | ||
@@ -44,0 +45,0 @@ commonWeaknessEnumeration: '398, 710' |
@@ -40,2 +40,3 @@ "use strict"; | ||
group: 'Deprecated', | ||
recommendation: 'false,', | ||
commonWeaknessEnumeration: '398, 710' | ||
@@ -42,0 +43,0 @@ }; |
{ | ||
"name": "tslint-microsoft-contrib", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "TSLint Rules for Microsoft", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -91,3 +91,3 @@ "use strict"; | ||
var roleAttributeValue = roleAttribute ? JsxAttribute_1.getStringLiteral(roleAttribute) : ''; | ||
var isPresentationRole = !!roleAttributeValue.toLowerCase().match(/\bpresentation\b/); | ||
var isPresentationRole = !!String(roleAttributeValue).toLowerCase().match(/\bpresentation\b/); | ||
var isEmptyAlt = JsxAttribute_1.isEmpty(altAttribute) || JsxAttribute_1.getStringLiteral(altAttribute) === ''; | ||
@@ -94,0 +94,0 @@ var allowNonEmptyAltWithRolePresentation = options.length > 1 |
@@ -34,2 +34,3 @@ "use strict"; | ||
level: 'Opportunity for Excellence', | ||
recommendation: 'false,', | ||
group: 'Deprecated' | ||
@@ -36,0 +37,0 @@ }; |
@@ -11,3 +11,3 @@ [![npm version](https://badge.fury.io/js/tslint-microsoft-contrib.svg)](https://badge.fury.io/js/tslint-microsoft-contrib) | ||
Version 5.0.2 (Stable) | ||
Version 5.0.3 (Stable) | ||
------------- | ||
@@ -18,3 +18,3 @@ The project has been in use for several years on multiple projects. Please report any bugs or false positives you might find! | ||
Version 5.0.3 (In-Development) | ||
Version 5.0.4 (In-Development) | ||
------------- | ||
@@ -31,3 +31,3 @@ The [Latest Development Version](https://github.com/Microsoft/tslint-microsoft-contrib/tree/releases) is available online. | ||
* [5.0.2](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-5.0.2) | ||
* [5.0.3](https://github.com/Microsoft/tslint-microsoft-contrib/tree/npm-5.0.3) | ||
@@ -34,0 +34,0 @@ #### TSLint and corresponding tslint-microsoft-contrib version |
@@ -120,3 +120,3 @@ /** | ||
"jsdoc-format": true, | ||
"max-classes-per-file": [true, 3], // we generally recommend making one public class per file | ||
"max-classes-per-file": [true, 3], // we generally recommend making one public class per file | ||
"max-file-line-count": true, | ||
@@ -254,3 +254,3 @@ "max-func-body-length": [true, 100, {"ignore-parameters-to-function-regex": "describe"}], | ||
"missing-optional-annotation": false, // now supported by TypeScript compiler | ||
"no-duplicate-case": true, | ||
"no-duplicate-case": false, | ||
"no-duplicate-parameter-names": false, // now supported by TypeScript compiler | ||
@@ -260,10 +260,10 @@ "no-empty-interfaces": false, // use tslint no-empty-interface rule instead | ||
"no-multiple-var-decl": false, // use tslint one-variable-per-declaration rule instead | ||
"no-stateless-class": true, | ||
"no-stateless-class": false, | ||
"no-switch-case-fall-through": false, // now supported by TypeScript compiler | ||
"no-var-self": true, | ||
"react-tsx-curly-spacing": true, | ||
"no-var-self": false, | ||
"react-tsx-curly-spacing": false, | ||
"typeof-compare": false, // the valid-typeof rule is currently superior to this version | ||
"valid-typeof": true, | ||
"valid-typeof": false, | ||
} | ||
}; | ||
@@ -296,3 +296,3 @@ { | ||
"missing-optional-annotation": false, | ||
"no-duplicate-case": true, | ||
"no-duplicate-case": false, | ||
"no-duplicate-parameter-names": false, | ||
@@ -302,10 +302,10 @@ "no-empty-interfaces": false, | ||
"no-multiple-var-decl": false, | ||
"no-stateless-class": true, | ||
"no-stateless-class": false, | ||
"no-switch-case-fall-through": false, | ||
"no-var-self": true, | ||
"react-tsx-curly-spacing": true, | ||
"no-var-self": false, | ||
"react-tsx-curly-spacing": false, | ||
"typeof-compare": false, | ||
"valid-typeof": true | ||
"valid-typeof": false | ||
}, | ||
"rulesDirectory": "./" | ||
} |
@@ -39,2 +39,3 @@ "use strict"; | ||
level: 'Opportunity for Excellence', | ||
recommendation: 'false,', | ||
group: 'Deprecated' | ||
@@ -41,0 +42,0 @@ }; |
540820
12021