Comments (6)
Sure, I'll give it a go this afternoon!
from react-rxjs.
It looks awesome, my only reservation is with the name of the rule... I think that instead of connect-in-components
it should be named no-connect-in-components
. I think that name is a bit more consistent with other standard eslint-rules, e.g. no-await-in-loop
, no-console
, no-import-assign
, etc
from react-rxjs.
I'm closing this issue, let's continue the conversation in that PR/repo. Once again, thanks a lot @voliva !
from react-rxjs.
I've been playing with ESLint and AST for a bit and I got something working
At the moment what it does is just check that the function call is not happening inside a function or a class. It also handles:
import { connectObservable as co } from 'react-rxjs'
and then using co inside a component.import * as ReactRxJS from 'react-rxjs'
and then callingReactRxJS.connectObservable
.- It won't show up an error if
connectObservable
is being called without importing it (e.g. the consumer has defined a function with that name)
I tried pushing the code so far to the re-rxjs
organization but I couldn't - so I created the repo in my account: https://github.com/voliva/eslint-plugin-react-rxjs. Happy to move it when we feel it's ready to publish 🚀. It would be great to have some feedback on what's in so far.
from react-rxjs.
This is awesome! Thanks a lot @voliva !
I tried pushing the code so far to the re-rxjs organization but I couldn't
🤔 I can see that you created a private-repo under the org:
but you can't push to it? Weird... I will look into the settings to make sure that you can do these things.
from react-rxjs.
It's so weird that you weren't able to push the code... Anyways, I have made the repo public, then I have put the commit-history of your personal repo into that one, and then I've opened this PR.
from react-rxjs.
Related Issues (20)
- Uncaught Error: Missing Subscribe HOT 2
- Observable emitting error should not cause infinite loop on Subscribe HOT 1
- Question - Todo App Demo
- Testing a signal HOT 1
- Are there any projects that use React-RxJS?
- hook returned by bind(functionAcceptingArrayReturningAsyncObservable$) should not cause infinite render loop HOT 2
- takeUntil operator cannot complete a StateObservable HOT 1
- Server side rendering is missing `getServerSnapshot` HOT 2
- [BUG] bind is returning an array when an Object is passed through the observer. HOT 1
- Use native react use-sync-external-store instead of package HOT 2
- batchUpdates compatibilities HOT 3
- bind hook only firing once with scan and aggregated map HOT 3
- TypeScript moduleResolution: NodeNext expects core.es2017.d.ts types file
- Subscribe incorrectly rendering fallback on initial mount HOT 5
- NextJS 13 getServerSnapshot issue HOT 3
- Binding to observables that emit SUSPENSE with a default value does not trigger React.Suspense to render the `fallback` component HOT 1
- `<Subscribe>` without `source$` does not seem to work as advertised HOT 7
- "Inner" <Subscribe> is skipped in case of nested <Subscribe>s HOT 3
- Basic Todos Example no longer works as of utils version 0.9.7 HOT 4
- SSR and react-rxjs HOT 1
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 react-rxjs.