-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Standard + Legacy Decorators #1340
Labels
Comments
For now I've published this plugin: https://github.com/mattdesl/eslint-plugin-legacy-decorators Usage after installing it + babel-eslint: // ... in package.json ...
"semistandard": {
"parser": "babel-eslint",
"plugins": ["legacy-decorators"]
} EDIT: Nevermind, I thought this would work but it doesn't. 😢 I think standard needs to explicitly pass parserOptions to the eslint CLI engine. Maybe this could be added in standard's configuration? |
Perhaps you can use |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of standard?
12.0.1
What operating system, Node.js, and npm version?
node 8.10.0, npm 6.1.0
What did you expect to happen?
I would expect there to be a way to use legacy decorators with standard and
babel-eslint
parser. I already have this in my package.json:What actually happened?
I cannot find a way to configure the
babel-eslint
parser to accept legacy decorator syntax. Is such a thing possible with standard?The text was updated successfully, but these errors were encountered: