eslint-plugin-react-dom 5.30.0-beta.25 → 5.30.0-beta.27

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ var __exportAll = (all, no_symbols) => {
19
19
  };
20
20
  // package.json
21
21
  var name$2 = "eslint-plugin-react-dom";
22
- var version = "5.30.0-beta.25";
22
+ var version = "5.30.0-beta.27";
23
23
  // src/utils/create-rule.ts
24
24
  function getDocsUrl(ruleName) {
25
25
  return `https://eslint-react.xyz/docs/rules/dom-${ruleName}`;
@@ -1647,7 +1647,9 @@ function create$3(context) {
1647
1647
  const sandboxValue = getAttributeValueByName(node, "sandbox");
1648
1648
  if (sandboxValue == null) return;
1649
1649
  const value = getAttributeStaticValue(context, sandboxValue);
1650
- if (!isString(value) || !UNSAFE_SANDBOX_VALUES.every((a) => value.includes(a))) return;
1650
+ if (!isString(value)) return;
1651
+ const tokens = new Set(value.split(/\s+/u));
1652
+ if (!UNSAFE_SANDBOX_VALUES.every((a) => tokens.has(a))) return;
1651
1653
  context.report({
1652
1654
  messageId: "default",
1653
1655
  node: getAttributeReportNode(sandboxValue)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-dom",
3
- "version": "5.30.0-beta.25",
3
+ "version": "5.30.0-beta.27",
4
4
  "description": "ESLint React's ESLint plugin for DOM related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,11 +37,11 @@
37
37
  "dist"
38
38
  ],
39
39
  "dependencies": {
40
- "@eslint-react/ast": "5.30.0-beta.25",
41
- "@eslint-react/eslint": "5.30.0-beta.25",
42
- "@eslint-react/jsx": "5.30.0-beta.25",
43
- "@eslint-react/shared": "5.30.0-beta.25",
44
- "@eslint-react/var": "5.30.0-beta.25",
40
+ "@eslint-react/ast": "5.30.0-beta.27",
41
+ "@eslint-react/eslint": "5.30.0-beta.27",
42
+ "@eslint-react/jsx": "5.30.0-beta.27",
43
+ "@eslint-react/shared": "5.30.0-beta.27",
44
+ "@eslint-react/var": "5.30.0-beta.27",
45
45
  "@typescript-eslint/types": "^8.72.1",
46
46
  "@typescript-eslint/utils": "^8.72.1",
47
47
  "compare-versions": "^6.1.1",