Merge branch 'feature/extension-manager' of https://github.com/umbraco/Umbraco.CMS.Backoffice into feature/extension-manager
This commit is contained in:
@@ -200,7 +200,7 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
|
||||
/** @type {import('eslint').RuleModule}*/
|
||||
/** @type {import('eslint').Rule.RuleModule}*/
|
||||
'prefer-static-styles-last': {
|
||||
meta: {
|
||||
type: 'suggestion',
|
||||
@@ -247,7 +247,7 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
|
||||
/** @type {import('eslint').RuleModule}*/
|
||||
/** @type {import('eslint').Rule.RuleModule}*/
|
||||
'ensure-relative-import-use-js-extension': {
|
||||
meta: {
|
||||
type: 'problem',
|
||||
@@ -308,6 +308,33 @@ module.exports = {
|
||||
});
|
||||
}
|
||||
},
|
||||
ExportAllDeclaration: (node) => {
|
||||
const { source } = node;
|
||||
const { value } = source;
|
||||
|
||||
const fixedSource = correctImport(value);
|
||||
if (fixedSource) {
|
||||
context.report({
|
||||
node: source,
|
||||
message: 'Relative exports should use the ".js" file extension.',
|
||||
fix: (fixer) => fixer.replaceText(source, `'${fixedSource}'`),
|
||||
});
|
||||
}
|
||||
},
|
||||
ExportNamedDeclaration: (node) => {
|
||||
const { source } = node;
|
||||
if (!source) return;
|
||||
const { value } = source;
|
||||
|
||||
const fixedSource = correctImport(value);
|
||||
if (fixedSource) {
|
||||
context.report({
|
||||
node: source,
|
||||
message: 'Relative exports should use the ".js" file extension.',
|
||||
fix: (fixer) => fixer.replaceText(source, `'${fixedSource}'`),
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import type { UmbLocalizeController } from '@umbraco-cms/backoffice/localization-api';
|
||||
import type { HTMLElementConstructor } from '../extension-api/types.js';
|
||||
import type { UmbControllerAlias } from './controller-alias.type.js';
|
||||
import { UmbControllerHostBaseMixin } from './controller-host-base.mixin.js';
|
||||
import type { UmbControllerHost } from './controller-host.interface.js';
|
||||
import type { UmbController } from './controller.interface.js';
|
||||
import type { UmbLocalizeController } from '@umbraco-cms/backoffice/localization-api';
|
||||
|
||||
export declare class UmbControllerHostElement extends HTMLElement implements UmbControllerHost {
|
||||
/**
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from './extension-condition.interface';
|
||||
export * from './condition-controller-arguments.type';
|
||||
export * from './extension-condition.interface.js';
|
||||
export * from './condition-controller-arguments.type.js';
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from './workspace-property-data.type';
|
||||
export * from './workspace-property-data.type.js';
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from './repository';
|
||||
export * from './repository/index.js';
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export * from './repository/';
|
||||
export * from './repository/index.js';
|
||||
export * from './components/index.js';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { UmbDictionaryRepository } from '@umbraco-cms/backoffice/dictionary';
|
||||
import { UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS } from '../../modals/manifests.js';
|
||||
import { getInsertDictionarySnippet, getInsertPartialSnippet } from '../../utils.js';
|
||||
import { ChooseInsertTypeModalResult, CodeSnippetType } from '../../modals/insert-choose-type-sidebar.element.js';
|
||||
import { UmbDictionaryRepository } from '@umbraco-cms/backoffice/dictionary';
|
||||
import { customElement, property, css, html } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UUITextStyles } from '@umbraco-cms/backoffice/external/uui';
|
||||
import {
|
||||
|
||||
@@ -1 +1 @@
|
||||
export * from './repository';
|
||||
export * from './repository/index.js';
|
||||
|
||||
Reference in New Issue
Block a user