Conversation
|
Hi team! I was wanted to kindly ask the maintainers to have a look, if possible. I have raised the MR 15 days ago, I was hoping for some feedback :) Thank you! |
|
Any updates on this? Getting some annoying linter errors in the IDE because of #60 :) |
There is not a single thing I can do, unfortunately :( |
|
Yeah, sorry. Wasn't aiming at you, specifically. Just wanted to bump this one for the powers that be to get notified. ;) |
|
Hi @cezudas, I tried out your branch and while it is working with eslint8, it seems to be causing a bug Specifically, it seems that it incorrectly marks props/methods decorated with any decorator ( I don't understand what's happening, because if I run the tests in your repo, all the rules are passing and I can see the tests do cover the scenario I described above... Could this be affected by how typescript compiles? |
|
I think it's time to give a second try on this PR. Do you guys need help to get this done? |
|
@raphaelpor can you share the branch? the current branch is definitely causing issues for me (see my comment above) so it would be good to try out your branch too |
|
@theo-staizen False alarm. I checked again my changes and I do get the same issues as you. Sorry for that. |
|
Hello, I was playing around with this and discovered that if I updated as follows: that the own-props-must-be-private and props-muse-be-public tests were failing. The changes I made to fix them are as follows and it seems from a first glance and resolving some of the aforementioned issues. To view the changes I made : https://github.com/maldago/stencil-eslint Let me know if I can do anything to help out. |
Great @maldago! I will have a look next week and see if we can use then. Thanks 🙏 |

Pull request checklist
Please check if your PR fulfills the following requirements:
npm run build) was run locally and any changes were pushednpm test) were run locally and passedPull request type
Please check the type of change your PR introduces:
What is the current behavior?
ATM the peerDeps clearly states this plugin is not compatible with the latest Eslint 8 and
@typescript-eslint/eslint-plugin.bug: decorator is not properly detected by eslint #60
bug: @stencil/no-unused-watch reporting errors after eslint v8 update #59
What is the new behavior?
This plugin now works with Eslint 8.
Does this introduce a breaking change?
This PR drops support for Eslint 7.
Testing
First I updated the
peerDepsanddevDevsto latest and greatest (Eslint 8, latest@typescript/eslint-plugin) and I ran the unit tests -> all the tests failing, as expected.Then I find all occurrences of 'ClassProperty ' with 'PropertyDefinition' and ran the unit tests again =>
all tests passed.
Then I finally used
npm buildfollowed bynpm packand used the tarball in a sample NX workspace here, the repository has a StencilJS library project and comes with Eslint 8 already configured. I did merely for a sanity check, all seems fine.