GithubHelp home page GithubHelp logo

Comments (9)

saghul avatar saghul commented on August 29, 2024

@hristoterezov You may know this. I have no idea how the jitsi-meet project gets that rule applied...

from jitsi-meet-electron.

akshitkrnagpal avatar akshitkrnagpal commented on August 29, 2024

@saghul
jitsi-meet has some eslint rules for react folder only.
react/jsx-sort-props seems to be part of that.

https://github.com/jitsi/jitsi-meet/blob/master/react/.eslintrc.js

Maybe we should do something like that for app folder.

from jitsi-meet-electron.

saghul avatar saghul commented on August 29, 2024

Dammit, I'm blind! Yes please, let's do that for the app/ folder too, here.

from jitsi-meet-electron.

akshitkrnagpal avatar akshitkrnagpal commented on August 29, 2024

@saghul
Just a suggestion.
Should we maybe make a shareable config for react too?
Maybe in same repo or different repo.?

Maybe something like eslint:recommended and eslint:all

IDK. If its possible.

I think it will be good. Otherwise using a partial shared config is of no point if we are defining react rules again.

Maybe we can do something like if its normal project extend eslint-config-jitsi .
For react extend eslint-config-jitsi/react also.

WDYT?

from jitsi-meet-electron.

saghul avatar saghul commented on August 29, 2024

Maybe we can do something like if its normal project extend eslint-config-jitsi .
For react extend eslint-config-jitsi/react also.

This makes sense! @hristoterezov any thoughts?

from jitsi-meet-electron.

akshitkrnagpal avatar akshitkrnagpal commented on August 29, 2024

@saghul @hristoterezov
I tested this. This is possible.

The .eslintrc.js will look like this.

module.exports = {
    'extends': [
        'eslint-config-jitsi',
        'eslint-config-jitsi/react'
    ]
};

You can see the changes I made in eslint-config-jitsi here - Link

Ofcourse we'll need to have a better structure for eslint-config-jitsi. I just placed to check if this will work.

from jitsi-meet-electron.

saghul avatar saghul commented on August 29, 2024

@akshitkrnagpal This is great. I want it! Can you please make PRs for this?

from jitsi-meet-electron.

akshitkrnagpal avatar akshitkrnagpal commented on August 29, 2024

@saghul
Sure. Let me structure it a little bit.

from jitsi-meet-electron.

saghul avatar saghul commented on August 29, 2024

Fixed in #42, thanks @akshitkrnagpal !

from jitsi-meet-electron.

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.