Comments (7)
Thanks @stramel for the clue. I'll try that route and see if I can get that up
from eslint-plugin-wc.
can you give more info on how you tested it and where it didn't work, that you expected it would?
from eslint-plugin-wc.
can you give more info on how you tested it and where it didn't work, that you expected it would?
I tried it in Atom, and via CLI. The code I used was the example provided in your doc.
- Is the rule working for you?
- Is a specific version of Node required for that rule?
from eslint-plugin-wc.
Yes of course, we have tests which assert this too and currently pass fine. It would be very helpful if you could paste the code you expect to cause an error, even if it is like in the docs.
I'll try it again myself when I get some spare time. Apologises for the slow response too.
from eslint-plugin-wc.
I troubleshooted this a bit and noticed that a couple of rules listed on the current README have not been correctly added to the rules export here:
https://github.com/43081j/eslint-plugin-wc/blob/master/src/index.ts#L11-L19
It's missing require-listener-teardown
and no-constructor-params
. That's probably why this isn't working as intended.
I can try putting up a PR to help fix this.
from eslint-plugin-wc.
Er, looks like I don't have permissions to push upstream or set up a new PR. @43081j I have a commit that fixes this. Any access to put up a PR?
from eslint-plugin-wc.
@dannobytes You will need to fork the repository and submit a PR from your fork to the main branch.
from eslint-plugin-wc.
Related Issues (20)
- Check for misspelled hooks
- element name validation should occur even if window is specified
- connectedCallback super HOT 8
- no-constructor-attributes error when manipulating the Shadow DOM HOT 2
- Possibly update no-constructor-params rule to allow optional params
- Optional stylistic rule for requiring a static name
- Disallow setting `innerHTML` inside the constructor
- Enhance `wc/guard-super-call` with fix
- Enhance `wc/no-closed-shadow-root` with fix
- Security issues with dependencies HOT 1
- "best practice" config is missing two rules
- wc/no-invalid-element-name produces error on valid tag names. HOT 4
- Configuration options for wc/require-listener-teardown
- Possible merger of custom-elements plugin HOT 10
- Definition for rule 'wc/define-tag-after-class-definition' was not found HOT 2
- define-tag-after-class-definition: ignore abstract classes by default HOT 1
- file-name-matches-element is broken after migrating to v2 HOT 5
- Flat config support & improvements for `d.ts` HOT 1
- Guard super call with typeof check HOT 4
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 eslint-plugin-wc.