This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to arrow-return-shorthand and fix metadata
- Loading branch information
1 parent
f7ca02f
commit 00b1d2e
Showing
15 changed files
with
68 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
ruleName: arrow-return-shorthand | ||
description: 'Suggests to convert `() => { return x; }` to `() => x`.' | ||
hasFix: true | ||
optionsDescription: |- | ||
|
||
If `multiline` is specified, then this will warn even if the function spans multiple lines. | ||
options: | ||
type: string | ||
enum: | ||
- multiline | ||
optionExamples: | ||
- '[true]' | ||
- '[true, "multiline"]' | ||
type: functionality | ||
typescriptOnly: false | ||
layout: rule | ||
title: 'Rule: arrow-return-shorthand' | ||
optionsJSON: |- | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"multiline" | ||
] | ||
} | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": { | ||
"arrow-return-shorthand": true | ||
}, | ||
"jsRules": { | ||
"arrow-return-shorthand": true | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"rules": { | ||
"arrow-return-shorthand": [true, "multiline"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
test/rules/prefer-arrow-shorthand-return/multiline/tslint.json
This file was deleted.
Oops, something went wrong.