Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable all rules on a specific line does not work #1105

Closed
danhandrea opened this issue Apr 4, 2018 · 1 comment

Comments

@danhandrea
Copy link

commented Apr 4, 2018

import type { MyType } from './my-file' // eslint-disable-line

Still shows

Parsing error: Unexpected token {

Nevermind, it's not the only issue. I'll just stop using standard.

@feross

This comment has been minimized.

Copy link
Member

commented May 15, 2018

It looks like you're using Flow or TypeScript. You need to use a plugin to help ESLint to parse these (since they're not JavaScript).

Take a look at the readme section which explains how to do it: https://standardjs.com/#can-i-use-a-javascript-language-variant-like-flow-or-typescript

@feross feross closed this May 15, 2018

@feross feross added the question label May 15, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Aug 13, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.