-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Set ESlint rules more strict 🚑 #1000
Conversation
# Conflicts: # packages/addon-graphql/package.json # packages/addon-info/package.json # packages/addon-info/src/components/Node.js # packages/addon-knobs/package.json # packages/addon-notes/package.json # packages/channel-postmessage/package.json # packages/channel-websocket/package.json # packages/decorator-centered/package.json # packages/react-native-storybook/package.json # packages/react-storybook/src/server/config.js # packages/storybook-ui/package.json # packages/storybook-ui/src/modules/ui/components/layout/index.js
notes: 1. did not resolve `jsx-a11y` errors as that would require closer attention to the browser 2. did not resolve any `'enzyme' should be listed in the project's dependencies. Run 'npm i -S enzyme' to add it import/no-extraneous-dependencies` see note: #911 (comment)
adds `global` as the dep was missing in add-on-knobs
didn’t resolve jsx-a11y linting in this pass
uses `toMatchObject` rather than `toEqual` to be more lenient about what props are present
… the eslint config for globals
…`import/no-extraneous-dependencies` linter warning
…t` to resolve `import/no-extraneous-dependencies` lint issue
note: didn’t tackle jsx-a11y on this pass.
✖ 67 problems (57 errors, 10 warnings) |
# Conflicts: # addons/centered/package.json # addons/graphql/package.json # addons/info/package.json # addons/knobs/package.json # addons/links/.storybook/config.js # addons/notes/package.json # addons/notes/src/index.js # addons/notes/src/register.js # addons/options/src/manager/index.js # addons/storyshots/src/index.js # addons/storyshots/stories/required_with_context/Button.stories.js # addons/storyshots/stories/required_with_context/Welcome.js # app/react-native/package.json # app/react-native/src/manager/index.js # lib/channel-postmessage/package.json # lib/channel-postmessage/src/index.js # lib/channel-websocket/package.json # lib/channel-websocket/src/index.js # lib/cli/generators/METEOR/index.js # lib/cli/generators/REACT/template/stories/Welcome.js # lib/cli/generators/REACT_SCRIPTS/index.js # lib/cli/generators/WEBPACK_REACT/template/stories/Welcome.js # packages/react-storybook/src/server/track_usage.js # packages/storybook-ui/src/modules/ui/components/layout/usplit.js # scripts/prepublish.js
@theinterned @ndelangen sorry I missed that this was waiting for my review. We need to get this merged, see e.g. #1163 @theinterned do you mind resolving the merge conflicts and we can get this merged to do a follow-on release? Who knows what other bugs are lurking behind this PR! 😱 |
closed in favour of #911 |
Hi sorry I didn't reply! I was on vacation. Looks like you've got things sorted here though! I'll see if I can help out on the #911 branch |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 08a49db. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Issue: -should create one-
What I did
As described in review comments #904 linting is rather non-strict right now.
Though I'm personally of the opinion too strict linting can be harmful, I agree, we could make it a bit more strict to weed out some bad code we have and prevent bad come from getting pushed to master.
How to test
run
npm run lint