This commit is contained in:
Alex
2024-03-30 02:06:38 -04:00
parent 19b07691fc
commit 4d2762de39
7 changed files with 1005 additions and 553 deletions

View File

@ -26,10 +26,10 @@ index 883c03b7..0111d616 100644
}
diff --git a/.eslintrc b/.eslintrc
deleted file mode 100644
index 224ffcb0..00000000
index 80e1014c..00000000
--- a/.eslintrc
+++ /dev/null
@@ -1,268 +0,0 @@
@@ -1,267 +0,0 @@
-{
- "root": true,
- "plugins": [
@ -261,7 +261,6 @@ index 224ffcb0..00000000
- {
- "files": [
- "utils/**", // TODO
- "src/ExportMap.js", // TODO
- ],
- "rules": {
- "no-use-before-define": "off",

View File

@ -237,7 +237,7 @@ index 64bbc8d5..b5e9c803 100644
const isCreateElement = require('../util/isCreateElement');
const report = require('../util/report');
diff --git a/lib/rules/no-unknown-property.js b/lib/rules/no-unknown-property.js
index 781e5495..73cc5eb3 100644
index 9491f9c6..44396948 100644
--- a/lib/rules/no-unknown-property.js
+++ b/lib/rules/no-unknown-property.js
@@ -543,7 +543,7 @@ module.exports = {
@ -258,22 +258,6 @@ index 781e5495..73cc5eb3 100644
return;
}
const name = normalizeAttributeCase(actualName);
@@ -584,6 +584,15 @@ module.exports = {
const tagName = getTagName(node);
+ if (
+ (actualName === 'css' && hasEmotion) ||
+ (tagName === 'style' &&
+ (actualName === 'global' || actualName === 'jsx') &&
+ hasNext)
+ ) {
+ return;
+ }
+
if (tagName === 'fbt' || tagName === 'fbs') { return; } // fbt/fbs nodes are bonkers, let's not go there
if (!isValidHTMLTagInJSX(node)) { return; }
diff --git a/lib/util/annotations.js b/lib/util/annotations.js
index 60aaef8c..ad8dc0bf 100644
--- a/lib/util/annotations.js