ACIL FM
Dark
Refresh
Current DIR:
/home/benbot/bot/server/node_modules/@eslint/eslintrc/lib/shared
/
home
benbot
bot
server
node_modules
@eslint
eslintrc
lib
shared
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
ajv.js
5.2 MB
chmod
View
DL
Edit
Rename
Delete
config-ops.js
4.6 MB
chmod
View
DL
Edit
Rename
Delete
config-validator.js
13.78 MB
chmod
View
DL
Edit
Rename
Delete
deep-merge-arrays.js
1.59 MB
chmod
View
DL
Edit
Rename
Delete
deprecation-warnings.js
2.28 MB
chmod
View
DL
Edit
Rename
Delete
naming.js
3.04 MB
chmod
View
DL
Edit
Rename
Delete
relative-module-resolver.js
1.45 MB
chmod
View
DL
Edit
Rename
Delete
types.js
6.96 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/benbot/bot/server/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js
/** * @fileoverview Provide the function that emits deprecation warnings. * @author Toru Nagashima <http://github.com/mysticatea> */ //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ import path from "node:path"; //------------------------------------------------------------------------------ // Private //------------------------------------------------------------------------------ // Defitions for deprecation warnings. const deprecationWarningMessages = { ESLINT_LEGACY_ECMAFEATURES: "The 'ecmaFeatures' config file property is deprecated and has no effect.", ESLINT_PERSONAL_CONFIG_LOAD: "'~/.eslintrc.*' config files have been deprecated. " + "Please use a config file per project or the '--config' option.", ESLINT_PERSONAL_CONFIG_SUPPRESS: "'~/.eslintrc.*' config files have been deprecated. " + "Please remove it or add 'root:true' to the config files in your " + "projects in order to avoid loading '~/.eslintrc.*' accidentally." }; const sourceFileErrorCache = new Set(); /** * Emits a deprecation warning containing a given filepath. A new deprecation warning is emitted * for each unique file path, but repeated invocations with the same file path have no effect. * No warnings are emitted if the `--no-deprecation` or `--no-warnings` Node runtime flags are active. * @param {string} source The name of the configuration source to report the warning for. * @param {string} errorCode The warning message to show. * @returns {void} */ function emitDeprecationWarning(source, errorCode) { const cacheKey = JSON.stringify({ source, errorCode }); if (sourceFileErrorCache.has(cacheKey)) { return; } sourceFileErrorCache.add(cacheKey); const rel = path.relative(process.cwd(), source); const message = deprecationWarningMessages[errorCode]; process.emitWarning( `${message} (found in "${rel}")`, "DeprecationWarning", errorCode ); } //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ export { emitDeprecationWarning };
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply