-
Notifications
You must be signed in to change notification settings - Fork 29
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
Lint JavaScript snippets in the documentation #480
Commits on Jan 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for c78fb3f - Browse repository at this point
Copy the full SHA c78fb3fView commit details -
Disable the no-unused-vars and no-undef rules
Avoid errors from the snippets being linted independently
Configuration menu - View commit details
-
Copy full SHA for 990d2a8 - Browse repository at this point
Copy the full SHA 990d2a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7a747c - Browse repository at this point
Copy the full SHA b7a747cView commit details -
Use the HTML comment syntax for passing evaluate:false to one of the …
…JavaScript code blocks
Configuration menu - View commit details
-
Copy full SHA for 5017ac1 - Browse repository at this point
Copy the full SHA 5017ac1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26dce84 - Browse repository at this point
Copy the full SHA 26dce84View commit details -
Convert ```js#flags to preceding HTML comments
perl -pi -e 'BEGIN{undef $/;} s/```js#async:true/<!-- async:true -->\n```js/g;' `find documentation -name '*.md'` perl -pi -e 'BEGIN{undef $/;} s/```js#evaluate:false/<!-- evaluate:false -->\n```js/g;' `find documentation -name '*.md'` perl -pi -e 'BEGIN{undef $/;} s/```js#freshExpect:true/<!-- freshExpect:true -->\n```js/g;' `find documentation -name '*.md'` perl -pi -e 'BEGIN{undef $/;} s/```js#skipBrowser:true/<!-- skipBrowser:true -->\n```js/g;' `find documentation -name '*.md'`
Configuration menu - View commit details
-
Copy full SHA for ac3ed54 - Browse repository at this point
Copy the full SHA ac3ed54View commit details -
Configuration menu - View commit details
-
Copy full SHA for b24062a - Browse repository at this point
Copy the full SHA b24062aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c80ee8 - Browse repository at this point
Copy the full SHA 0c80ee8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74f3cea - Browse repository at this point
Copy the full SHA 74f3ceaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8857859 - Browse repository at this point
Copy the full SHA 8857859View commit details
Commits on Jan 11, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 0180745 - Browse repository at this point
Copy the full SHA 0180745View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e4d707 - Browse repository at this point
Copy the full SHA 7e4d707View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1538c0f - Browse repository at this point
Copy the full SHA 1538c0fView commit details -
Use the old js#evaluate:false syntax for snippets that aren't valid J…
…avaScript So that eslint-plugin-markdown can't tell they're JavaScript 😼
Configuration menu - View commit details
-
Copy full SHA for 1ed057a - Browse repository at this point
Copy the full SHA 1ed057aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 52f9acf - Browse repository at this point
Copy the full SHA 52f9acfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67714b6 - Browse repository at this point
Copy the full SHA 67714b6View commit details
Commits on Jan 12, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 02546a5 - Browse repository at this point
Copy the full SHA 02546a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77f4386 - Browse repository at this point
Copy the full SHA 77f4386View commit details
Commits on Jan 15, 2019
-
Merge branch 'master' into feature/lint-markdown
* master: Updated the changelog 11.0.1 Build unexpected.js Remove ad hoc disabling of the no-unexpected-multiline eslint rule Whoops, two of those had to be Buffer.alloc Fix lint new Buffer => Buffer.from Add mocha env to the eslint config eslint --fix . Add standard and prettier/standard Replace eslint-config-pretty-standard with eslint-config-prettier Disable no-unexpected-multiline so standard and prettier don't battle each other eslint --fix . Fix expect.promise#inspect tests Avoid deprecation warnings in node.js 10 because we have methods called inspect
Configuration menu - View commit details
-
Copy full SHA for 80a7f09 - Browse repository at this point
Copy the full SHA 80a7f09View commit details -
Merge branch 'master' into feature/lint-markdown
* master: .eslintrc.js: Remove unnecessary parserOptions
Configuration menu - View commit details
-
Copy full SHA for c1eb08f - Browse repository at this point
Copy the full SHA c1eb08fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3209f4a - Browse repository at this point
Copy the full SHA 3209f4aView commit details
Commits on Jan 16, 2019
-
perl -pi -e 's/<!-- (.*)-->/<!-- unexpected-markdown $1-->/g;' `find …
…documentation -name '*.md'`
Configuration menu - View commit details
-
Copy full SHA for cd98e4f - Browse repository at this point
Copy the full SHA cd98e4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0761da9 - Browse repository at this point
Copy the full SHA 0761da9View commit details
Commits on Jan 17, 2019
-
Configuration menu - View commit details
-
Copy full SHA for ce148f9 - Browse repository at this point
Copy the full SHA ce148f9View commit details
Commits on Jan 18, 2019
-
Update unexpected-documentation-site-generator to ^6.0.0 and unexpect…
…ed-markdown to ^3.0.0
Configuration menu - View commit details
-
Copy full SHA for 4f41fbf - Browse repository at this point
Copy the full SHA 4f41fbfView commit details -
Disable import/no-extraneous-dependencies only where necessary instea…
…d of in documentation/.eslintrc
Configuration menu - View commit details
-
Copy full SHA for 89f17f5 - Browse repository at this point
Copy the full SHA 89f17f5View commit details -
Regain syntax highlighting of ```js blocks that don't parse
Now that we can combine eslint and unexpected-markdown directives: <!-- unexpected-markdown evaluate:false --> <!-- eslint-skip -->
Configuration menu - View commit details
-
Copy full SHA for 10d2711 - Browse repository at this point
Copy the full SHA 10d2711View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96caa8a - Browse repository at this point
Copy the full SHA 96caa8aView commit details
Commits on Jan 22, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 1090605 - Browse repository at this point
Copy the full SHA 1090605View commit details -
Configuration menu - View commit details
-
Copy full SHA for c861ab8 - Browse repository at this point
Copy the full SHA c861ab8View commit details