Skip to content

Commit c796dc4

Browse files
committed
ter-prefer-arrow-callback - allowNamedFunctions: true, suits react's functional components better
1 parent 1ddca97 commit c796dc4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ovos-media/coding-standard",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "ovos-media Coding Standard",
55
"main": "index.js",
66
"types": "index.d.ts",

tslint.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ const rules : tslint.Configuration.RawRulesConfig = Object.assign({}, rulesAirbn
118118
'no-this-assignment': [true, {'allow-destructuring': true}],
119119
'import-name': false, // from tslint-microsoft-contrib
120120
'object-shorthand-properties-first': false, // from tslint-consistent-codestyle
121+
'ter-prefer-arrow-callback': [true, {'allowNamedFunctions': true}], // suits React functional components better
121122
'ter-arrow-parens': [
122123
true,
123124
'as-needed',

0 commit comments

Comments
 (0)