You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
564 B
11 lines
564 B
"use strict"; |
|
Object.defineProperty(exports, "__esModule", { value: true }); |
|
const fs_1 = require("fs"); |
|
const path_1 = require("path"); |
|
const utils_1 = require("../utils"); |
|
const rulesDir = __dirname; |
|
const excludedFiles = ['index']; |
|
exports.default = (0, fs_1.readdirSync)(rulesDir) |
|
.map((rule) => (0, path_1.parse)(rule).name) |
|
.filter((ruleName) => !excludedFiles.includes(ruleName)) |
|
.reduce((allRules, ruleName) => (Object.assign(Object.assign({}, allRules), { [ruleName]: (0, utils_1.importDefault)((0, path_1.join)(rulesDir, ruleName)) })), {});
|
|
|