From 2289e7f0b29e1cb684eb69f31a79449b0eb0942b Mon Sep 17 00:00:00 2001 From: Priyansh Garg Date: Mon, 1 Apr 2024 18:03:04 +0530 Subject: [PATCH] Add postdoc.config.js under eslint check. --- package.json | 2 +- postdoc.config.js | 10 +++++----- src/includes/api-method.ejs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c9712ae1..160a275c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "optimize": "node build/optimize.js", "netlify": "npm run clone:docs && npm run clone:nightwatch && npm run build", "partytown": "partytown copylib public/~partytown", - "eslint": "eslint src --quiet" + "eslint": "eslint src postdoc.config.js --quiet" }, "author": "Andrei Rusu ", "license": "MIT", diff --git a/postdoc.config.js b/postdoc.config.js index e741b162..fb5aada3 100644 --- a/postdoc.config.js +++ b/postdoc.config.js @@ -7,7 +7,7 @@ const { MD_DOCS_FOLDER = './docs', API_DOCS_FOLDER = resolve('../nightwatch/lib/api'), EXAMPLES_FOLDER = 'node_modules/nightwatch-examples/tests', - WEBDRIVER_SPEC_URL = 'https://w3c.github.io/webdriver', + WEBDRIVER_SPEC_URL = 'https://w3c.github.io/webdriver' } = env; export default { @@ -31,7 +31,7 @@ export default { output: './out', includes: 'src/includes', layouts: 'src/pages', - content: MD_DOCS_FOLDER, + content: MD_DOCS_FOLDER }, ignore: { @@ -45,7 +45,7 @@ export default { layout: 'api/index.ejs', createUrl(filePath) { - let fileName = basename(filePath, extname(filePath)); + const fileName = basename(filePath, extname(filePath)); if (filePath.startsWith(sep + join('expect', 'assertions', 'elements'))) { return `/api/expect/elements/${fileName}.html`; @@ -88,7 +88,7 @@ export default { appSettings: { version: NIGHTWATCH_VERSION, baseUrl: BASE_URL, - webdriverSpecUrl : WEBDRIVER_SPEC_URL, + webdriverSpecUrl: WEBDRIVER_SPEC_URL, apiRepoUrl: 'https://github.com', githubRepo: 'nightwatchjs/nightwatch', docsRepoUrl: 'https://github.com/nightwatchjs/nightwatch-docs/blob/', @@ -104,4 +104,4 @@ export default { logger: { quiet: false } -}; \ No newline at end of file +}; diff --git a/src/includes/api-method.ejs b/src/includes/api-method.ejs index 9fc71178..04bbea30 100644 --- a/src/includes/api-method.ejs +++ b/src/includes/api-method.ejs @@ -147,7 +147,7 @@ npx nightwatch <%- method.exampleLink %>
  • <%= method.link %>
  • <% } else { %>
  • <%= method.link %>
  • - <% } %> + <% } %> <% } %> <% } %> \ No newline at end of file