Assignment5_new/node_modules/eslint/lib/shared/flags.js

29 lines
676 B
JavaScript
Raw Normal View History

2025-01-07 05:14:59 +00:00
/**
* @fileoverview Shared flags for ESLint.
*/
"use strict";
/**
* The set of flags that change ESLint behavior with a description.
* @type {Map<string, string>}
*/
const activeFlags = new Map([
["test_only", "Used only for testing."],
["unstable_config_lookup_from_file", "Look up `eslint.config.js` from the file being linted."],
["unstable_ts_config", "Enable TypeScript configuration files."]
]);
/**
* The set of flags that used to be active but no longer have an effect.
* @type {Map<string, string>}
*/
const inactiveFlags = new Map([
["test_only_old", "Used only for testing."]
]);
module.exports = {
activeFlags,
inactiveFlags
};