Skip to content

Getting warnings even with allowTypedFunctionExpressions set to true #384

Closed
@saranshkataria

Description

@saranshkataria

After adding the
rules: { allowTypedFunctionExpressions: true }
for the alpha release (#149), I still see them as warnings

image

Repro

Code repo: https://github.com/saranshkataria/frontend-starter-kit

{
  rules: {
    allowTypedFunctionExpressions: true,
  }
}
import React from 'react';
import { hot } from 'react-hot-loader/root';

const App: React.FunctionComponent<{}> = () => <div>Hello World</div>;
App.displayName = 'App';
export default hot(App);

Expected Result
No warnings

Actual Result
Get warnings

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 1.5.1-alpha.5
@typescript-eslint/parser 1.5.1-alpha.5
TypeScript 3.3.4000
ESLint 5.15.3
node 8.15.0
npm 6.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: eslint-pluginIssues related to @typescript-eslint/eslint-plugintriageWaiting for team members to take a look

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions