Skip to content

Definition for rule 'react/jsx-filename-extension' was not found #167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
davegri opened this issue Jan 9, 2017 · 2 comments
Closed

Definition for rule 'react/jsx-filename-extension' was not found #167

davegri opened this issue Jan 9, 2017 · 2 comments

Comments

@davegri
Copy link

davegri commented Jan 9, 2017

How do I solve this?

My YML:

engines:
  eslint:
    enabled: true
  apexmetrics:
    enabled: true
    checks:
      AvoidLogicInTrigger:
        enabled: false
languages:
  JavaScript: true
ratings:
  paths:
    - "**.js"
    - "**.cls"
    - "**.trigger"
exclude_paths:
  - "tests/*"
  - "sfserver/app.js"
  - "sfserver/websocket/websocket.js"
  - "js_source/static/*"
@wfleming
Copy link
Contributor

wfleming commented Jan 9, 2017

Hi @davegri,

The configuration here is using using ESLint version 1, which we currently have pinned to an older version of the eslint-plugin-react package, and that older version does not support this rule. I would suggest updating to use ESLint 3, which we have setup to use a newer version of the react plugin which supports this rule, and also may be helpful to you with newer built-in ESLint rules as well.

To use ESLint 3, you'll want to adjust the ESLint part of your .codeclimate.yml to match this:

eslint:
  channel: eslint-3
  enabled: true

If it's important to you to continue using ESLint 1, please let us know.

@dblandin
Copy link
Contributor

Hey @davegri,

I'm going to go ahead and close this issue. As @wfleming suggested, upgrading to ESLint 3 is the best option. We're now running ESLint 3 (and upgrading configs for previous versions in place) on the stable channel.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants