Closed justin808 closed 8 years ago
Would you mind providing the code example?
/* eslint new-cap: [2, {"capIsNewExceptions": ["DropTarget","DragSource"]}] */
it's those quotes
Could you clarify? I'm not sure what do you mean by that.
File with a header of that line produces the error.
Can't repro with this example -
/* eslint new-cap: [2, {"capIsNewExceptions": ["DropTarget","DragSource"]}] */
<div className="flex-card__header">{this.props.children}</div>;
and .jscsrc
like that -
{
validateQuoteMarks: { "mark": "'", "escape": true, "ignoreJSX": true },
esnext: true
}
Would you mind posting full content on https://gist.github.com?
I don't remember offhand what project it is, but I do remember that this file is a JSX file with some react.
The comment was on the very first line of the file, before imports.
Can't repro
I am experiencing this error as well, also on the first line of a file containing JSX. The error is reported on the first line of the file which is:
import React, {Component, PropTypes} from 'react';
I know it has nothing to do with this line because that exact line is present in many files that are not triggering the error. Something in the files is causing validateQuoteMarks to fail. Stack is the same as originally reported. Here is a gist containing the full contents of the file triggering the error:
https://gist.github.com/mlesk/ae6e9cef4c39afe92e42
My .jscsrc file:
{
"preset": "airbnb",
"disallowYodaConditions": true,
"disallowMultipleVarDecl": true,
"requireCurlyBraces": [
"do"
],
"requirePaddingNewLinesBeforeLineComments": {
"allExcept": "firstAfterCurly"
},
"requirePaddingNewLinesBeforeLineComments": null,
"requireObjectKeysOnNewLine": "true",
"requireObjectKeysOnNewLine": {
"allExcept": ["sameLine"]
},
"maxErrors": -1,
"maxErrors": null,
"fix": true,
"maximumLineLength": null,
"verbose": true
}
I also meet this problem, same with @mlesk .
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.