code-format-lint
Version:
16 lines (15 loc) • 420 B
JavaScript
const fs = require("fs");
const path = require("path");
try {
fs.writeFileSync(
path.resolve(__dirname, "../../../.eslintrc.js"),
fs.readFileSync(path.resolve(__dirname, "../template/.eslintrc.js")),
);
fs.writeFileSync(
path.resolve(__dirname, "../../../.prettierrc"),
fs.readFileSync(path.resolve(__dirname, "../template/.prettierrc")),
);
} catch (e) {
console.log(e);
}