[RNMobile][Monorepo] Fix linting#21349
[RNMobile][Monorepo] Fix linting#21349hypest merged 13 commits intofeat/import-gutenberg-mobile-no-squashfrom
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
| '<rootDir>/.*/build/', | ||
| '<rootDir>/.*/build-module/', | ||
| '<rootDir>/.+.native.js$', | ||
| 'packages/react-native-*', |
There was a problem hiding this comment.
Really minor but we could try to be a bit more consistent with /packages/react-native-*
|
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 lintshould complete without errorsconsole.logto a .js file inpackages/react-native-editor/andnpm run lintshould return an errorUnexpected console statement no-consoleScreenshots
Types of changes
Checklist: