Skip to content

Incorrectly generated space-before-function-paren #147

Closed
@akx

Description

@akx

🐛 Bug Report

  • tslint-to-eslint-config version: 0.2.5
  • ESLint version: 6.2.2
  • Node version: 12.6

Actual Behavior

The tool generates a

       "space-before-function-paren": [
           "error",
           {
               "anonymous": "never",
               "asyncArrow": "always",
               "constructor": "never",
               "method": "never",
               "named": "never",
           },
       ],

rule which does not validate when Eslint is starting:

	Configuration for rule "space-before-function-paren" is invalid:
	Value {"anonymous":"never","asyncArrow":"always","constructor":"never","method":"never","named":"never"} should be equal to one of the allowed values.
	Value {"anonymous":"never","asyncArrow":"always","constructor":"never","method":"never","named":"never"} should NOT have additional properties.
	Value {"anonymous":"never","asyncArrow":"always","constructor":"never","method":"never","named":"never"} should match exactly one schema in oneOf.

Expected Behavior

The rule is correctly generated according to the spec. It seems method and constructor shouldn't be there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers; welcome aboard!status: accepting prsPlease, send in a PR to resolve this! ✨type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions