ACIL FM
Dark
Refresh
Current DIR:
/home/benbot/bot/server/node_modules/eslint/lib
/
home
benbot
bot
server
node_modules
eslint
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
cli-engine
-
chmod
Open
Rename
Delete
config
-
chmod
Open
Rename
Delete
eslint
-
chmod
Open
Rename
Delete
languages
-
chmod
Open
Rename
Delete
linter
-
chmod
Open
Rename
Delete
rule-tester
-
chmod
Open
Rename
Delete
rules
-
chmod
Open
Rename
Delete
services
-
chmod
Open
Rename
Delete
shared
-
chmod
Open
Rename
Delete
types
-
chmod
Open
Rename
Delete
api.js
1.57 MB
chmod
View
DL
Edit
Rename
Delete
cli.js
14.91 MB
chmod
View
DL
Edit
Rename
Delete
config-api.js
225 B
chmod
View
DL
Edit
Rename
Delete
options.js
14.18 MB
chmod
View
DL
Edit
Rename
Delete
universal.js
181 B
chmod
View
DL
Edit
Rename
Delete
unsupported-api.js
910 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/benbot/bot/server/node_modules/eslint/lib/api.js
/** * @fileoverview Expose out ESLint and CLI to require. * @author Ian Christian Myers */ "use strict"; //----------------------------------------------------------------------------- // Requirements //----------------------------------------------------------------------------- const { ESLint, shouldUseFlatConfig } = require("./eslint/eslint"); const { LegacyESLint } = require("./eslint/legacy-eslint"); const { Linter } = require("./linter"); const { RuleTester } = require("./rule-tester"); const { SourceCode } = require("./languages/js/source-code"); //----------------------------------------------------------------------------- // Functions //----------------------------------------------------------------------------- /** * Loads the correct ESLint constructor given the options. * @param {Object} [options] The options object * @param {boolean} [options.useFlatConfig] Whether or not to use a flat config * @returns {Promise<ESLint|LegacyESLint>} The ESLint constructor */ async function loadESLint({ useFlatConfig } = {}) { /* * Note: The v8.x version of this function also accepted a `cwd` option, but * it is not used in this implementation so we silently ignore it. */ const shouldESLintUseFlatConfig = useFlatConfig ?? (await shouldUseFlatConfig()); return shouldESLintUseFlatConfig ? ESLint : LegacyESLint; } //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- module.exports = { Linter, loadESLint, ESLint, RuleTester, SourceCode, };
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply