-
-
Notifications
You must be signed in to change notification settings - Fork 77
<style> block is treated as JS #15
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
Comments
@msokk and your |
|
Here is the code: I'm using airbnb eslint config, that's allowed with this plugin? |
ok i se where is an issue, right now parser is parsing entire code from file. <template></template>
<style>
div {
background: red;
}
</style> There is no AST from style but Tokens are there: rules witch inerate over Tokens are going to validate css/html/js (only stylistic rules) 'max-len': ['error', 100, 2, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
}], @mysticatea is this working as expected? |
Thank you for this issue. However, this is one of known limitations. There is no workaround for now. I can refactor the rule as using AST instead of texts. As a side note, this plugin uses a different mechanism to
|
Thanks for clarifying. |
Hi,
After upgrading to
eslint-plugin-vue
v3 and finally figuring out to turn offeslint-plugin-html
, I got some
max-len
errors in style block - mostlybackground
rules.Is this expected that
eslint-plugin-vue
will lint CSS?ESLint version: 4.4.1
eslint-plugin-vue: 3.11.0
vue-eslint-parser: 2.0.0-beta.6
The text was updated successfully, but these errors were encountered: