Skip to content
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

definition for rule react/require-extension not found #2

Open
CopyJosh opened this issue Nov 30, 2017 · 1 comment
Open

definition for rule react/require-extension not found #2

CopyJosh opened this issue Nov 30, 2017 · 1 comment

Comments

@CopyJosh
Copy link

I was getting an error on the first line/import of every file:

[eslint] Definition for rule 'react/require-extension' was not found (react/require-extension)

The docs for require-extension seem to have been removed, so is there a reason to still include this when the config already includes eslint-plugin-import?

// Restrict file extensions that may be required
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/require-extension.md
'react/require-extension': [2, { extensions: ['.jsx', '.js'] }],
@israel-martinez
Copy link

I have the same issue and solve with this airbnb/javascript#978 (comment) from issue "react/require-extension is deprecated"

image

my file .eslintrc
{ "extends": "rallycoding", "plugins": [ "react", "react-native" ], "settings": { "import/resolver": { "node": { "extensions": [".js", ".ios.js", ".android.js"] } } }, "ecmaFeatures": { "jsx": true }, "rules": { "react/require-extension": "off" } }

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

2 participants