From d580308b7cff0e610ec51fb8bf7a92aaf4697e7e Mon Sep 17 00:00:00 2001 From: HamletDRC Date: Fri, 17 Feb 2017 19:14:26 +0100 Subject: [PATCH] #344 typedef rule recommendation - update defaults to be kebab cased --- additional_rule_metadata.json | 2 +- recommended_ruleset.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/additional_rule_metadata.json b/additional_rule_metadata.json index dab4f838e..4fcbe360b 100644 --- a/additional_rule_metadata.json +++ b/additional_rule_metadata.json @@ -566,7 +566,7 @@ "severity": "Important", "level": "Opportunity for Excellence", "group": "Clarity", - "recommendation": "[true, \"callSignature\", \"indexSignature\", \"parameter\", \"propertySignature\", \"variableDeclarator\", \"memberVariableDeclarator\"],", + "recommendation": "[true, \"call-signature\", \"arrow-call-signature\", \"parameter\", \"arrow-parameter\", \"property-declaration\", \"variable-declaration\", \"member-variable-declaration\"],", "commonWeaknessEnumeration": "398, 710" }, "typedef-whitespace": { diff --git a/recommended_ruleset.js b/recommended_ruleset.js index a3b67452e..17db2166e 100644 --- a/recommended_ruleset.js +++ b/recommended_ruleset.js @@ -145,7 +145,7 @@ module.exports = { "prefer-const": true, "prefer-for-of": true, "prefer-method-signature": true, - "typedef": [true, "callSignature", "indexSignature", "parameter", "propertySignature", "variableDeclarator", "memberVariableDeclarator"], + "typedef": [true, "call-signature", "arrow-call-signature", "parameter", "arrow-parameter", "property-declaration", "variable-declaration", "member-variable-declaration"], "underscore-consistent-invocation": true, "unified-signatures": true, "variable-name": true,