eslint-plugin-react-naming-convention 2.0.0-beta.59 → 2.0.0-beta.60
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.ts +1 -3
- package/dist/index.js +3 -14
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ import * as _eslint_react_kit0 from "@eslint-react/kit";
|
|
|
4
4
|
declare const _default: {
|
|
5
5
|
configs: {
|
|
6
6
|
recommended: {
|
|
7
|
-
plugins: {
|
|
8
|
-
"react-naming-convention": _eslint_react_kit0.CompatiblePlugin;
|
|
9
|
-
};
|
|
7
|
+
plugins: {};
|
|
10
8
|
name?: string;
|
|
11
9
|
rules?: Record<string, _eslint_react_kit0.RuleConfig>;
|
|
12
10
|
settings?: _eslint_react_kit0.SettingsConfig;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { getConfigAdapters, getDocsUrl, getSettingsFromContext } from "@eslint-react/shared";
|
|
1
2
|
import * as AST from "@eslint-react/ast";
|
|
2
3
|
import * as ER 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";
|
|
@@ -31,7 +31,7 @@ const rules = { "react-naming-convention/context-name": "warn" };
|
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region package.json
|
|
33
33
|
var name = "eslint-plugin-react-naming-convention";
|
|
34
|
-
var version = "2.0.0-beta.
|
|
34
|
+
var version = "2.0.0-beta.60";
|
|
35
35
|
|
|
36
36
|
//#endregion
|
|
37
37
|
//#region src/utils/create-rule.ts
|
|
@@ -455,18 +455,7 @@ const plugin = {
|
|
|
455
455
|
|
|
456
456
|
//#endregion
|
|
457
457
|
//#region src/index.ts
|
|
458
|
-
|
|
459
|
-
return {
|
|
460
|
-
...config,
|
|
461
|
-
plugins: { "react-naming-convention": plugin }
|
|
462
|
-
};
|
|
463
|
-
}
|
|
464
|
-
function toLegacyConfig({ rules: rules$1 }) {
|
|
465
|
-
return {
|
|
466
|
-
plugins: ["react-naming-convention"],
|
|
467
|
-
rules: rules$1
|
|
468
|
-
};
|
|
469
|
-
}
|
|
458
|
+
const { toFlatConfig, toLegacyConfig } = getConfigAdapters("react-naming-convention", plugin);
|
|
470
459
|
var src_default = {
|
|
471
460
|
...plugin,
|
|
472
461
|
configs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.60",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.41.0",
|
|
42
42
|
"string-ts": "^2.2.1",
|
|
43
43
|
"ts-pattern": "^5.8.0",
|
|
44
|
-
"@eslint-react/ast": "2.0.0-beta.
|
|
45
|
-
"@eslint-react/core": "2.0.0-beta.
|
|
46
|
-
"@eslint-react/eff": "2.0.0-beta.
|
|
47
|
-
"@eslint-react/kit": "2.0.0-beta.
|
|
48
|
-
"@eslint-react/shared": "2.0.0-beta.
|
|
49
|
-
"@eslint-react/var": "2.0.0-beta.
|
|
44
|
+
"@eslint-react/ast": "2.0.0-beta.60",
|
|
45
|
+
"@eslint-react/core": "2.0.0-beta.60",
|
|
46
|
+
"@eslint-react/eff": "2.0.0-beta.60",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-beta.60",
|
|
48
|
+
"@eslint-react/shared": "2.0.0-beta.60",
|
|
49
|
+
"@eslint-react/var": "2.0.0-beta.60"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/react": "^19.1.12",
|