@qualcomm-ui/eslint-config-mdx 3.0.2 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/recommended.d.ts +2 -1
- package/dist/recommended.d.ts.map +1 -1
- package/dist/remarkrc.d.ts +1 -10
- package/dist/remarkrc.d.ts.map +1 -1
- package/dist/remarkrc.js.map +1 -1
- package/package.json +12 -9
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AAIzC,QAAA,MAAM,SAAS,EAAE;IAAC,OAAO,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,CAAC,CAAA;CAIzD,CAAA;AAED,eAAe,SAAS,CAAA"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/.pnpm/@eslint+config-helpers@0.4.2/node_modules/@eslint/config-helpers/dist/cjs/index.cjs","../../../../node_modules/.pnpm/eslint@9.39.1_jiti@2.6.1/node_modules/eslint/lib/config-api.js","../src/recommended.ts","../src/index.ts"],"sourcesContent":["'use strict';\n\n/**\n * @fileoverview defineConfig helper\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Type Definitions\n//-----------------------------------------------------------------------------\n\n/** @import * as $eslintcore from \"@eslint/core\"; */\n/** @typedef {$eslintcore.ConfigObject} Config */\n/** @typedef {$eslintcore.LegacyConfigObject} LegacyConfig */\n/** @typedef {$eslintcore.Plugin} Plugin */\n/** @typedef {$eslintcore.RuleConfig} RuleConfig */\n/** @import * as $typests from \"./types.ts\"; */\n/** @typedef {$typests.ExtendsElement} ExtendsElement */\n/** @typedef {$typests.SimpleExtendsElement} SimpleExtendsElement */\n/** @typedef {$typests.ConfigWithExtends} ConfigWithExtends */\n/** @typedef {$typests.InfiniteArray<Config>} InfiniteConfigArray */\n/** @typedef {$typests.ConfigWithExtendsArray} ConfigWithExtendsArray */\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\nconst eslintrcKeys = [\n\t\"env\",\n\t\"extends\",\n\t\"globals\",\n\t\"ignorePatterns\",\n\t\"noInlineConfig\",\n\t\"overrides\",\n\t\"parser\",\n\t\"parserOptions\",\n\t\"reportUnusedDisableDirectives\",\n\t\"root\",\n];\n\nconst allowedGlobalIgnoreKeys = new Set([\"basePath\", \"ignores\", \"name\"]);\n\n/**\n * Gets the name of a config object.\n * @param {Config} config The config object.\n * @param {string} indexPath The index path of the config object.\n * @return {string} The name of the config object.\n */\nfunction getConfigName(config, indexPath) {\n\tif (config.name) {\n\t\treturn config.name;\n\t}\n\n\treturn `UserConfig${indexPath}`;\n}\n\n/**\n * Gets the name of an extension.\n * @param {SimpleExtendsElement} extension The extension.\n * @param {string} indexPath The index of the extension.\n * @return {string} The name of the extension.\n */\nfunction getExtensionName(extension, indexPath) {\n\tif (typeof extension === \"string\") {\n\t\treturn extension;\n\t}\n\n\tif (extension.name) {\n\t\treturn extension.name;\n\t}\n\n\treturn `ExtendedConfig${indexPath}`;\n}\n\n/**\n * Determines if a config object is a legacy config.\n * @param {Config|LegacyConfig} config The config object to check.\n * @return {config is LegacyConfig} `true` if the config object is a legacy config.\n */\nfunction isLegacyConfig(config) {\n\t// eslintrc's plugins must be an array; while flat config's must be an object.\n\tif (Array.isArray(config.plugins)) {\n\t\treturn true;\n\t}\n\n\tfor (const key of eslintrcKeys) {\n\t\tif (key in config) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Determines if a config object is a global ignores config.\n * @param {Config} config The config object to check.\n * @return {boolean} `true` if the config object is a global ignores config.\n */\nfunction isGlobalIgnores(config) {\n\treturn Object.keys(config).every(key => allowedGlobalIgnoreKeys.has(key));\n}\n\n/**\n * Parses a plugin member ID (rule, processor, etc.) and returns\n * the namespace and member name.\n * @param {string} id The ID to parse.\n * @returns {{namespace:string, name:string}} The namespace and member name.\n */\nfunction getPluginMember(id) {\n\tconst firstSlashIndex = id.indexOf(\"/\");\n\n\tif (firstSlashIndex === -1) {\n\t\treturn { namespace: \"\", name: id };\n\t}\n\n\tlet namespace = id.slice(0, firstSlashIndex);\n\n\t/*\n\t * Special cases:\n\t * 1. The namespace is `@`, that means it's referring to the\n\t * core plugin so `@` is the full namespace.\n\t * 2. The namespace starts with `@`, that means it's referring to\n\t * an npm scoped package. That means the namespace is the scope\n\t * and the package name (i.e., `@eslint/core`).\n\t */\n\tif (namespace[0] === \"@\" && namespace !== \"@\") {\n\t\tconst secondSlashIndex = id.indexOf(\"/\", firstSlashIndex + 1);\n\t\tif (secondSlashIndex !== -1) {\n\t\t\tnamespace = id.slice(0, secondSlashIndex);\n\t\t\treturn { namespace, name: id.slice(secondSlashIndex + 1) };\n\t\t}\n\t}\n\n\tconst name = id.slice(firstSlashIndex + 1);\n\n\treturn { namespace, name };\n}\n\n/**\n * Normalizes the plugin config by replacing the namespace with the plugin namespace.\n * @param {string} userNamespace The namespace of the plugin.\n * @param {Plugin} plugin The plugin config object.\n * @param {Config} config The config object to normalize.\n * @return {Config} The normalized config object.\n */\nfunction normalizePluginConfig(userNamespace, plugin, config) {\n\tconst pluginNamespace = plugin.meta?.namespace;\n\n\t// don't do anything if the plugin doesn't have a namespace or rules\n\tif (\n\t\t!pluginNamespace ||\n\t\tpluginNamespace === userNamespace ||\n\t\t(!config.rules && !config.processor && !config.language)\n\t) {\n\t\treturn config;\n\t}\n\n\tconst result = { ...config };\n\n\t// update the rules\n\tif (result.rules) {\n\t\tconst ruleIds = Object.keys(result.rules);\n\n\t\t/** @type {Record<string,RuleConfig|undefined>} */\n\t\tconst newRules = {};\n\n\t\tfor (let i = 0; i < ruleIds.length; i++) {\n\t\t\tconst ruleId = ruleIds[i];\n\t\t\tconst { namespace: ruleNamespace, name: ruleName } =\n\t\t\t\tgetPluginMember(ruleId);\n\n\t\t\tif (ruleNamespace === pluginNamespace) {\n\t\t\t\tnewRules[`${userNamespace}/${ruleName}`] = result.rules[ruleId];\n\t\t\t} else {\n\t\t\t\tnewRules[ruleId] = result.rules[ruleId];\n\t\t\t}\n\t\t}\n\n\t\tresult.rules = newRules;\n\t}\n\n\t// update the processor\n\n\tif (typeof result.processor === \"string\") {\n\t\tconst { namespace: processorNamespace, name: processorName } =\n\t\t\tgetPluginMember(result.processor);\n\n\t\tif (processorNamespace) {\n\t\t\tif (processorNamespace === pluginNamespace) {\n\t\t\t\tresult.processor = `${userNamespace}/${processorName}`;\n\t\t\t}\n\t\t}\n\t}\n\n\t// update the language\n\tif (typeof result.language === \"string\") {\n\t\tconst { namespace: languageNamespace, name: languageName } =\n\t\t\tgetPluginMember(result.language);\n\n\t\tif (languageNamespace === pluginNamespace) {\n\t\t\tresult.language = `${userNamespace}/${languageName}`;\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Deeply normalizes a plugin config, traversing recursively into an arrays.\n * @param {string} userPluginNamespace The namespace of the plugin.\n * @param {Plugin} plugin The plugin object.\n * @param {Config|LegacyConfig|(Config|LegacyConfig)[]} pluginConfig The plugin config to normalize.\n * @param {string} pluginConfigName The name of the plugin config.\n * @return {InfiniteConfigArray} The normalized plugin config.\n * @throws {TypeError} If the plugin config is a legacy config.\n */\nfunction deepNormalizePluginConfig(\n\tuserPluginNamespace,\n\tplugin,\n\tpluginConfig,\n\tpluginConfigName,\n) {\n\t// if it's an array then it's definitely a new config\n\tif (Array.isArray(pluginConfig)) {\n\t\treturn pluginConfig.map(pluginSubConfig =>\n\t\t\tdeepNormalizePluginConfig(\n\t\t\t\tuserPluginNamespace,\n\t\t\t\tplugin,\n\t\t\t\tpluginSubConfig,\n\t\t\t\tpluginConfigName,\n\t\t\t),\n\t\t);\n\t}\n\n\t// if it's a legacy config, throw an error\n\tif (isLegacyConfig(pluginConfig)) {\n\t\tthrow new TypeError(\n\t\t\t`Plugin config \"${pluginConfigName}\" is an eslintrc config and cannot be used in this context.`,\n\t\t);\n\t}\n\n\treturn normalizePluginConfig(userPluginNamespace, plugin, pluginConfig);\n}\n\n/**\n * Finds a plugin config by name in the given config.\n * @param {Config} config The config object.\n * @param {string} pluginConfigName The name of the plugin config.\n * @return {InfiniteConfigArray} The plugin config.\n * @throws {TypeError} If the plugin config is not found or is a legacy config.\n */\nfunction findPluginConfig(config, pluginConfigName) {\n\tconst { namespace: userPluginNamespace, name: configName } =\n\t\tgetPluginMember(pluginConfigName);\n\tconst plugin = config.plugins?.[userPluginNamespace];\n\n\tif (!plugin) {\n\t\tthrow new TypeError(`Plugin \"${userPluginNamespace}\" not found.`);\n\t}\n\n\tconst directConfig = plugin.configs?.[configName];\n\n\t// Prefer direct config, but fall back to flat config if available\n\tif (directConfig) {\n\t\t// Arrays are always flat configs, and non-legacy configs can be used directly\n\t\tif (Array.isArray(directConfig) || !isLegacyConfig(directConfig)) {\n\t\t\treturn deepNormalizePluginConfig(\n\t\t\t\tuserPluginNamespace,\n\t\t\t\tplugin,\n\t\t\t\tdirectConfig,\n\t\t\t\tpluginConfigName,\n\t\t\t);\n\t\t}\n\t}\n\n\t// If it's a legacy config, or the config does not exist => look for the flat version\n\tconst flatConfig = plugin.configs?.[`flat/${configName}`];\n\tif (\n\t\tflatConfig &&\n\t\t(Array.isArray(flatConfig) || !isLegacyConfig(flatConfig))\n\t) {\n\t\treturn deepNormalizePluginConfig(\n\t\t\tuserPluginNamespace,\n\t\t\tplugin,\n\t\t\tflatConfig,\n\t\t\tpluginConfigName,\n\t\t);\n\t}\n\n\t// If we get here, then the config was either not found or is a legacy config\n\tconst message =\n\t\tdirectConfig || flatConfig\n\t\t\t? `Plugin config \"${configName}\" in plugin \"${userPluginNamespace}\" is an eslintrc config and cannot be used in this context.`\n\t\t\t: `Plugin config \"${configName}\" not found in plugin \"${userPluginNamespace}\".`;\n\tthrow new TypeError(message);\n}\n\n/**\n * Flattens an array while keeping track of the index path.\n * @param {any[]} configList The array to traverse.\n * @param {string} indexPath The index path of the value in a multidimensional array.\n * @return {IterableIterator<{indexPath:string, value:any}>} The flattened list of values.\n */\nfunction* flatTraverse(configList, indexPath = \"\") {\n\tfor (let i = 0; i < configList.length; i++) {\n\t\tconst newIndexPath = indexPath ? `${indexPath}[${i}]` : `[${i}]`;\n\n\t\t// if it's an array then traverse it as well\n\t\tif (Array.isArray(configList[i])) {\n\t\t\tyield* flatTraverse(configList[i], newIndexPath);\n\t\t\tcontinue;\n\t\t}\n\n\t\tyield { indexPath: newIndexPath, value: configList[i] };\n\t}\n}\n\n/**\n * Extends a list of config files by creating every combination of base and extension files.\n * @param {(string|string[])[]} [baseFiles] The base files.\n * @param {(string|string[])[]} [extensionFiles] The extension files.\n * @return {(string|string[])[]} The extended files.\n */\nfunction extendConfigFiles(baseFiles = [], extensionFiles = []) {\n\tif (!extensionFiles.length) {\n\t\treturn baseFiles.concat();\n\t}\n\n\tif (!baseFiles.length) {\n\t\treturn extensionFiles.concat();\n\t}\n\n\t/** @type {(string|string[])[]} */\n\tconst result = [];\n\n\tfor (const baseFile of baseFiles) {\n\t\tfor (const extensionFile of extensionFiles) {\n\t\t\t/*\n\t\t\t * Each entry can be a string or array of strings. The end result\n\t\t\t * needs to be an array of strings, so we need to be sure to include\n\t\t\t * all of the items when there's an array.\n\t\t\t */\n\n\t\t\tconst entry = [];\n\n\t\t\tif (Array.isArray(baseFile)) {\n\t\t\t\tentry.push(...baseFile);\n\t\t\t} else {\n\t\t\t\tentry.push(baseFile);\n\t\t\t}\n\n\t\t\tif (Array.isArray(extensionFile)) {\n\t\t\t\tentry.push(...extensionFile);\n\t\t\t} else {\n\t\t\t\tentry.push(extensionFile);\n\t\t\t}\n\n\t\t\tresult.push(entry);\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Extends a config object with another config object.\n * @param {Config} baseConfig The base config object.\n * @param {string} baseConfigName The name of the base config object.\n * @param {Config} extension The extension config object.\n * @param {string} extensionName The index of the extension config object.\n * @return {Config} The extended config object.\n */\nfunction extendConfig(baseConfig, baseConfigName, extension, extensionName) {\n\tconst result = { ...extension };\n\n\t// for global ignores there is no further work to be done, we just keep everything\n\tif (!isGlobalIgnores(extension)) {\n\t\t// for files we need to create every combination of base and extension files\n\t\tif (baseConfig.files) {\n\t\t\tresult.files = extendConfigFiles(baseConfig.files, extension.files);\n\t\t}\n\n\t\t// for ignores we just concatenation the extension ignores onto the base ignores\n\t\tif (baseConfig.ignores) {\n\t\t\tresult.ignores = baseConfig.ignores.concat(extension.ignores ?? []);\n\t\t}\n\t}\n\n\tresult.name = `${baseConfigName} > ${extensionName}`;\n\n\t// @ts-ignore -- ESLint types aren't updated yet\n\tif (baseConfig.basePath) {\n\t\t// @ts-ignore -- ESLint types aren't updated yet\n\t\tresult.basePath = baseConfig.basePath;\n\t}\n\n\treturn result;\n}\n\n/**\n * Processes a list of extends elements.\n * @param {ConfigWithExtends} config The config object.\n * @param {WeakMap<Config, string>} configNames The map of config objects to their names.\n * @return {Config[]} The flattened list of config objects.\n * @throws {TypeError} If the `extends` property is not an array or if nested `extends` is found.\n */\nfunction processExtends(config, configNames) {\n\tif (!config.extends) {\n\t\treturn [config];\n\t}\n\n\tif (!Array.isArray(config.extends)) {\n\t\tthrow new TypeError(\"The `extends` property must be an array.\");\n\t}\n\n\tconst {\n\t\t/** @type {Config[]} */\n\t\textends: extendsList,\n\n\t\t/** @type {Config} */\n\t\t...configObject\n\t} = config;\n\n\tconst extensionNames = new WeakMap();\n\n\t// replace strings with the actual configs\n\tconst objectExtends = extendsList.map(extendsElement => {\n\t\tif (typeof extendsElement === \"string\") {\n\t\t\tconst pluginConfig = findPluginConfig(config, extendsElement);\n\n\t\t\t// assign names\n\t\t\tif (Array.isArray(pluginConfig)) {\n\t\t\t\tpluginConfig.forEach((pluginConfigElement, index) => {\n\t\t\t\t\textensionNames.set(\n\t\t\t\t\t\tpluginConfigElement,\n\t\t\t\t\t\t`${extendsElement}[${index}]`,\n\t\t\t\t\t);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\textensionNames.set(pluginConfig, extendsElement);\n\t\t\t}\n\n\t\t\treturn pluginConfig;\n\t\t}\n\n\t\treturn /** @type {Config} */ (extendsElement);\n\t});\n\n\tconst result = [];\n\n\tfor (const { indexPath, value: extendsElement } of flatTraverse(\n\t\tobjectExtends,\n\t)) {\n\t\tconst extension = /** @type {Config} */ (extendsElement);\n\n\t\tif (\"basePath\" in extension) {\n\t\t\tthrow new TypeError(\"'basePath' in `extends` is not allowed.\");\n\t\t}\n\n\t\tif (\"extends\" in extension) {\n\t\t\tthrow new TypeError(\"Nested 'extends' is not allowed.\");\n\t\t}\n\n\t\tconst baseConfigName = /** @type {string} */ (configNames.get(config));\n\t\tconst extensionName =\n\t\t\textensionNames.get(extendsElement) ??\n\t\t\tgetExtensionName(extendsElement, indexPath);\n\n\t\tresult.push(\n\t\t\textendConfig(\n\t\t\t\tconfigObject,\n\t\t\t\tbaseConfigName,\n\t\t\t\textension,\n\t\t\t\textensionName,\n\t\t\t),\n\t\t);\n\t}\n\n\t/*\n\t * If the base config object has only `ignores` and `extends`, then\n\t * removing `extends` turns it into a global ignores, which is not what\n\t * we want. So we need to check if the base config object is a global ignores\n\t * and if so, we don't add it to the array.\n\t *\n\t * (The other option would be to add a `files` entry, but that would result\n\t * in a config that didn't actually do anything because there are no\n\t * other keys in the config.)\n\t */\n\tif (!isGlobalIgnores(configObject)) {\n\t\tresult.push(configObject);\n\t}\n\n\treturn result.flat();\n}\n\n/**\n * Processes a list of config objects and arrays.\n * @param {ConfigWithExtends[]} configList The list of config objects and arrays.\n * @param {WeakMap<Config, string>} configNames The map of config objects to their names.\n * @return {Config[]} The flattened list of config objects.\n */\nfunction processConfigList(configList, configNames) {\n\treturn configList.flatMap(config => processExtends(config, configNames));\n}\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * Helper function to define a config array.\n * @param {ConfigWithExtendsArray} args The arguments to the function.\n * @returns {Config[]} The config array.\n * @throws {TypeError} If no arguments are provided or if an argument is not an object.\n */\nfunction defineConfig(...args) {\n\tconst configNames = new WeakMap();\n\tconst configs = [];\n\n\tif (args.length === 0) {\n\t\tthrow new TypeError(\"Expected one or more arguments.\");\n\t}\n\n\t// first flatten the list of configs and get the names\n\tfor (const { indexPath, value } of flatTraverse(args)) {\n\t\tif (typeof value !== \"object\" || value === null) {\n\t\t\tthrow new TypeError(\n\t\t\t\t`Expected an object but received ${String(value)}.`,\n\t\t\t);\n\t\t}\n\n\t\tconst config = /** @type {ConfigWithExtends} */ (value);\n\n\t\t// save config name for easy reference later\n\t\tconfigNames.set(config, getConfigName(config, indexPath));\n\t\tconfigs.push(config);\n\t}\n\n\treturn processConfigList(configs, configNames);\n}\n\n/**\n * @fileoverview Global ignores helper function.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Type Definitions\n//-----------------------------------------------------------------------------\n\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\nlet globalIgnoreCount = 0;\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * Creates a global ignores config with the given patterns.\n * @param {string[]} ignorePatterns The ignore patterns.\n * @param {string} [name] The name of the global ignores config.\n * @returns {Config} The global ignores config.\n * @throws {TypeError} If ignorePatterns is not an array or if it is empty.\n */\nfunction globalIgnores(ignorePatterns, name) {\n\tif (!Array.isArray(ignorePatterns)) {\n\t\tthrow new TypeError(\"ignorePatterns must be an array\");\n\t}\n\n\tif (ignorePatterns.length === 0) {\n\t\tthrow new TypeError(\"ignorePatterns must contain at least one pattern\");\n\t}\n\n\tconst id = globalIgnoreCount++;\n\n\treturn {\n\t\tname: name || `globalIgnores ${id}`,\n\t\tignores: ignorePatterns,\n\t};\n}\n\nexports.defineConfig = defineConfig;\nexports.globalIgnores = globalIgnores;\n","/**\n * @fileoverview exports for config helpers\n * @author Nicholas C. Zakas\n */\n\n\"use strict\";\nconst { defineConfig, globalIgnores } = require(\"@eslint/config-helpers\");\n\nmodule.exports = {\n\tdefineConfig,\n\tglobalIgnores,\n};\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {defineConfig} from \"eslint/config\"\nimport * as mdx from \"eslint-plugin-mdx\"\nimport reactPlugin from \"eslint-plugin-react\"\n\nconst recommended = defineConfig({\n ...mdx.flat,\n plugins: {\n ...mdx.flat.plugins,\n react: reactPlugin,\n },\n rules: {\n ...mdx.flat.rules,\n \"mdx/remark\": \"error\",\n \"no-unused-expressions\": \"off\",\n },\n})\n\nexport default recommended\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport recommended from \"./recommended.js\"\n\nconst mdxConfig = {\n configs: {\n recommended,\n },\n}\n\nexport default mdxConfig\n"],"x_google_ignoreList":[0,1],"mappings":"sKA2BA,IAAM,EAAe,CACpB,MACA,UACA,UACA,iBACA,iBACA,YACA,SACA,gBACA,gCACA,OACA,CAEK,EAA0B,IAAI,IAAI,CAAC,WAAY,UAAW,OAAO,CAAC,CAQxE,SAAS,cAAc,EAAQ,EAAW,CAKzC,OAJI,EAAO,KACH,EAAO,KAGR,aAAa,IASrB,SAAS,iBAAiB,EAAW,EAAW,CAS/C,OARI,OAAO,GAAc,SACjB,EAGJ,EAAU,KACN,EAAU,KAGX,iBAAiB,IAQzB,SAAS,eAAe,EAAQ,CAE/B,GAAI,MAAM,QAAQ,EAAO,QAAQ,CAChC,MAAO,GAGR,IAAK,IAAM,KAAO,EACjB,GAA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AK,IAEX,MAAO,CACN,KAAM,GAAQ,iBAAiB,IAC/B,QAAS,EACT,CAGF,EAAQ,aAAe,aACvB,EAAQ,cAAgB,iBGtkBlB,EAAY,CAChB,QAAS,CACP,aDAE,yBDDN,GAAM,CAAE,eAAc,iBAAA,GAAA,CAEtB,EAAO,QAAU,CAChB,eACA,gBACA,MCJK,cAA2B,CAC/B,GAAG,EAAI,KACP,QAAS,CACP,GAAG,EAAI,KAAK,QACZ,MAAO,EACR,CACD,MAAO,CACL,GAAG,EAAI,KAAK,MACZ,aAAc,QACd,wBAAyB,MAC1B,CACF,CAAC,CCVC,CACF"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../../node_modules/.pnpm/@eslint+config-helpers@0.4.2/node_modules/@eslint/config-helpers/dist/cjs/index.cjs","../../../../node_modules/.pnpm/eslint@9.39.1_jiti@2.7.0/node_modules/eslint/lib/config-api.js","../src/recommended.ts","../src/index.ts"],"sourcesContent":["'use strict';\n\n/**\n * @fileoverview defineConfig helper\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Type Definitions\n//-----------------------------------------------------------------------------\n\n/** @import * as $eslintcore from \"@eslint/core\"; */\n/** @typedef {$eslintcore.ConfigObject} Config */\n/** @typedef {$eslintcore.LegacyConfigObject} LegacyConfig */\n/** @typedef {$eslintcore.Plugin} Plugin */\n/** @typedef {$eslintcore.RuleConfig} RuleConfig */\n/** @import * as $typests from \"./types.ts\"; */\n/** @typedef {$typests.ExtendsElement} ExtendsElement */\n/** @typedef {$typests.SimpleExtendsElement} SimpleExtendsElement */\n/** @typedef {$typests.ConfigWithExtends} ConfigWithExtends */\n/** @typedef {$typests.InfiniteArray<Config>} InfiniteConfigArray */\n/** @typedef {$typests.ConfigWithExtendsArray} ConfigWithExtendsArray */\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\nconst eslintrcKeys = [\n\t\"env\",\n\t\"extends\",\n\t\"globals\",\n\t\"ignorePatterns\",\n\t\"noInlineConfig\",\n\t\"overrides\",\n\t\"parser\",\n\t\"parserOptions\",\n\t\"reportUnusedDisableDirectives\",\n\t\"root\",\n];\n\nconst allowedGlobalIgnoreKeys = new Set([\"basePath\", \"ignores\", \"name\"]);\n\n/**\n * Gets the name of a config object.\n * @param {Config} config The config object.\n * @param {string} indexPath The index path of the config object.\n * @return {string} The name of the config object.\n */\nfunction getConfigName(config, indexPath) {\n\tif (config.name) {\n\t\treturn config.name;\n\t}\n\n\treturn `UserConfig${indexPath}`;\n}\n\n/**\n * Gets the name of an extension.\n * @param {SimpleExtendsElement} extension The extension.\n * @param {string} indexPath The index of the extension.\n * @return {string} The name of the extension.\n */\nfunction getExtensionName(extension, indexPath) {\n\tif (typeof extension === \"string\") {\n\t\treturn extension;\n\t}\n\n\tif (extension.name) {\n\t\treturn extension.name;\n\t}\n\n\treturn `ExtendedConfig${indexPath}`;\n}\n\n/**\n * Determines if a config object is a legacy config.\n * @param {Config|LegacyConfig} config The config object to check.\n * @return {config is LegacyConfig} `true` if the config object is a legacy config.\n */\nfunction isLegacyConfig(config) {\n\t// eslintrc's plugins must be an array; while flat config's must be an object.\n\tif (Array.isArray(config.plugins)) {\n\t\treturn true;\n\t}\n\n\tfor (const key of eslintrcKeys) {\n\t\tif (key in config) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Determines if a config object is a global ignores config.\n * @param {Config} config The config object to check.\n * @return {boolean} `true` if the config object is a global ignores config.\n */\nfunction isGlobalIgnores(config) {\n\treturn Object.keys(config).every(key => allowedGlobalIgnoreKeys.has(key));\n}\n\n/**\n * Parses a plugin member ID (rule, processor, etc.) and returns\n * the namespace and member name.\n * @param {string} id The ID to parse.\n * @returns {{namespace:string, name:string}} The namespace and member name.\n */\nfunction getPluginMember(id) {\n\tconst firstSlashIndex = id.indexOf(\"/\");\n\n\tif (firstSlashIndex === -1) {\n\t\treturn { namespace: \"\", name: id };\n\t}\n\n\tlet namespace = id.slice(0, firstSlashIndex);\n\n\t/*\n\t * Special cases:\n\t * 1. The namespace is `@`, that means it's referring to the\n\t * core plugin so `@` is the full namespace.\n\t * 2. The namespace starts with `@`, that means it's referring to\n\t * an npm scoped package. That means the namespace is the scope\n\t * and the package name (i.e., `@eslint/core`).\n\t */\n\tif (namespace[0] === \"@\" && namespace !== \"@\") {\n\t\tconst secondSlashIndex = id.indexOf(\"/\", firstSlashIndex + 1);\n\t\tif (secondSlashIndex !== -1) {\n\t\t\tnamespace = id.slice(0, secondSlashIndex);\n\t\t\treturn { namespace, name: id.slice(secondSlashIndex + 1) };\n\t\t}\n\t}\n\n\tconst name = id.slice(firstSlashIndex + 1);\n\n\treturn { namespace, name };\n}\n\n/**\n * Normalizes the plugin config by replacing the namespace with the plugin namespace.\n * @param {string} userNamespace The namespace of the plugin.\n * @param {Plugin} plugin The plugin config object.\n * @param {Config} config The config object to normalize.\n * @return {Config} The normalized config object.\n */\nfunction normalizePluginConfig(userNamespace, plugin, config) {\n\tconst pluginNamespace = plugin.meta?.namespace;\n\n\t// don't do anything if the plugin doesn't have a namespace or rules\n\tif (\n\t\t!pluginNamespace ||\n\t\tpluginNamespace === userNamespace ||\n\t\t(!config.rules && !config.processor && !config.language)\n\t) {\n\t\treturn config;\n\t}\n\n\tconst result = { ...config };\n\n\t// update the rules\n\tif (result.rules) {\n\t\tconst ruleIds = Object.keys(result.rules);\n\n\t\t/** @type {Record<string,RuleConfig|undefined>} */\n\t\tconst newRules = {};\n\n\t\tfor (let i = 0; i < ruleIds.length; i++) {\n\t\t\tconst ruleId = ruleIds[i];\n\t\t\tconst { namespace: ruleNamespace, name: ruleName } =\n\t\t\t\tgetPluginMember(ruleId);\n\n\t\t\tif (ruleNamespace === pluginNamespace) {\n\t\t\t\tnewRules[`${userNamespace}/${ruleName}`] = result.rules[ruleId];\n\t\t\t} else {\n\t\t\t\tnewRules[ruleId] = result.rules[ruleId];\n\t\t\t}\n\t\t}\n\n\t\tresult.rules = newRules;\n\t}\n\n\t// update the processor\n\n\tif (typeof result.processor === \"string\") {\n\t\tconst { namespace: processorNamespace, name: processorName } =\n\t\t\tgetPluginMember(result.processor);\n\n\t\tif (processorNamespace) {\n\t\t\tif (processorNamespace === pluginNamespace) {\n\t\t\t\tresult.processor = `${userNamespace}/${processorName}`;\n\t\t\t}\n\t\t}\n\t}\n\n\t// update the language\n\tif (typeof result.language === \"string\") {\n\t\tconst { namespace: languageNamespace, name: languageName } =\n\t\t\tgetPluginMember(result.language);\n\n\t\tif (languageNamespace === pluginNamespace) {\n\t\t\tresult.language = `${userNamespace}/${languageName}`;\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Deeply normalizes a plugin config, traversing recursively into an arrays.\n * @param {string} userPluginNamespace The namespace of the plugin.\n * @param {Plugin} plugin The plugin object.\n * @param {Config|LegacyConfig|(Config|LegacyConfig)[]} pluginConfig The plugin config to normalize.\n * @param {string} pluginConfigName The name of the plugin config.\n * @return {InfiniteConfigArray} The normalized plugin config.\n * @throws {TypeError} If the plugin config is a legacy config.\n */\nfunction deepNormalizePluginConfig(\n\tuserPluginNamespace,\n\tplugin,\n\tpluginConfig,\n\tpluginConfigName,\n) {\n\t// if it's an array then it's definitely a new config\n\tif (Array.isArray(pluginConfig)) {\n\t\treturn pluginConfig.map(pluginSubConfig =>\n\t\t\tdeepNormalizePluginConfig(\n\t\t\t\tuserPluginNamespace,\n\t\t\t\tplugin,\n\t\t\t\tpluginSubConfig,\n\t\t\t\tpluginConfigName,\n\t\t\t),\n\t\t);\n\t}\n\n\t// if it's a legacy config, throw an error\n\tif (isLegacyConfig(pluginConfig)) {\n\t\tthrow new TypeError(\n\t\t\t`Plugin config \"${pluginConfigName}\" is an eslintrc config and cannot be used in this context.`,\n\t\t);\n\t}\n\n\treturn normalizePluginConfig(userPluginNamespace, plugin, pluginConfig);\n}\n\n/**\n * Finds a plugin config by name in the given config.\n * @param {Config} config The config object.\n * @param {string} pluginConfigName The name of the plugin config.\n * @return {InfiniteConfigArray} The plugin config.\n * @throws {TypeError} If the plugin config is not found or is a legacy config.\n */\nfunction findPluginConfig(config, pluginConfigName) {\n\tconst { namespace: userPluginNamespace, name: configName } =\n\t\tgetPluginMember(pluginConfigName);\n\tconst plugin = config.plugins?.[userPluginNamespace];\n\n\tif (!plugin) {\n\t\tthrow new TypeError(`Plugin \"${userPluginNamespace}\" not found.`);\n\t}\n\n\tconst directConfig = plugin.configs?.[configName];\n\n\t// Prefer direct config, but fall back to flat config if available\n\tif (directConfig) {\n\t\t// Arrays are always flat configs, and non-legacy configs can be used directly\n\t\tif (Array.isArray(directConfig) || !isLegacyConfig(directConfig)) {\n\t\t\treturn deepNormalizePluginConfig(\n\t\t\t\tuserPluginNamespace,\n\t\t\t\tplugin,\n\t\t\t\tdirectConfig,\n\t\t\t\tpluginConfigName,\n\t\t\t);\n\t\t}\n\t}\n\n\t// If it's a legacy config, or the config does not exist => look for the flat version\n\tconst flatConfig = plugin.configs?.[`flat/${configName}`];\n\tif (\n\t\tflatConfig &&\n\t\t(Array.isArray(flatConfig) || !isLegacyConfig(flatConfig))\n\t) {\n\t\treturn deepNormalizePluginConfig(\n\t\t\tuserPluginNamespace,\n\t\t\tplugin,\n\t\t\tflatConfig,\n\t\t\tpluginConfigName,\n\t\t);\n\t}\n\n\t// If we get here, then the config was either not found or is a legacy config\n\tconst message =\n\t\tdirectConfig || flatConfig\n\t\t\t? `Plugin config \"${configName}\" in plugin \"${userPluginNamespace}\" is an eslintrc config and cannot be used in this context.`\n\t\t\t: `Plugin config \"${configName}\" not found in plugin \"${userPluginNamespace}\".`;\n\tthrow new TypeError(message);\n}\n\n/**\n * Flattens an array while keeping track of the index path.\n * @param {any[]} configList The array to traverse.\n * @param {string} indexPath The index path of the value in a multidimensional array.\n * @return {IterableIterator<{indexPath:string, value:any}>} The flattened list of values.\n */\nfunction* flatTraverse(configList, indexPath = \"\") {\n\tfor (let i = 0; i < configList.length; i++) {\n\t\tconst newIndexPath = indexPath ? `${indexPath}[${i}]` : `[${i}]`;\n\n\t\t// if it's an array then traverse it as well\n\t\tif (Array.isArray(configList[i])) {\n\t\t\tyield* flatTraverse(configList[i], newIndexPath);\n\t\t\tcontinue;\n\t\t}\n\n\t\tyield { indexPath: newIndexPath, value: configList[i] };\n\t}\n}\n\n/**\n * Extends a list of config files by creating every combination of base and extension files.\n * @param {(string|string[])[]} [baseFiles] The base files.\n * @param {(string|string[])[]} [extensionFiles] The extension files.\n * @return {(string|string[])[]} The extended files.\n */\nfunction extendConfigFiles(baseFiles = [], extensionFiles = []) {\n\tif (!extensionFiles.length) {\n\t\treturn baseFiles.concat();\n\t}\n\n\tif (!baseFiles.length) {\n\t\treturn extensionFiles.concat();\n\t}\n\n\t/** @type {(string|string[])[]} */\n\tconst result = [];\n\n\tfor (const baseFile of baseFiles) {\n\t\tfor (const extensionFile of extensionFiles) {\n\t\t\t/*\n\t\t\t * Each entry can be a string or array of strings. The end result\n\t\t\t * needs to be an array of strings, so we need to be sure to include\n\t\t\t * all of the items when there's an array.\n\t\t\t */\n\n\t\t\tconst entry = [];\n\n\t\t\tif (Array.isArray(baseFile)) {\n\t\t\t\tentry.push(...baseFile);\n\t\t\t} else {\n\t\t\t\tentry.push(baseFile);\n\t\t\t}\n\n\t\t\tif (Array.isArray(extensionFile)) {\n\t\t\t\tentry.push(...extensionFile);\n\t\t\t} else {\n\t\t\t\tentry.push(extensionFile);\n\t\t\t}\n\n\t\t\tresult.push(entry);\n\t\t}\n\t}\n\n\treturn result;\n}\n\n/**\n * Extends a config object with another config object.\n * @param {Config} baseConfig The base config object.\n * @param {string} baseConfigName The name of the base config object.\n * @param {Config} extension The extension config object.\n * @param {string} extensionName The index of the extension config object.\n * @return {Config} The extended config object.\n */\nfunction extendConfig(baseConfig, baseConfigName, extension, extensionName) {\n\tconst result = { ...extension };\n\n\t// for global ignores there is no further work to be done, we just keep everything\n\tif (!isGlobalIgnores(extension)) {\n\t\t// for files we need to create every combination of base and extension files\n\t\tif (baseConfig.files) {\n\t\t\tresult.files = extendConfigFiles(baseConfig.files, extension.files);\n\t\t}\n\n\t\t// for ignores we just concatenation the extension ignores onto the base ignores\n\t\tif (baseConfig.ignores) {\n\t\t\tresult.ignores = baseConfig.ignores.concat(extension.ignores ?? []);\n\t\t}\n\t}\n\n\tresult.name = `${baseConfigName} > ${extensionName}`;\n\n\t// @ts-ignore -- ESLint types aren't updated yet\n\tif (baseConfig.basePath) {\n\t\t// @ts-ignore -- ESLint types aren't updated yet\n\t\tresult.basePath = baseConfig.basePath;\n\t}\n\n\treturn result;\n}\n\n/**\n * Processes a list of extends elements.\n * @param {ConfigWithExtends} config The config object.\n * @param {WeakMap<Config, string>} configNames The map of config objects to their names.\n * @return {Config[]} The flattened list of config objects.\n * @throws {TypeError} If the `extends` property is not an array or if nested `extends` is found.\n */\nfunction processExtends(config, configNames) {\n\tif (!config.extends) {\n\t\treturn [config];\n\t}\n\n\tif (!Array.isArray(config.extends)) {\n\t\tthrow new TypeError(\"The `extends` property must be an array.\");\n\t}\n\n\tconst {\n\t\t/** @type {Config[]} */\n\t\textends: extendsList,\n\n\t\t/** @type {Config} */\n\t\t...configObject\n\t} = config;\n\n\tconst extensionNames = new WeakMap();\n\n\t// replace strings with the actual configs\n\tconst objectExtends = extendsList.map(extendsElement => {\n\t\tif (typeof extendsElement === \"string\") {\n\t\t\tconst pluginConfig = findPluginConfig(config, extendsElement);\n\n\t\t\t// assign names\n\t\t\tif (Array.isArray(pluginConfig)) {\n\t\t\t\tpluginConfig.forEach((pluginConfigElement, index) => {\n\t\t\t\t\textensionNames.set(\n\t\t\t\t\t\tpluginConfigElement,\n\t\t\t\t\t\t`${extendsElement}[${index}]`,\n\t\t\t\t\t);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\textensionNames.set(pluginConfig, extendsElement);\n\t\t\t}\n\n\t\t\treturn pluginConfig;\n\t\t}\n\n\t\treturn /** @type {Config} */ (extendsElement);\n\t});\n\n\tconst result = [];\n\n\tfor (const { indexPath, value: extendsElement } of flatTraverse(\n\t\tobjectExtends,\n\t)) {\n\t\tconst extension = /** @type {Config} */ (extendsElement);\n\n\t\tif (\"basePath\" in extension) {\n\t\t\tthrow new TypeError(\"'basePath' in `extends` is not allowed.\");\n\t\t}\n\n\t\tif (\"extends\" in extension) {\n\t\t\tthrow new TypeError(\"Nested 'extends' is not allowed.\");\n\t\t}\n\n\t\tconst baseConfigName = /** @type {string} */ (configNames.get(config));\n\t\tconst extensionName =\n\t\t\textensionNames.get(extendsElement) ??\n\t\t\tgetExtensionName(extendsElement, indexPath);\n\n\t\tresult.push(\n\t\t\textendConfig(\n\t\t\t\tconfigObject,\n\t\t\t\tbaseConfigName,\n\t\t\t\textension,\n\t\t\t\textensionName,\n\t\t\t),\n\t\t);\n\t}\n\n\t/*\n\t * If the base config object has only `ignores` and `extends`, then\n\t * removing `extends` turns it into a global ignores, which is not what\n\t * we want. So we need to check if the base config object is a global ignores\n\t * and if so, we don't add it to the array.\n\t *\n\t * (The other option would be to add a `files` entry, but that would result\n\t * in a config that didn't actually do anything because there are no\n\t * other keys in the config.)\n\t */\n\tif (!isGlobalIgnores(configObject)) {\n\t\tresult.push(configObject);\n\t}\n\n\treturn result.flat();\n}\n\n/**\n * Processes a list of config objects and arrays.\n * @param {ConfigWithExtends[]} configList The list of config objects and arrays.\n * @param {WeakMap<Config, string>} configNames The map of config objects to their names.\n * @return {Config[]} The flattened list of config objects.\n */\nfunction processConfigList(configList, configNames) {\n\treturn configList.flatMap(config => processExtends(config, configNames));\n}\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * Helper function to define a config array.\n * @param {ConfigWithExtendsArray} args The arguments to the function.\n * @returns {Config[]} The config array.\n * @throws {TypeError} If no arguments are provided or if an argument is not an object.\n */\nfunction defineConfig(...args) {\n\tconst configNames = new WeakMap();\n\tconst configs = [];\n\n\tif (args.length === 0) {\n\t\tthrow new TypeError(\"Expected one or more arguments.\");\n\t}\n\n\t// first flatten the list of configs and get the names\n\tfor (const { indexPath, value } of flatTraverse(args)) {\n\t\tif (typeof value !== \"object\" || value === null) {\n\t\t\tthrow new TypeError(\n\t\t\t\t`Expected an object but received ${String(value)}.`,\n\t\t\t);\n\t\t}\n\n\t\tconst config = /** @type {ConfigWithExtends} */ (value);\n\n\t\t// save config name for easy reference later\n\t\tconfigNames.set(config, getConfigName(config, indexPath));\n\t\tconfigs.push(config);\n\t}\n\n\treturn processConfigList(configs, configNames);\n}\n\n/**\n * @fileoverview Global ignores helper function.\n * @author Nicholas C. Zakas\n */\n\n//-----------------------------------------------------------------------------\n// Type Definitions\n//-----------------------------------------------------------------------------\n\n\n//-----------------------------------------------------------------------------\n// Helpers\n//-----------------------------------------------------------------------------\n\nlet globalIgnoreCount = 0;\n\n//-----------------------------------------------------------------------------\n// Exports\n//-----------------------------------------------------------------------------\n\n/**\n * Creates a global ignores config with the given patterns.\n * @param {string[]} ignorePatterns The ignore patterns.\n * @param {string} [name] The name of the global ignores config.\n * @returns {Config} The global ignores config.\n * @throws {TypeError} If ignorePatterns is not an array or if it is empty.\n */\nfunction globalIgnores(ignorePatterns, name) {\n\tif (!Array.isArray(ignorePatterns)) {\n\t\tthrow new TypeError(\"ignorePatterns must be an array\");\n\t}\n\n\tif (ignorePatterns.length === 0) {\n\t\tthrow new TypeError(\"ignorePatterns must contain at least one pattern\");\n\t}\n\n\tconst id = globalIgnoreCount++;\n\n\treturn {\n\t\tname: name || `globalIgnores ${id}`,\n\t\tignores: ignorePatterns,\n\t};\n}\n\nexports.defineConfig = defineConfig;\nexports.globalIgnores = globalIgnores;\n","/**\n * @fileoverview exports for config helpers\n * @author Nicholas C. Zakas\n */\n\n\"use strict\";\nconst { defineConfig, globalIgnores } = require(\"@eslint/config-helpers\");\n\nmodule.exports = {\n\tdefineConfig,\n\tglobalIgnores,\n};\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport * as mdx from \"eslint-plugin-mdx\"\nimport reactPlugin from \"eslint-plugin-react\"\nimport {defineConfig, type Config} from \"eslint/config\"\n\nconst recommended: Config[] = defineConfig({\n ...mdx.flat,\n plugins: {\n ...mdx.flat.plugins,\n react: reactPlugin,\n },\n rules: {\n ...mdx.flat.rules,\n \"mdx/remark\": \"error\",\n \"no-unused-expressions\": \"off\",\n },\n})\n\nexport default recommended\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {Config} from \"eslint/config\"\n\nimport recommended from \"./recommended.js\"\n\nconst mdxConfig: {configs: Record<\"recommended\", Config[]>} = {\n configs: {\n recommended,\n },\n}\n\nexport default mdxConfig\n"],"x_google_ignoreList":[0,1],"mappings":"sKA2BA,IAAM,EAAe,CACpB,MACA,UACA,UACA,iBACA,iBACA,YACA,SACA,gBACA,gCACA,OACA,CAEK,EAA0B,IAAI,IAAI,CAAC,WAAY,UAAW,OAAO,CAAC,CAQxE,SAAS,cAAc,EAAQ,EAAW,CAKzC,OAJI,EAAO,KACH,EAAO,KAGR,aAAa,IASrB,SAAS,iBAAiB,EAAW,EAAW,CAS/C,OARI,OAAO,GAAc,SACjB,EAGJ,EAAU,KACN,EAAU,KAGX,iBAAiB,IAQzB,SAAS,eAAe,EAAQ,CAE/B,GAAI,MAAM,QAAQ,EAAO,QAAQ,CAChC,MAAO,GAGR,IAAK,IAAM,KAAO,EACjB,GAAI,KAAO,EACV,MAAO,GAIT,MAAO,GAQR,SAAS,gBAAgB,EAAQ,CAChC,OAAO,OAAO,KAAK,EAAO,CAAC,MAAM,GAAO,EAAwB,IAAI,EAAI,CAAC,CAS1E,SAAS,gBAAgB,EAAI,CAC5B,IAAM,EAAkB,EAAG,QAAQ,IAAI,CAEvC,GAAI,IAAoB,GACvB,MAAO,CAAE,UAAW,GAAI,KAAM,EAAI,CAGnC,IAAI,EAAY,EAAG,MAAM,EAAG,EAAgB,CAU5C,GAAI,EAAU,KAA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K,MACZ,aAAc,QACd,wBAAyB,MAC1B,CACF,CAAC,CCRC,CACF"}
|
package/dist/recommended.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../src/recommended.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../src/recommended.ts"],"names":[],"mappings":"AAKA,OAAO,EAAe,KAAK,MAAM,EAAC,MAAM,eAAe,CAAA;AAEvD,QAAA,MAAM,WAAW,EAAE,MAAM,EAWvB,CAAA;AAEF,eAAe,WAAW,CAAA"}
|
package/dist/remarkrc.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const remarkConfig: {
|
|
3
|
-
plugins: (string | typeof remarkPreserveAlertMarkers | (string | {
|
|
4
|
-
size: number;
|
|
5
|
-
})[])[];
|
|
6
|
-
settings: {
|
|
7
|
-
bullet: string;
|
|
8
|
-
rule: string;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
1
|
+
declare const remarkConfig: any;
|
|
11
2
|
export default remarkConfig;
|
|
12
3
|
//# sourceMappingURL=remarkrc.d.ts.map
|
package/dist/remarkrc.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remarkrc.d.ts","sourceRoot":"","sources":["../src/remarkrc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remarkrc.d.ts","sourceRoot":"","sources":["../src/remarkrc.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,YAAY,EAAE,GAqBnB,CAAA;AAED,eAAe,YAAY,CAAA"}
|
package/dist/remarkrc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remarkrc.js","names":[],"sources":["../src/remarkrc.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport remarkLintCodeFormat from \"./remark-lint-code-format.js\"\nimport remarkLintMdxJsxFormat from \"./remark-lint-mdx-jsx-format.js\"\nimport remarkPreserveAlertMarkers from \"./remark-preserve-alert-markers.js\"\n\nconst remarkConfig = {\n plugins: [\n \"remark-frontmatter\",\n \"remark-lint-fenced-code-flag\",\n \"remark-lint-final-newline\",\n \"remark-lint-heading-increment\",\n \"remark-lint-list-item-content-indent\",\n [\"remark-lint-list-item-indent\", \"one\"],\n [\"remark-lint-maximum-heading-length\", {size: 80}],\n \"remark-lint-no-consecutive-blank-lines\",\n \"remark-lint-no-duplicate-headings-in-section\",\n [\"remark-lint-no-heading-punctuation\", \",.:;\"],\n [\"remark-lint-unordered-list-marker-style\", \"-\"],\n remarkLintCodeFormat,\n remarkLintMdxJsxFormat,\n remarkPreserveAlertMarkers,\n ],\n settings: {\n bullet: \"-\",\n rule: \"-\",\n },\n}\n\nexport default remarkConfig\n"],"mappings":"6IAOA,IAAM,
|
|
1
|
+
{"version":3,"file":"remarkrc.js","names":[],"sources":["../src/remarkrc.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport remarkLintCodeFormat from \"./remark-lint-code-format.js\"\nimport remarkLintMdxJsxFormat from \"./remark-lint-mdx-jsx-format.js\"\nimport remarkPreserveAlertMarkers from \"./remark-preserve-alert-markers.js\"\n\nconst remarkConfig: any = {\n plugins: [\n \"remark-frontmatter\",\n \"remark-lint-fenced-code-flag\",\n \"remark-lint-final-newline\",\n \"remark-lint-heading-increment\",\n \"remark-lint-list-item-content-indent\",\n [\"remark-lint-list-item-indent\", \"one\"],\n [\"remark-lint-maximum-heading-length\", {size: 80}],\n \"remark-lint-no-consecutive-blank-lines\",\n \"remark-lint-no-duplicate-headings-in-section\",\n [\"remark-lint-no-heading-punctuation\", \",.:;\"],\n [\"remark-lint-unordered-list-marker-style\", \"-\"],\n remarkLintCodeFormat,\n remarkLintMdxJsxFormat,\n remarkPreserveAlertMarkers,\n ],\n settings: {\n bullet: \"-\",\n rule: \"-\",\n },\n}\n\nexport default remarkConfig\n"],"mappings":"6IAOA,IAAM,EAAoB,CACxB,QAAS,CACP,qBACA,+BACA,4BACA,gCACA,uCACA,CAAC,+BAAgC,MAAM,CACvC,CAAC,qCAAsC,CAAC,KAAM,GAAG,CAAC,CAClD,yCACA,+CACA,CAAC,qCAAsC,OAAO,CAC9C,CAAC,0CAA2C,IAAI,CAChD,EACA,EACA,EACD,CACD,SAAU,CACR,OAAQ,IACR,KAAM,IACP,CACF"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualcomm-ui/eslint-config-mdx",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "QUI ESLint config for consistent MDX code",
|
|
5
|
-
"author": "Ryan Bower",
|
|
6
|
-
"license": "BSD-3-Clause-Clear",
|
|
7
|
-
"repository": "https://github.com/qualcomm/qualcomm-ui",
|
|
8
|
-
"publishConfig": {
|
|
9
|
-
"access": "public"
|
|
10
|
-
},
|
|
11
5
|
"keywords": [
|
|
12
6
|
"config",
|
|
13
7
|
"eslint",
|
|
14
8
|
"react"
|
|
15
9
|
],
|
|
16
|
-
"
|
|
17
|
-
"
|
|
10
|
+
"license": "BSD-3-Clause-Clear",
|
|
11
|
+
"author": "Ryan Bower",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/qualcomm/qualcomm-ui"
|
|
15
|
+
},
|
|
18
16
|
"files": [
|
|
19
17
|
"dist/",
|
|
20
18
|
".remarkrc"
|
|
21
19
|
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"sideEffects": false,
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
"default": "./dist/remark-preserve-alert-markers.js"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
|
+
"publishConfig": {
|
|
51
|
+
"access": "public"
|
|
52
|
+
},
|
|
50
53
|
"peerDependencies": {
|
|
51
54
|
"eslint": ">=9.37.0",
|
|
52
55
|
"eslint-mdx": ">=3.7.0",
|