Skip to content
Permalink
Browse files

test(eslint-plugin): arrow-paren: add extra case (#432)

  • Loading branch information...
bradzacher authored and JamesHenry committed Apr 24, 2019
1 parent 3f305b1 commit 06538e36c81fb2ece35d512e5fbfa3b14003798c
Showing with 7 additions and 1 deletion.
  1. +2 −1 .vscode/launch.json
  2. +5 −0 packages/eslint-plugin/tests/eslint-rules/arrow-parens.test.ts
@@ -12,7 +12,8 @@
"program": "${workspaceFolder}/node_modules/jest/bin/jest.js",
"args": [
"--runInBand",
"tests/rules/${fileBasenameNoExtension}"
// needs the '' around it so that the () are properly handled
"'tests/(.+/)?${fileBasenameNoExtension}'"
],
"sourceMaps": true,
"console": "integratedTerminal",
@@ -13,6 +13,11 @@ ruleTester.run('arrow-parens', rule, {
'const foo = <T>(t: T) => {};',
'const foo = <T>((t: T) => {});',
'const foo = function <T>(t: T) {};',
`
const foo = <T>(bar: any): void => {
// Do nothing
}
`,
{
code: 'const foo = t => {};',
options: ['as-needed'],

0 comments on commit 06538e3

Please sign in to comment.
You can’t perform that action at this time.