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

Contribution page docs #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mpoisot
Copy link

@mpoisot mpoisot commented Oct 19, 2020

For #101

@mpoisot
Copy link
Author

mpoisot commented Oct 19, 2020

I noticed npm run lint won't run using just the instructions in CONTRIBUTING.md. I think a dependency is missing.

▶ npm run lint

> [email protected] lint /Users/marcel/Documents/code/tmp/filestack-react
> eslint src/**/*.js src/**/*.jsx tests/**/*spec.js && tsc --noEmit


Oops! Something went wrong! :(

ESLint: 7.5.0

ESLint couldn't find the config "prettier" to extend from. Please check that the name of the config is correct.

The config "prettier" was referenced from the config file in "/Users/marcel/Documents/code/tmp/filestack-react/.eslintrc".

If you still have problems, please stop by https://eslint.org/chat to chat with the team.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] lint: `eslint src/**/*.js src/**/*.jsx tests/**/*spec.js && tsc --noEmit`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/marcel/.npm/_logs/2020-10-19T21_15_40_508Z-debug.log

@mpoisot
Copy link
Author

mpoisot commented Oct 19, 2020

I figured it out, eslint-config-prettier is missing. Should I go ahead and add that to devDependencies as part of this PR? I hesitate because it pulls in a few other libs, I see a ton of warnings about peer dependencies, and it looks like eslint warns on the existing code.

▶ npm run lint                            

> [email protected] lint /Users/marcel/Documents/code/tmp/filestack-react
> eslint src/**/*.js src/**/*.jsx tests/**/*spec.js && tsc --noEmit


/Users/marcel/Documents/code/tmp/filestack-react/src/ReactFilestack.jsx
   6:3  error  'defaultProps' should be declared outside the class body  react/static-property-placement
  22:3  error  'propTypes' should be declared outside the class body     react/static-property-placement

/Users/marcel/Documents/code/tmp/filestack-react/tests/components/ReactFilestack.spec.js
  47:21  error  Prop spreading is forbidden  react/jsx-props-no-spreading

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

Successfully merging this pull request may close these issues.

1 participant