Skip to content

Linter rule crashes: function-paren-newline, arrow-spacing, keyword-spacing, space-infix-ops #109

@jguddas

Description

@jguddas

i came across some error causing rules while trying around with the airbnb eslint preset


will throw error if not disabled

console.log! 'hello world'
"function-paren-newline": "off",
indent: "off",

will throw error if not disabled

if true or false: console.log('hello')
"space-infix-ops": "off",

will throw error if not disabled

(() -> console.log())()
"arrow-spacing": "off",

will stop working without throwing any errors if not disabled

if a:
  console.log('a')
elif b:
  console.log('b')
"keyword-spacing": "off",

rules that will not crash eslint but are unnecessary

semi: "off",
"comma-dangle": "off",
"brace-style": "off",
"space-before-blocks": "off",

https://github.com/jguddas/lsc-eslint-error-example

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions