eslint-plugin-react-naming-convention 3.0.0-next.54 → 3.0.0-next.56
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 +5 -16
- package/dist/index.js +22 -21
- package/package.json +8 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ESLint, Linter } from "eslint";
|
|
2
2
|
|
|
3
3
|
//#region src/index.d.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
plugins: {};
|
|
8
|
-
name?: string;
|
|
9
|
-
rules?: Record<string, _eslint_react_shared0.RuleConfig>;
|
|
10
|
-
settings?: _eslint_react_shared0.SettingsConfig;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
meta: {
|
|
14
|
-
name: string;
|
|
15
|
-
version: string;
|
|
16
|
-
};
|
|
17
|
-
rules: Record<string, _eslint_react_shared0.CompatibleRule>;
|
|
4
|
+
type ConfigName = "recommended";
|
|
5
|
+
declare const finalPlugin: ESLint.Plugin & {
|
|
6
|
+
configs: Record<ConfigName, Linter.Config>;
|
|
18
7
|
};
|
|
19
8
|
//#endregion
|
|
20
|
-
export {
|
|
9
|
+
export { finalPlugin as default };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WEBSITE_URL, defineRuleListener, getConfigAdapters } from "@eslint-react/shared";
|
|
2
1
|
import * as core from "@eslint-react/core";
|
|
2
|
+
import { WEBSITE_URL, defineRuleListener } from "@eslint-react/shared";
|
|
3
3
|
import { findEnclosingAssignmentTarget } from "@eslint-react/var";
|
|
4
4
|
import { AST_NODE_TYPES } from "@typescript-eslint/types";
|
|
5
5
|
import { P, match } from "ts-pattern";
|
|
@@ -22,23 +22,10 @@ var __exportAll = (all, no_symbols) => {
|
|
|
22
22
|
return target;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/configs/recommended.ts
|
|
27
|
-
var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
28
|
-
name: () => name$1,
|
|
29
|
-
rules: () => rules
|
|
30
|
-
});
|
|
31
|
-
const name$1 = "react-naming-convention/recommended";
|
|
32
|
-
const rules = {
|
|
33
|
-
"react-naming-convention/context-name": "warn",
|
|
34
|
-
"react-naming-convention/id-name": "warn",
|
|
35
|
-
"react-naming-convention/ref-name": "warn"
|
|
36
|
-
};
|
|
37
|
-
|
|
38
25
|
//#endregion
|
|
39
26
|
//#region package.json
|
|
40
|
-
var name = "eslint-plugin-react-naming-convention";
|
|
41
|
-
var version = "3.0.0-next.
|
|
27
|
+
var name$1 = "eslint-plugin-react-naming-convention";
|
|
28
|
+
var version = "3.0.0-next.56";
|
|
42
29
|
|
|
43
30
|
//#endregion
|
|
44
31
|
//#region src/utils/create-rule.ts
|
|
@@ -154,7 +141,7 @@ function create(context) {
|
|
|
154
141
|
//#region src/plugin.ts
|
|
155
142
|
const plugin = {
|
|
156
143
|
meta: {
|
|
157
|
-
name,
|
|
144
|
+
name: name$1,
|
|
158
145
|
version
|
|
159
146
|
},
|
|
160
147
|
rules: {
|
|
@@ -164,13 +151,27 @@ const plugin = {
|
|
|
164
151
|
}
|
|
165
152
|
};
|
|
166
153
|
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/configs/recommended.ts
|
|
156
|
+
var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
157
|
+
name: () => name,
|
|
158
|
+
plugins: () => plugins,
|
|
159
|
+
rules: () => rules
|
|
160
|
+
});
|
|
161
|
+
const name = "react-naming-convention/recommended";
|
|
162
|
+
const rules = {
|
|
163
|
+
"react-naming-convention/context-name": "warn",
|
|
164
|
+
"react-naming-convention/id-name": "warn",
|
|
165
|
+
"react-naming-convention/ref-name": "warn"
|
|
166
|
+
};
|
|
167
|
+
const plugins = { "react-naming-convention": plugin };
|
|
168
|
+
|
|
167
169
|
//#endregion
|
|
168
170
|
//#region src/index.ts
|
|
169
|
-
const
|
|
170
|
-
var src_default = {
|
|
171
|
+
const finalPlugin = {
|
|
171
172
|
...plugin,
|
|
172
|
-
configs: { ["recommended"]:
|
|
173
|
+
configs: { ["recommended"]: recommended_exports }
|
|
173
174
|
};
|
|
174
175
|
|
|
175
176
|
//#endregion
|
|
176
|
-
export {
|
|
177
|
+
export { finalPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-naming-convention",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.56",
|
|
4
4
|
"description": "ESLint React's ESLint plugin for naming convention related rules.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,16 +45,17 @@
|
|
|
45
45
|
"compare-versions": "^6.1.1",
|
|
46
46
|
"string-ts": "^2.3.1",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "3.0.0-next.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/var": "3.0.0-next.
|
|
52
|
-
"@eslint-react/eff": "3.0.0-next.
|
|
48
|
+
"@eslint-react/ast": "3.0.0-next.56",
|
|
49
|
+
"@eslint-react/core": "3.0.0-next.56",
|
|
50
|
+
"@eslint-react/shared": "3.0.0-next.56",
|
|
51
|
+
"@eslint-react/var": "3.0.0-next.56",
|
|
52
|
+
"@eslint-react/eff": "3.0.0-next.56"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.2.14",
|
|
56
56
|
"@types/react-dom": "^19.2.3",
|
|
57
|
-
"
|
|
57
|
+
"eslint": "^10.0.2",
|
|
58
|
+
"tsdown": "^0.21.0-beta.2",
|
|
58
59
|
"@local/configs": "0.0.0"
|
|
59
60
|
},
|
|
60
61
|
"peerDependencies": {
|