ACIL FM
Dark
Refresh
Current DIR:
/home/benbot/bot/server/node_modules/eslint/lib/cli-engine
/
home
benbot
bot
server
node_modules
eslint
lib
cli-engine
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
formatters
-
chmod
Open
Rename
Delete
cli-engine.js
32.85 MB
chmod
View
DL
Edit
Rename
Delete
file-enumerator.js
16.26 MB
chmod
View
DL
Edit
Rename
Delete
hash.js
1.03 MB
chmod
View
DL
Edit
Rename
Delete
index.js
97 B
chmod
View
DL
Edit
Rename
Delete
lint-result-cache.js
7.06 MB
chmod
View
DL
Edit
Rename
Delete
load-rules.js
1.27 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/benbot/bot/server/node_modules/eslint/lib/cli-engine/load-rules.js
/** * @fileoverview Module for loading rules from files and directories. * @author Michael Ficarra */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const fs = require("node:fs"), path = require("node:path"); const rulesDirCache = {}; //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ /** * Load all rule modules from specified directory. * @param {string} relativeRulesDir Path to rules directory, may be relative. * @param {string} cwd Current working directory * @returns {Object} Loaded rule modules. */ module.exports = function (relativeRulesDir, cwd) { const rulesDir = path.resolve(cwd, relativeRulesDir); // cache will help performance as IO operation are expensive if (rulesDirCache[rulesDir]) { return rulesDirCache[rulesDir]; } const rules = Object.create(null); fs.readdirSync(rulesDir).forEach(file => { if (path.extname(file) !== ".js") { return; } rules[file.slice(0, -3)] = require(path.join(rulesDir, file)); }); rulesDirCache[rulesDir] = rules; return rules; };
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply