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

Lint checks fail in generated app #50

Closed
randycoulman opened this issue May 8, 2017 · 0 comments
Closed

Lint checks fail in generated app #50

randycoulman opened this issue May 8, 2017 · 0 comments

Comments

@randycoulman
Copy link
Contributor

After generating a new app using the generator, I tried running yarn lint and got a number of errors:

/Users/randy/tmp/gentest/client/modules/app/components/App/__tests__/App-test.js
   1:1  warning  Definition for rule 'import/no-named-default' was not found   import/no-named-default
   1:1  warning  Definition for rule 'react/jsx-tag-spacing' was not found     react/jsx-tag-spacing
   1:1  warning  Definition for rule 'react/no-array-index-key' was not found  react/no-array-index-key
   7:1  error    'describe' is not defined                                     no-undef
   8:3  error    'test' is not defined                                         no-undef
  11:5  error    'expect' is not defined                                       no-undef

The first three warnings were reported for every file in the project; the latter three only for this file.

It looks like what is happening is that the local package.json is installing different versions of the eslint plugins than @zeal/react-scripts and eslint is loading the wrong versions.

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

1 participant