-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile][Monorepo] Fix linting #21349
[RNMobile][Monorepo] Fix linting #21349
Conversation
Size Change: 0 B Total Size: 856 kB ℹ️ View Unchanged
|
@ceyhun I'm seeing this error when running
Any idea? |
@Tug It is correct that you're seeing that error and it should be fixed. I'm not sure why I'm not seeing it. I did a clean run again and I'm still not seeing it. |
I know this is out of scope of this PR but I took the opportunity to run the unit tests. The main ones are currently failing with multiple syntax errors around
It also seems jest is failing to interpret flow code from RN:
We'll need to either update the main gutenberg jest config (in test/unit/jest.config.js) to use react-native preset or most probably exclude |
I'll keep trying and see if I can fix it on my side 👍 |
Ignored test files in
should run without errors now, except 1 error in |
test/unit/jest.config.js
Outdated
@@ -30,6 +30,7 @@ module.exports = { | |||
'<rootDir>/.*/build/', | |||
'<rootDir>/.*/build-module/', | |||
'<rootDir>/.+.native.js$', | |||
'packages/react-native-*', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really minor but we could try to be a bit more consistent with /packages/react-native-*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
As usual, let's have @hypest merge with a merge commit
Will merge with "Allow merge commits" ON and then disable it again. |
Description
This is a part of the migration of gutenberg-mobile to the gutenberg repo. See #18508
npm run lint-js:fix
)/** @format */
or/** @flow */
on top of filesIllegal usage of jasmine global eslint(jest/no-jasmine-globals)
that are not trivial and can be handled on a later stageHow has this been tested?
npm run lint
should complete without errorsconsole.log
to a .js file inpackages/react-native-editor/
andnpm run lint
should return an errorUnexpected console statement no-console
Screenshots
Types of changes
Checklist: