.eslintrc.js: move to top-level (for modules)

pull/3421/head
Rob Pilling 2024-05-18 10:44:59 +01:00
parent f7e81d3b4e
commit 0427240b18
3 changed files with 220 additions and 220 deletions

View File

@ -1,4 +1,4 @@
const lintExemptions = require("./lint_exemptions.js"); const lintExemptions = require("./apps/lint_exemptions.js");
const fs = require("fs"); const fs = require("fs");
const path = require("path"); const path = require("path");

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@ const exemptionsFilePath = "../apps/lint_exemptions.js";
const exemptions = (await import(exemptionsFilePath)).default; const exemptions = (await import(exemptionsFilePath)).default;
for (const filePath of Object.keys(exemptions)) { for (const filePath of Object.keys(exemptions)) {
const fileContents = await fs.readFile(`apps/${filePath}`, "utf8"); const fileContents = await fs.readFile(filePath, "utf8");
const currentHash = await hashContents(fileContents); const currentHash = await hashContents(fileContents);
if (exemptions[filePath].hash !== currentHash) { if (exemptions[filePath].hash !== currentHash) {
delete exemptions[filePath]; delete exemptions[filePath];