-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix eslint errors. #2342
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
Fix eslint errors. #2342
Conversation
| require.resolve('@react/react-spectrum/Button'); | ||
| } catch (err) { | ||
| mocks['^@react\/.*'] = 'identity-obj-proxy'; | ||
| mocks['^@react/.*'] = 'identity-obj-proxy'; |
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.
/ does not need to be escaped. \/ is basically /.
jest.config.js
Outdated
| '\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/__mocks__/fileMock.js', | ||
| '\\.(css|styl)$': 'identity-obj-proxy', | ||
| '\\.\./Icon/.*$': '<rootDir>/__mocks__/iconMock.js', | ||
| '\\.\\./Icon/.*$': '<rootDir>/__mocks__/iconMock.js', |
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.
\\.\./Icon/.*$ was matching also .a/Icons/something.
snowystinger
left a comment
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.
Looks good, though I'm not sure what you were running that you saw these as errors? From what I can tell we don't run lint against these files, though we probably should.
|
@snowystinger VSCode automatically runs |
snowystinger
left a comment
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.
i removed some dead code that used to help us test parity with an earlier version of our library, we don't do that anymore
LFDanLu
left a comment
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
When I was opening the jest config files in VSCode, eslint was complaining about a few errors. This PR tries to fix these errors.
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: