Git Product home page Git Product logo

Comments (7)

trotzig avatar trotzig commented on May 18, 2024

if you run eslint outside of import-js, does it then pick up the undefined jsx variables? This has been a problem on and off since I added import-all. The eslint call depends on the .eslintrc.js to be in good shape. I think it might have to do with having eslint 2 installed and our config using eslint 1 specific config:

  'ecmaFeatures': {
    'jsx': true
  },

in eslint 2, this is

{
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  }
}

But I'm not actually sure. It doesn't work for me either, and I have eslint 1.10.1 installed.

from import-js.

janpaul123 avatar janpaul123 commented on May 18, 2024

Yep, it does catch it when just running eslint outside of import-js. -_-

from import-js.

lencioni avatar lencioni commented on May 18, 2024

Is it possible that you have two different eslints installed and that a different one is run in import-js vs outside of import-js?

from import-js.

trotzig avatar trotzig commented on May 18, 2024

It turns out that we broke this a while ago in de3c9ee.

Look at what eslint outputs for the Ripple not being defined:

   68:22  error  "contextualEventHelper" is not defined  no-undef
  159:8   error  'Ripple' is not defined                 react/jsx-no-undef
  217:11  error  "contextualEventHelper" is not defined  no-undef

The jsx plugin puts the variable in single quotes. I'll fix this and publish a new version soon.

from import-js.

lencioni avatar lencioni commented on May 18, 2024

Ah! My bad. I'll look into submitting a PR to the React plugin to make this consistent with ESLint.

from import-js.

trotzig avatar trotzig commented on May 18, 2024

Ah, that would be great!

from import-js.

lencioni avatar lencioni commented on May 18, 2024

Actually, it seems that most ESLint rules use single quotes. So perhaps I'll submit a PR over there instead.

from import-js.

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.