You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.
But there would be lots of tweaking since not all snippets are standalone and expect React or other things to be imported, so it may be lots of juggling of rules to make sure we ignore certain rules/configs.
I think this was my result from the first time I got it to run successfully:
$ npm run lint:md
> testpilot@1.0.0 lint:md /Users/pdehaan/dev/github/mozilla/testpilot
> eslint '**/*.md' --ext=.md
/Users/pdehaan/dev/github/mozilla/testpilot/docs/development/storybook.md
166:8 error Strings must use doublequote quotes
168:44 error 'Component' is not defined no-undef
173:9 error 'React' must be in scope when using JSX react/react-in-jsx-scope
182:7 error 'React' must be in scope when using JSX react/react-in-jsx-scope
209:31 error 'Component' is not defined no-undef
211:12 error 'React' must be in scope when using JSX react/react-in-jsx-scope
211:22 error Missing semicolon semi
215:16 error 'connect' is not defined no-undef
215:34 error 'mapStateToProps' is not defined no-undef
215:51 error 'mapDispatchToProps' is not defined no-undef
/Users/pdehaan/dev/github/mozilla/testpilot/docs/metrics/readme.md
75:25 error Strings must use doublequote quotes
77:7 error 'analytics' is assigned a value but never used no-unused-vars
78:8 error Strings must use doublequote quotes
79:7 error Strings must use doublequote quotes
80:7 error Strings must use doublequote quotes
81:9 error Strings must use doublequote quotes
82:7 error Strings must use doublequote quotes
83:8 error Strings must use doublequote quotes
91:1 error 'analytics' is not defined no-undef
92:14 error Strings must use doublequote quotes
92:26 error Strings must use doublequote quotes
93:10 error Strings must use doublequote quotes
94:10 error Strings must use doublequote quotes
97:17 error Strings must use doublequote quotes
97:53 error Missing semicolon semi
100:19 error Strings must use doublequote quotes
100:53 error Missing semicolon semi
✖ 31 problems (29 errors, 2 warnings)
17 errors, 0 warnings potentially fixable with the `--fix` option.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not super important, but I saw this in my tweets and thought it was pretty interesting: https://github.com/eslint/eslint-plugin-markdown
I quickly ran it on the repo and didn't see anything problematic, but not sure if it's worth its adding or not.
But there would be lots of tweaking since not all snippets are standalone and expect React or other things to be imported, so it may be lots of juggling of rules to make sure we ignore certain rules/configs.
I think this was my result from the first time I got it to run successfully:
The text was updated successfully, but these errors were encountered: