eslint-plugin-react-naming-convention 1.52.9-next.0 → 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-naming-convention": _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-naming-convention": _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 ER2 = require('@eslint-react/core');
|
|
5
6
|
var kit = require('@eslint-react/kit');
|
|
6
|
-
var shared = require('@eslint-react/shared');
|
|
7
7
|
var utils = require('@typescript-eslint/utils');
|
|
8
8
|
var eff = require('@eslint-react/eff');
|
|
9
9
|
var types = require('@typescript-eslint/types');
|
|
@@ -55,7 +55,7 @@ var rules = {
|
|
|
55
55
|
|
|
56
56
|
// package.json
|
|
57
57
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
58
|
-
var version = "1.52.
|
|
58
|
+
var version = "1.52.10-next.0";
|
|
59
59
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("naming-convention"));
|
|
60
60
|
|
|
61
61
|
// src/rules/component-name.ts
|
|
@@ -498,20 +498,7 @@ var plugin = {
|
|
|
498
498
|
};
|
|
499
499
|
|
|
500
500
|
// src/index.ts
|
|
501
|
-
|
|
502
|
-
return {
|
|
503
|
-
...config,
|
|
504
|
-
plugins: {
|
|
505
|
-
"react-naming-convention": plugin
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
function toLegacyConfig({ rules: rules2 }) {
|
|
510
|
-
return {
|
|
511
|
-
plugins: ["react-naming-convention"],
|
|
512
|
-
rules: rules2
|
|
513
|
-
};
|
|
514
|
-
}
|
|
501
|
+
var { toFlatConfig, toLegacyConfig } = shared.getConfigAdapters("react-naming-convention", plugin);
|
|
515
502
|
var index_default = {
|
|
516
503
|
...plugin,
|
|
517
504
|
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 ER2 from '@eslint-react/core';
|
|
3
4
|
import { RegExp } from '@eslint-react/kit';
|
|
4
|
-
import { getDocsUrl, getSettingsFromContext } from '@eslint-react/shared';
|
|
5
5
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
6
6
|
import { identity, isObject } from '@eslint-react/eff';
|
|
7
7
|
import { AST_NODE_TYPES } from '@typescript-eslint/types';
|
|
@@ -29,7 +29,7 @@ var rules = {
|
|
|
29
29
|
|
|
30
30
|
// package.json
|
|
31
31
|
var name2 = "eslint-plugin-react-naming-convention";
|
|
32
|
-
var version = "1.52.
|
|
32
|
+
var version = "1.52.10-next.0";
|
|
33
33
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("naming-convention"));
|
|
34
34
|
|
|
35
35
|
// src/rules/component-name.ts
|
|
@@ -472,20 +472,7 @@ var plugin = {
|
|
|
472
472
|
};
|
|
473
473
|
|
|
474
474
|
// src/index.ts
|
|
475
|
-
|
|
476
|
-
return {
|
|
477
|
-
...config,
|
|
478
|
-
plugins: {
|
|
479
|
-
"react-naming-convention": plugin
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
}
|
|
483
|
-
function toLegacyConfig({ rules: rules2 }) {
|
|
484
|
-
return {
|
|
485
|
-
plugins: ["react-naming-convention"],
|
|
486
|
-
rules: rules2
|
|
487
|
-
};
|
|
488
|
-
}
|
|
475
|
+
var { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-naming-convention", plugin);
|
|
489
476
|
var index_default = {
|
|
490
477
|
...plugin,
|
|
491
478
|
configs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.10-next.0",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@typescript-eslint/utils": "^8.41.0",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.8.0",
|
|
52
|
-
"@eslint-react/
|
|
53
|
-
"@eslint-react/eff": "1.52.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/shared": "1.52.
|
|
57
|
-
"@eslint-react/
|
|
52
|
+
"@eslint-react/core": "1.52.10-next.0",
|
|
53
|
+
"@eslint-react/eff": "1.52.10-next.0",
|
|
54
|
+
"@eslint-react/var": "1.52.10-next.0",
|
|
55
|
+
"@eslint-react/ast": "1.52.10-next.0",
|
|
56
|
+
"@eslint-react/shared": "1.52.10-next.0",
|
|
57
|
+
"@eslint-react/kit": "1.52.10-next.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.1.12",
|