Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Labels break JSHint #128

Open
iamlikeme-x opened this issue Oct 25, 2016 · 0 comments
Open

Labels break JSHint #128

iamlikeme-x opened this issue Oct 25, 2016 · 0 comments

Comments

@iamlikeme-x
Copy link

iamlikeme-x commented Oct 25, 2016

The following produces the error E053 - Export declarations are only allowed at the top level of module scope.

Whilst I appreciate that const and export shouldn't be used in production code (unless controlled environments, eg. Electron - the use case I have) this still shouldn't be happening.

testLabel: {
    break testLabel;
}
export const test = 'test';

It appears JSHint isn't matching the closing brace properly, as the following supresses the error despite being syntactically incorrect:

testLabel: {
    break testLabel;
}
}
export const test = 'test';
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant