forked from FOSS/BangleApps
.eslintrc.js: move to top-level (for modules)
parent
f7e81d3b4e
commit
0427240b18
|
@ -1,4 +1,4 @@
|
|||
const lintExemptions = require("./lint_exemptions.js");
|
||||
const lintExemptions = require("./apps/lint_exemptions.js");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -19,7 +19,7 @@ const exemptionsFilePath = "../apps/lint_exemptions.js";
|
|||
const exemptions = (await import(exemptionsFilePath)).default;
|
||||
|
||||
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);
|
||||
if (exemptions[filePath].hash !== currentHash) {
|
||||
delete exemptions[filePath];
|
||||
|
|
Loading…
Reference in New Issue