eslint-plugin-react-hooks-extra 1.52.9 → 1.52.10-next.0
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.d.mts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +3 -16
- package/dist/index.mjs +3 -16
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { RulePreset } from '@eslint-react/kit';
|
|
1
|
+
import * as _eslint_react_kit from '@eslint-react/kit';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
5
|
recommended: {
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-hooks-extra": _eslint_react_shared.CompatiblePlugin;
|
|
9
|
-
};
|
|
6
|
+
plugins: {};
|
|
10
7
|
name?: string;
|
|
11
|
-
rules?: Record<string,
|
|
8
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
9
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
12
10
|
};
|
|
13
11
|
"recommended-legacy": {
|
|
14
12
|
plugins: string[];
|
|
15
|
-
rules:
|
|
13
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
16
|
meta: {
|
|
19
17
|
name: string;
|
|
20
18
|
version: string;
|
|
21
19
|
};
|
|
22
|
-
rules: Record<string,
|
|
20
|
+
rules: Record<string, _eslint_react_kit.CompatibleRule>;
|
|
23
21
|
};
|
|
24
22
|
|
|
25
23
|
export { _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { RulePreset } from '@eslint-react/kit';
|
|
1
|
+
import * as _eslint_react_kit from '@eslint-react/kit';
|
|
3
2
|
|
|
4
3
|
declare const _default: {
|
|
5
4
|
configs: {
|
|
6
5
|
recommended: {
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-hooks-extra": _eslint_react_shared.CompatiblePlugin;
|
|
9
|
-
};
|
|
6
|
+
plugins: {};
|
|
10
7
|
name?: string;
|
|
11
|
-
rules?: Record<string,
|
|
8
|
+
rules?: Record<string, _eslint_react_kit.RuleConfig>;
|
|
9
|
+
settings?: _eslint_react_kit.SettingsConfig;
|
|
12
10
|
};
|
|
13
11
|
"recommended-legacy": {
|
|
14
12
|
plugins: string[];
|
|
15
|
-
rules:
|
|
13
|
+
rules: Record<string, _eslint_react_kit.RuleConfig<unknown[]>> | undefined;
|
|
16
14
|
};
|
|
17
15
|
};
|
|
18
16
|
meta: {
|
|
19
17
|
name: string;
|
|
20
18
|
version: string;
|
|
21
19
|
};
|
|
22
|
-
rules: Record<string,
|
|
20
|
+
rules: Record<string, _eslint_react_kit.CompatibleRule>;
|
|
23
21
|
};
|
|
24
22
|
|
|
25
23
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var shared = require('@eslint-react/shared');
|
|
3
4
|
var AST = require('@eslint-react/ast');
|
|
4
5
|
var ER7 = require('@eslint-react/core');
|
|
5
6
|
var eff = require('@eslint-react/eff');
|
|
6
|
-
var shared = require('@eslint-react/shared');
|
|
7
7
|
var VAR4 = require('@eslint-react/var');
|
|
8
8
|
var types = require('@typescript-eslint/types');
|
|
9
9
|
var tsPattern = require('ts-pattern');
|
|
@@ -52,7 +52,7 @@ var rules = {
|
|
|
52
52
|
|
|
53
53
|
// package.json
|
|
54
54
|
var name2 = "eslint-plugin-react-hooks-extra";
|
|
55
|
-
var version = "1.52.
|
|
55
|
+
var version = "1.52.10-next.0";
|
|
56
56
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("hooks-extra"));
|
|
57
57
|
function isFromHookCall(context, name3, settings, predicate = eff.constTrue) {
|
|
58
58
|
const hookAlias = settings.additionalHooks[name3] ?? [];
|
|
@@ -702,20 +702,7 @@ var plugin = {
|
|
|
702
702
|
};
|
|
703
703
|
|
|
704
704
|
// src/index.ts
|
|
705
|
-
|
|
706
|
-
return {
|
|
707
|
-
...config,
|
|
708
|
-
plugins: {
|
|
709
|
-
"react-hooks-extra": plugin
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
}
|
|
713
|
-
function toLegacyConfig({ rules: rules2 }) {
|
|
714
|
-
return {
|
|
715
|
-
plugins: ["react-hooks-extra"],
|
|
716
|
-
rules: rules2
|
|
717
|
-
};
|
|
718
|
-
}
|
|
705
|
+
var { toFlatConfig, toLegacyConfig } = shared.getConfigAdapters("react-hooks-extra", plugin);
|
|
719
706
|
var index_default = {
|
|
720
707
|
...plugin,
|
|
721
708
|
configs: {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { getDocsUrl, getSettingsFromContext, getConfigAdapters } from '@eslint-react/shared';
|
|
1
2
|
import * as AST from '@eslint-react/ast';
|
|
2
3
|
import * as ER7 from '@eslint-react/core';
|
|
3
4
|
import { identity, getOrElseUpdate, constVoid, constTrue, not } from '@eslint-react/eff';
|
|
4
|
-
import { getDocsUrl, getSettingsFromContext } from '@eslint-react/shared';
|
|
5
5
|
import * as VAR4 from '@eslint-react/var';
|
|
6
6
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
7
7
|
import { match } from 'ts-pattern';
|
|
@@ -28,7 +28,7 @@ var rules = {
|
|
|
28
28
|
|
|
29
29
|
// package.json
|
|
30
30
|
var name2 = "eslint-plugin-react-hooks-extra";
|
|
31
|
-
var version = "1.52.
|
|
31
|
+
var version = "1.52.10-next.0";
|
|
32
32
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("hooks-extra"));
|
|
33
33
|
function isFromHookCall(context, name3, settings, predicate = constTrue) {
|
|
34
34
|
const hookAlias = settings.additionalHooks[name3] ?? [];
|
|
@@ -678,20 +678,7 @@ var plugin = {
|
|
|
678
678
|
};
|
|
679
679
|
|
|
680
680
|
// src/index.ts
|
|
681
|
-
|
|
682
|
-
return {
|
|
683
|
-
...config,
|
|
684
|
-
plugins: {
|
|
685
|
-
"react-hooks-extra": plugin
|
|
686
|
-
}
|
|
687
|
-
};
|
|
688
|
-
}
|
|
689
|
-
function toLegacyConfig({ rules: rules2 }) {
|
|
690
|
-
return {
|
|
691
|
-
plugins: ["react-hooks-extra"],
|
|
692
|
-
rules: rules2
|
|
693
|
-
};
|
|
694
|
-
}
|
|
681
|
+
var { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-hooks-extra", plugin);
|
|
695
682
|
var index_default = {
|
|
696
683
|
...plugin,
|
|
697
684
|
configs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-hooks-extra",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.10-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for React Hooks related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"@typescript-eslint/utils": "^8.41.0",
|
|
51
51
|
"string-ts": "^2.2.1",
|
|
52
52
|
"ts-pattern": "^5.8.0",
|
|
53
|
-
"@eslint-react/ast": "1.52.
|
|
54
|
-
"@eslint-react/core": "1.52.
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/var": "1.52.
|
|
58
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/ast": "1.52.10-next.0",
|
|
54
|
+
"@eslint-react/core": "1.52.10-next.0",
|
|
55
|
+
"@eslint-react/kit": "1.52.10-next.0",
|
|
56
|
+
"@eslint-react/shared": "1.52.10-next.0",
|
|
57
|
+
"@eslint-react/var": "1.52.10-next.0",
|
|
58
|
+
"@eslint-react/eff": "1.52.10-next.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.1.12",
|