rename eslint rule

This commit is contained in:
Jacob Overgaard
2023-11-06 10:18:16 +01:00
parent d9cb5e98eb
commit 170169a2ca
5 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@
"local-rules/umb-class-prefix": "error",
"local-rules/prefer-static-styles-last": "warn",
"local-rules/ensure-relative-import-use-js-extension": "error",
"local-rules/ensure-no-external-imports": [
"local-rules/enforce-umbraco-external-imports": [
"error",
{
"exceptions": ["@umbraco-cms", "@open-wc/testing", "@storybook", "msw", "."]

View File

@@ -340,7 +340,7 @@ module.exports = {
},
/** @type {import('eslint').Rule.RuleModule}*/
'ensure-no-external-imports': {
'enforce-umbraco-external-imports': {
meta: {
type: 'problem',
docs: {

View File

@@ -1,4 +1,4 @@
/* eslint local-rules/ensure-no-external-imports: 0 */
/* eslint local-rules/enforce-umbraco-external-imports: 0 */
import styles from 'monaco-editor/min/vs/editor/editor.main.css';
//eslint-disable-next-line
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker.js?worker';

View File

@@ -1,4 +1,4 @@
/* eslint local-rules/ensure-no-external-imports: 0 */
/* eslint local-rules/enforce-umbraco-external-imports: 0 */
import DOMPurify from 'dompurify';
const sanitizeHtml = DOMPurify.sanitize;

View File

@@ -1,4 +1,4 @@
/* eslint local-rules/ensure-no-external-imports: 0 */
/* eslint local-rules/enforce-umbraco-external-imports: 0 */
/**
* TinyMce is a CommonJS module, but in order to make @web/test-runner happy
* we need to load it as a module and then manually register it in the browser