Giter VIP home page Giter VIP logo

jerone / eslint-plugin-angular-template-consistent-this Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 831 KB

ESLint Angular Template consistent this for properties, variables & template references.

Home Page: https://www.npmjs.com/package/eslint-plugin-angular-template-consistent-this

License: MIT License

TypeScript 98.60% JavaScript 1.40%
eslint eslint-rules angular angular-template eslint-rule eslint-plugin linting

eslint-plugin-angular-template-consistent-this's Introduction

eslint-plugin-angular-template-consistent-this's People

Contributors

jerone avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

pbluci

eslint-plugin-angular-template-consistent-this's Issues

Latest release missing?

Hi there,

could it be that the latest version(v0.6.0) is way behind of the master branch and some very older and outdated version from 2022 is being served via NPM?

I just updated some peer / dev-dependencies e.g. @angular-eslint/template-parser to 16.x.x. and getting some compile errors, even tho your readme states that it is well up to date with angular 16 (kudos ๐Ÿ‘ ).

Greetings & regards
Andreas

Autofix is not working in multiline cases

Hi,

Exactly the rule I was looking for ๐Ÿ‘ and was about to write myself (but struggled quite a bit with it)

I found an issue tho with the auto-fixing when having multiline statements (using the implicit option)

      <button
        [disabled]="
          !(myCondition.fooBarBaz.zapZapZap && myCondition.fooBarBaz.zipZapZup) &&
          this.implicitVar === 'something'
        "
      ></button>

This won't get fixed correctly and also the wrong property is underlined in my code editor: implicitVar instead of this

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.