Reputation: 1
I'm trying to use StandardJS to lint my code, but it gives me this unexpected parsing error when I run standard --fix
:
standard: Use JavaScript Standard Style (https://standardjs.com)
C:\Users\<path>\index.js:7:11: Parsing error: Unexpected token =
Here is the part of my code it's referring to (indicating the 7th line, there is a '>' symbol):
export class DiscordEmbed {
constructor () {
}
title = null;
description = null;
> url = null;
color = null;
fields= [ ];
thumbnail = { url: null };
image = { url: null };
author = { name: null, url: null, icon_url: null };
footer = { text: null, icon_url: null };
...
I expected StandardJS to lint my code without any difficulties, as my code is working as intended, I've tested it multiple times. This makes me believe that this is a StandardJS-specific problem.
Upvotes: 0
Views: 425