twiknight / eslint-plugin-vue Goto Github PK
View Code? Open in Web Editor NEWEslint plugin for vue components (.vue files)
License: MIT License
Eslint plugin for vue components (.vue files)
License: MIT License
Since Vue 2 supports using JSX in render function, this plugin should offer some custom rules like jsx-uses-vars etc...
Can you give the supported rules like this https://github.com/yannickcr/eslint-plugin-react#list-of-supported-rules?
https://github.com/Twiknight/eslint-plugin-vue/blob/master/lib/processors/vueProcessor.js#L14
childNodes[0]
is undefined when script tag is empty.
If a .vue
file contains no <script>
tag, eslint would throw following error:
Module build failed: TypeError: Cannot read property 'forEach' of undefined
This is the consequence of sending an empty array as default text set to eslint.
preprocess: function (text, filename) {
...
return []
}
https://github.com/Twiknight/eslint-plugin-vue/blob/master/lib/processors/vueProcessor.js#L17
I have .vue files and have eslint rule
"linebreak-style": ["error", "windows"],
In all files CRLF, but when run eslint it say that found LF in all files
P.S.: Using
Could webstorm use this plugin?
I can't get this to detect my .vue
files at all. Here's my config:
{
"plugins": ["vue"],
"extends": "vue",
"rules": {
"quotes": [2, "double"]
}
}
It's linting my regular JS files just fine. Am I missing something obvious? There's no errors from the cli or anything.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.