eslint-plugin-react-web-api 5.30.0-rc.2 → 5.30.1
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/dist/index.js +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ var __exportAll = (all, flags) => {
|
|
|
20
20
|
};
|
|
21
21
|
// package.json
|
|
22
22
|
var name$1 = "eslint-plugin-react-web-api";
|
|
23
|
-
var version = "5.30.
|
|
23
|
+
var version = "5.30.1";
|
|
24
24
|
// src/utils/create-rule.ts
|
|
25
25
|
function getDocsUrl(ruleName) {
|
|
26
26
|
return `https://eslint-react.xyz/docs/rules/web-api-${ruleName}`;
|
|
@@ -212,7 +212,7 @@ function isInverseEntry({ context, addEntry, remEntry, cleanupCalleeEntries }) {
|
|
|
212
212
|
if (id.type !== AST_NODE_TYPES.Identifier) return false;
|
|
213
213
|
return names.has(id.name);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function inferViolations(context, facts) {
|
|
216
216
|
const violations = [];
|
|
217
217
|
const addEntries = [];
|
|
218
218
|
const removeEntries = [];
|
|
@@ -441,7 +441,7 @@ function create$5(context) {
|
|
|
441
441
|
const { facts, visitor } = createFactCollector();
|
|
442
442
|
return merge(visitor, { "Program:exit"() {
|
|
443
443
|
const resolvedFacts = resolveEventListenerFacts(context, facts);
|
|
444
|
-
for (const violation of
|
|
444
|
+
for (const violation of inferViolations(context, resolvedFacts)) context.report({
|
|
445
445
|
data: violation.data,
|
|
446
446
|
messageId: violation.kind,
|
|
447
447
|
node: violation.node
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-web-api",
|
|
3
|
-
"version": "5.30.
|
|
3
|
+
"version": "5.30.1",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for interacting with Web APIs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"dist"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@eslint-react/ast": "5.30.
|
|
41
|
-
"@eslint-react/core": "5.30.
|
|
42
|
-
"@eslint-react/eslint": "5.30.
|
|
43
|
-
"@eslint-react/shared": "5.30.
|
|
44
|
-
"@eslint-react/var": "5.30.
|
|
40
|
+
"@eslint-react/ast": "5.30.1",
|
|
41
|
+
"@eslint-react/core": "5.30.1",
|
|
42
|
+
"@eslint-react/eslint": "5.30.1",
|
|
43
|
+
"@eslint-react/shared": "5.30.1",
|
|
44
|
+
"@eslint-react/var": "5.30.1",
|
|
45
45
|
"@typescript-eslint/types": "^8.72.1",
|
|
46
46
|
"@typescript-eslint/utils": "^8.72.1",
|
|
47
47
|
"ts-pattern": "^5.9.2"
|