ACIL FM
Dark
Refresh
Current DIR:
/home/benbot/bot/server/node_modules/eslint/lib/linter
/
home
benbot
bot
server
node_modules
eslint
lib
linter
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
code-path-analysis
-
chmod
Open
Rename
Delete
apply-disable-directives.js
18.66 MB
chmod
View
DL
Edit
Rename
Delete
esquery.js
9.13 MB
chmod
View
DL
Edit
Rename
Delete
file-context.js
3.53 MB
chmod
View
DL
Edit
Rename
Delete
file-report.js
18.25 MB
chmod
View
DL
Edit
Rename
Delete
index.js
179 B
chmod
View
DL
Edit
Rename
Delete
interpolate.js
1.31 MB
chmod
View
DL
Edit
Rename
Delete
linter.js
75.6 MB
chmod
View
DL
Edit
Rename
Delete
rule-fixer.js
5.04 MB
chmod
View
DL
Edit
Rename
Delete
rules.js
1.63 MB
chmod
View
DL
Edit
Rename
Delete
source-code-fixer.js
4.11 MB
chmod
View
DL
Edit
Rename
Delete
source-code-traverser.js
9.47 MB
chmod
View
DL
Edit
Rename
Delete
source-code-visitor.js
2.1 MB
chmod
View
DL
Edit
Rename
Delete
timing.js
3.73 MB
chmod
View
DL
Edit
Rename
Delete
vfile.js
2.75 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/benbot/bot/server/node_modules/eslint/lib/linter/rules.js
/** * @fileoverview Defines a storage for rules. * @author Nicholas C. Zakas * @author aladdin-add */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const builtInRules = require("../rules"); //------------------------------------------------------------------------------ // Typedefs //------------------------------------------------------------------------------ /** @typedef {import("../types").Rule.RuleModule} Rule */ //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ /** * A storage for rules. */ class Rules { constructor() { this._rules = Object.create(null); } /** * Registers a rule module for rule id in storage. * @param {string} ruleId Rule id (file name). * @param {Rule} rule Rule object. * @returns {void} */ define(ruleId, rule) { this._rules[ruleId] = rule; } /** * Access rule handler by id (file name). * @param {string} ruleId Rule id (file name). * @returns {Rule} Rule object. */ get(ruleId) { if (typeof this._rules[ruleId] === "string") { this.define(ruleId, require(this._rules[ruleId])); } if (this._rules[ruleId]) { return this._rules[ruleId]; } if (builtInRules.has(ruleId)) { return builtInRules.get(ruleId); } return null; } *[Symbol.iterator]() { yield* builtInRules; for (const ruleId of Object.keys(this._rules)) { yield [ruleId, this.get(ruleId)]; } } } module.exports = 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