chore(docs): Bump prettier, and reformat w/ it.

* Bump to prettier 2.3.1.
* Re-run prettier:format to apply updated format.
This commit is contained in:
Peter Johanson 2021-06-09 14:55:33 +00:00 committed by Pete Johanson
parent 22800455e2
commit ba45aaa81b
5 changed files with 13 additions and 14 deletions

View file

@ -14,7 +14,6 @@ ZMK is currently missing some features found in other popular firmware. This tab
| Legend: | ✅ Supported | 🚧 Under Development | 💡 Planned | | Legend: | ✅ Supported | 🚧 Under Development | 💡 Planned |
| :------ | :----------- | :------------------- | :--------- | | :------ | :----------- | :------------------- | :--------- |
| **Feature** | ZMK | BlueMicro | QMK | | **Feature** | ZMK | BlueMicro | QMK |
| ------------------------------------------------------------------------------------------------------------------------- | :-: | :-------: | :-: | | ------------------------------------------------------------------------------------------------------------------------- | :-: | :-------: | :-: |
| Low Latency BLE Support | ✅ | ✅ | | | Low Latency BLE Support | ✅ | ✅ | |

15
docs/package-lock.json generated
View file

@ -26,7 +26,7 @@
"eslint-plugin-mdx": "^1.13.0", "eslint-plugin-mdx": "^1.13.0",
"eslint-plugin-react": "^7.23.2", "eslint-plugin-react": "^7.23.2",
"null-loader": "^4.0.0", "null-loader": "^4.0.0",
"prettier": "2.1.2", "prettier": "2.3.1",
"string-replace-loader": "^3.0.0" "string-replace-loader": "^3.0.0"
} }
}, },
@ -11084,9 +11084,9 @@
} }
}, },
"node_modules/prettier": { "node_modules/prettier": {
"version": "2.1.2", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.1.tgz",
"integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==", "integrity": "sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==",
"dev": true, "dev": true,
"bin": { "bin": {
"prettier": "bin-prettier.js" "prettier": "bin-prettier.js"
@ -24415,9 +24415,9 @@
"integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc="
}, },
"prettier": { "prettier": {
"version": "2.1.2", "version": "2.3.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.1.2.tgz", "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.1.tgz",
"integrity": "sha512-16c7K+x4qVlJg9rEbXl7HEGmQyZlG4R9AgP+oHKRMsMsuk8s+ATStlf1NpDqyBI1HpVyfjLOeMhH2LvuNvV5Vg==", "integrity": "sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA==",
"dev": true "dev": true
}, },
"pretty-error": { "pretty-error": {
@ -25502,6 +25502,7 @@
"chalk": "^4.1.0", "chalk": "^4.1.0",
"find-up": "^5.0.0", "find-up": "^5.0.0",
"mkdirp": "^1.0.4", "mkdirp": "^1.0.4",
"postcss": "^8.2.4",
"strip-json-comments": "^3.1.1" "strip-json-comments": "^3.1.1"
}, },
"dependencies": { "dependencies": {

View file

@ -45,7 +45,7 @@
"eslint-plugin-mdx": "^1.13.0", "eslint-plugin-mdx": "^1.13.0",
"eslint-plugin-react": "^7.23.2", "eslint-plugin-react": "^7.23.2",
"null-loader": "^4.0.0", "null-loader": "^4.0.0",
"prettier": "2.1.2", "prettier": "2.3.1",
"string-replace-loader": "^3.0.0" "string-replace-loader": "^3.0.0"
} }
} }

View file

@ -7,7 +7,8 @@
import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
const specialCharactersRegex = /(?:^|\s)((?:&(?:(?:\w+)|(?:#\d+));)|[_]|[^\w\s])(?:\s*\[([^[\]]+?)\])/g; const specialCharactersRegex =
/(?:^|\s)((?:&(?:(?:\w+)|(?:#\d+));)|[_]|[^\w\s])(?:\s*\[([^[\]]+?)\])/g;
function renderSpecialCharacters(description) { function renderSpecialCharacters(description) {
const matches = Array.from(description.matchAll(specialCharactersRegex)); const matches = Array.from(description.matchAll(specialCharactersRegex));

View file

@ -30,10 +30,8 @@ function PowerProfiler() {
const { value: psuType, bind: bindPsuType } = useInput(""); const { value: psuType, bind: bindPsuType } = useInput("");
const { value: outputV, bind: bindOutputV } = useInput(3.3); const { value: outputV, bind: bindOutputV } = useInput(3.3);
const { value: quiescentMicroA, bind: bindQuiescentMicroA } = useInput(55); const { value: quiescentMicroA, bind: bindQuiescentMicroA } = useInput(55);
const { const { value: otherQuiescentMicroA, bind: bindOtherQuiescentMicroA } =
value: otherQuiescentMicroA, useInput(0);
bind: bindOtherQuiescentMicroA,
} = useInput(0);
const { value: efficiency, bind: bindEfficiency } = useInput(0.9); const { value: efficiency, bind: bindEfficiency } = useInput(0.9);
const { value: bondedQty, bind: bindBondedQty } = useInput(1); const { value: bondedQty, bind: bindBondedQty } = useInput(1);