rename eslint rule
This commit is contained in:
@@ -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", "."]
|
||||
|
||||
@@ -340,7 +340,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
/** @type {import('eslint').Rule.RuleModule}*/
|
||||
'ensure-no-external-imports': {
|
||||
'enforce-umbraco-external-imports': {
|
||||
meta: {
|
||||
type: 'problem',
|
||||
docs: {
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user