Skip to content

Commit ec1c327

Browse files
committed
Fix lint
1 parent 2048252 commit ec1c327

File tree

9 files changed

+56
-10
lines changed

9 files changed

+56
-10
lines changed

.idea/.gitignore

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/webdoc-default-template/publish.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,13 @@ exports.publish = async function publish(options /*: PublishOptions */) {
133133
};
134134

135135
// Copy the contents of ./static to the output directory
136-
async function outStaticFiles(outDir /*: string */, config /*: ConfigSchema */) /*: Promise<void> */ {
136+
async function outStaticFiles(
137+
outDir /*: string */,
138+
config /*: ConfigSchema */,
139+
) /*: Promise<void> */ {
137140
const staticDir = path.join(__dirname, "./static");
138141

139-
await fse.copy(staticDir, outDir)
142+
await fse.copy(staticDir, outDir);
140143

141144
await Promise.all([
142145
(async () => {
@@ -148,13 +151,13 @@ async function outStaticFiles(outDir /*: string */, config /*: ConfigSchema */)
148151
path.join(require.resolve("code-prettify"), "..", fileName),
149152
toPath,
150153
);
151-
})
154+
});
152155
})(),
153156
(() => {
154157
// Copy the stylesheets
155158
const stylesheets = config.template.stylesheets;
156-
let copyPromises = [];
157-
let resolved = [];
159+
const copyPromises = [];
160+
const resolved = [];
158161

159162
for (const file of stylesheets) {
160163
const out = path.join(outDir, file);

packages/webdoc-default-template/src/app/components/Explorer/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ export default connect(({
6767
}),
6868
}))(function Explorer({
6969
isOpen,
70-
setOpen,
7170
expandedItems,
7271
setExpandedItems,
7372
toggleItem,
@@ -76,7 +75,6 @@ export default connect(({
7675
const [data, setData] = React.useState(null);
7776
const [autoScrollTo, setAutoScrollTo] = React.useState(null);
7877
const {root} = useExplorerStyles();
79-
const toggleOpen = React.useCallback(() => setOpen(!isOpen), [isOpen]);
8078
const children = [];
8179
const explorerTree = window.appData.explorerTree;
8280

packages/webdoc-default-template/src/app/components/Header/Header.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ export default connect(({explorerOpen}) => ({
1717
return (
1818
<div className="header__container">
1919
{<ExplorerHeader
20-
isOpen={false}
21-
toggleOpen={() => setExplorerOpen(!explorerOpen)}
22-
/>}
20+
isOpen={false}
21+
toggleOpen={() => setExplorerOpen(!explorerOpen)}
22+
/>}
2323
<div className="header__contents">
2424
{items.map(([id, appBarItem], i) => (
2525
<a

webdoc.iml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="WEB_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$" />
6+
<orderEntry type="inheritedJdk" />
7+
<orderEntry type="sourceFolder" forTests="false" />
8+
</component>
9+
</module>

0 commit comments

Comments
 (0)