Skip to content

Commit a48eaa4

Browse files
committed
Disable ter-arrow-parens
Since we're using TypeScript and typing a function arguments requires parens, it would be more streamlined to allow parens usage.
1 parent 137d19f commit a48eaa4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
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.4.0",
3+
"version": "1.4.1",
44
"description": "ovos-media Coding Standard",
55
"main": "index.js",
66
"types": "index.d.ts",

tslint.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,7 @@ const rules : tslint.Configuration.RawRulesConfig = Object.assign({}, rulesAirbn
119119
'import-name': false, // from tslint-microsoft-contrib
120120
'object-shorthand-properties-first': false, // from tslint-consistent-codestyle
121121
'ter-prefer-arrow-callback': [true, {'allowNamedFunctions': true}], // suits React functional components better
122-
'ter-arrow-parens': [
123-
true,
124-
'as-needed',
125-
{ requireForBlockBody: false }, // for compatibility with prettier's arrowParens: 'avoid'
126-
],
122+
'ter-arrow-parens': false,
127123
'no-boolean-literal-compare': false,
128124
// added ignore-bound-class-methods for compatibility with prettier always adding semicolons there
129125
// https://github.com/prettier/prettier/issues/1444

0 commit comments

Comments
 (0)