Comments (8)
@MeirionHughes just a quick heads up: I did a proof of concept to test it out yesterday, to get a break from writing tests for regex and fixing regex code to improve the syntax highlighting:-)
Still not 100% correct, but this is after like an hour of playing around:
It's pretty easy to intergrate, great product!, Had most of the issues, because of typescript definitions that code uses and the default ones for node. Still need to figure out why it didn't return back the issues it finds based on the code behind/ ts code. But probably with a bit more digging I can get this to works, guess it is just some path that is different or something like that.
My guess is that it would be just as easy to intergrate into other editors.
from template-lint.
That is kind of the plan. The next big change here is to add a project-wide management class that maintains information for all files (and aurelia resources). It then lints each html file and reports issues for each. Any IDE plugin then simply needs to feed the file updates to the project-manager and report the issues.
from template-lint.
Maybe this project helps a bit: https://github.com/Microsoft/vscode-htmlhint
Or any other of the available linters but I thought an HTML linter would be close enough to a template linter. 😄
from template-lint.
Cool thanks;
from template-lint.
@MeirionHughes, keep in mind, that VSCode is just one potential IDE that might use it to create better Aurelia (IDE) plugin - don't add anything VSCode specific there :)
@denofevil has created basic Aurelia plugin AureliaStorm for IntelliJ platform (IDEA/Webstorm IDEs). Writing feature rich plugins for IDEs would become so much easier if there was a service/library that wold do the heavy-lifting for the IDE plugin.
from template-lint.
aurelia project is looking to have a vscode plugin, lead by @eriklieben based on his initial work.
@atsu85 on the most part everything will be generic, so if anyone wants to use the linter on another IDE for feedback there won't be anything hindering them; but commandeering this issue for anything that is needed by @eriklieben
from template-lint.
nice! Looking good. :)
I'm in the middle of reworking this project a little bit so that it can track all the project files and all the issues. see: https://github.com/MeirionHughes/aurelia-template-lint/issues/106
Reporting the start and finish offsets (of file stream) will probably help you a lot.
The idea will be you will watch for file changes then send the files to this lint for updating. the lint then does project wide tracking of resources - I'll be able to finally check the custom components and attributes.
The other thing I want to do it also open up the context tree to you; so you can grab the local context and then be able to do intellisense. :)
from template-lint.
@eriklieben btw, by default the code-behind checking is not enabled. see https://github.com/MeirionHughes/aurelia-template-lint#static-type-checking
Hopefully it will be far more stable after the reworking.
from template-lint.
Related Issues (20)
- Ensure matching if - else attributes HOT 1
- TypeError: Cannot read property 'Symbol(Symbol.iterator)' of undefined Ln -1 Col -1 HOT 4
- conflicting attributes even if I use template for the if binding HOT 2
- Anonymous interfaces embedded in other interfaces should be type-checked HOT 1
- Ignore feature
- Base class properties not found
- Integration with aurelia-validation
- npm dependency on gulp should be a devDependency HOT 3
- Optional properties inherited from interface not detected HOT 1
- Support type alias
- Support implicitly typed properties
- New rule for Aurelia plugins(and server side rendering): fail when using globals, that don't work with aurelia-pal-nodejs HOT 5
- Catch usages of "this" in bindings
- ViewEngineHooks
- Project Handover HOT 7
- Spread operator bug
- Binding access check when view model is in different folder
- False positive "duplicated id" combined with if.bind
- Publish new version (ie. from 0.9.25 to 0.9.26) HOT 20
- fs.readdir is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from template-lint.