File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
apps/oxlint/src-js/plugins Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,11 @@ export async function loadPlugin(url: string, packageName: string | null): Promi
121121 * @param url - Absolute path of plugin file as a `file://...` URL
122122 * @param packageName - Optional package name from `package.json` (fallback if `plugin.meta.name` is not defined)
123123 * @returns - Plugin details
124- * @throws {Error } If plugin has already been registered
125- * @throws {Error } If plugin has no name
124+ * @throws {* } If plugin throws during import
125+ * @throws {Error } If ` plugin.meta.name` is `null` / `undefined` and `packageName` not provided
126126 * @throws {TypeError } If one of plugin's rules is malformed, or its `createOnce` method returns invalid visitor
127- * @throws {TypeError } if `plugin.meta.name` is not a string
128- * @throws {* } If plugin throws an error during import
127+ * @throws {TypeError } If `plugin.meta.name` is not a string
128+ * @throws {Error } In debug build if plugin has already been registered
129129 */
130130async function loadPluginImpl ( url : string , packageName : string | null ) : Promise < PluginDetails > {
131131 if ( DEBUG ) {
You can’t perform that action at this time.
0 commit comments