question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typo in error message for object-curly-newline

See original GitHub issue

What version of ESLint are you using? 2.13.1

What parser (default, Babel-ESLint, etc.) are you using? babel-eslint

Please show your full configuration:

{ 'object-curly-newline' : 'error' }

What did you do? Please include the actual source code causing the issue.

eslint file.js --env=es6 --rule='object-curly-newline: [2]'
// file.js
const foo = {
    one : 1, two : 2
};

What did you expect to happen? Receive a grammatically correct error message.

Unexpected line break after opening brace

What actually happened? Please include the actual, raw output from ESLint. Received a grammatically incorrect error message.

Unexpected a line break after this open brace

Key words being: “Unexpected a line”


I may not have time to create a PR for a while. Filing this so it doesn’t get forgotten.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vitorbalcommented, Jul 21, 2016

I’ll take care of this.

0reactions
nzakascommented, Jul 22, 2016

Remember, bugs can be marked as accepted if you can reproduce. Only enhancement requests and new rules need consensus.

Read more comments on GitHub >

github_iconTop Results From Across the Web

object-curly-newline - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
vue/object-curly-newline - eslint-plugin-vue
Enforce consistent line breaks after opening and before closing braces in ` `
Read more >
eslint object-curly-newline conflicts prettier multi-line rationale
It allows configuring line breaks if there are line breaks inside properties, between properties and even ... 'object-curly-newline': 0,.
Read more >
ESLint v2.13.0 released - ESLint中文文档
We just pushed ESLint v2.13.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs...
Read more >
ValidateJavaScript - Online Tool to Find & Fix JavaScript Errors
... errors and help prevent potentially destructive bugs in JavaScript & JSX (React.js) code. ... Find & Fix JavaScript Errors ... object-curly-newline
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found