Typo in error message for object-curly-newline
See original GitHub issueWhat 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:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take care of this.
Remember, bugs can be marked as accepted if you can reproduce. Only enhancement requests and new rules need consensus.