Giter VIP home page Giter VIP logo

Comments (8)

eriklieben avatar eriklieben commented on May 27, 2024 4

@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:
aurelia-template-lint-state

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.

MeirionHughes avatar MeirionHughes commented on May 27, 2024 1

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.

Thanood avatar Thanood commented on May 27, 2024

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.

MeirionHughes avatar MeirionHughes commented on May 27, 2024

Cool thanks;

from template-lint.

atsu85 avatar atsu85 commented on May 27, 2024

@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.

MeirionHughes avatar MeirionHughes commented on May 27, 2024

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.

MeirionHughes avatar MeirionHughes commented on May 27, 2024

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.

MeirionHughes avatar MeirionHughes commented on May 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.