Questions tagged [standardjs]
35 questions
0
votes
1 answer
StandardJS and React class export Unexpected token =
Can anyone shed some light on the notice I am getting back from StandardJS?
Parsing error: Unexpected token =
Code is as follows:
export default class foreignDataFormat extends _base {
static input = class ForeignDataFormatInput extends…

Simon F
- 3
- 1
- 2
0
votes
1 answer
JS: Lint error: Unexpected token =
I do get an standardJs lint error
/lib/with-apollo-client.js:7:24: Parsing error: Unexpected token =
for this snippet, which is from https://github.com/zeit/next.js/blob/canary/examples/with-apollo/lib/with-apollo-client.js
import initApollo from…

user3142695
- 15,844
- 47
- 176
- 332
0
votes
1 answer
The '__proto__' property is deprecated with standard js
How to change the this.constructor.prototype.__proto__ = Error.prototype as per the standard js rules. Standard Js is throwing The '__proto__' property is deprecated. So what will be correct solution for the same.
Thanks in advance.

Shravan Jain
- 720
- 1
- 11
- 32
0
votes
1 answer
How can I prevent prettier from removing eslint standardJS comments?
StandardJS (based on eslint) uses special comments like
function ClassName () { // eslint-disable-line no-unused-vars
That can not be broken down to the next line - even with long ClassNames. How can I prevent prettier from breaking the comment to…

Hoffmann
- 1,050
- 9
- 26
0
votes
1 answer
eslint/standard gives paring error
I'm using standardJS (eslint). For this line I do get a parsing error: Unexpected token = (null), which I do not understand:
static displayName = `WithData(${getComponentDisplayName(ComposedComponent)})`
Do I have to add any configuration? I am…

user3142695
- 15,844
- 47
- 176
- 332