@open-xchange/linter-presets 1.2.10 → 1.2.11
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/CHANGELOG.md +4 -0
- package/dist/eslint/env/browser.js +1 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -28,8 +28,6 @@ const AMBIGUOUS_BROWSER_TYPES = [
|
|
|
28
28
|
"Point",
|
|
29
29
|
"Size",
|
|
30
30
|
"Range",
|
|
31
|
-
"Storage",
|
|
32
|
-
"Transformer",
|
|
33
31
|
];
|
|
34
32
|
/**
|
|
35
33
|
* Properties of global objects to be banned in all browser modules.
|
|
@@ -70,7 +68,7 @@ for (const name of CONFUSING_BROWSER_GLOBALS) {
|
|
|
70
68
|
}
|
|
71
69
|
// Create the configuration list for rule "no-restricted-globals".
|
|
72
70
|
const RESTRICTED_GLOBALS = AMBIGUOUS_BROWSER_TYPES.map(name => {
|
|
73
|
-
const message = `Import custom type '${name}', or use '
|
|
71
|
+
const message = `Import custom type '${name}', or use 'globalThis.${name}' for disambiguation.`;
|
|
74
72
|
return { name, message };
|
|
75
73
|
});
|
|
76
74
|
// functions ==================================================================
|