unicorn/no-javascript-url
eslint-plugin-unicorn
No autofix
eslint.config.js
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-javascript-url": "error",
},
},
];No code example for this rule
The linters' documentation does not include one we could extract.
unicorn/no-javascript-url
eslint-plugin-unicorn
import unicorn from "eslint-plugin-unicorn";
export default [
{
plugins: { unicorn },
rules: {
"unicorn/no-javascript-url": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
Disallow invalid accept values on file inputs.
Enforce using the targetOrigin argument with window.postMessage().
Prefer import.meta.{dirname,filename} over legacy techniques for getting file paths.
Enforce correct Error subclassing.