@eslint-react/shared 1.52.10-next.0 → 1.52.10-next.2
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 +172 -842
- package/dist/index.d.ts +172 -842
- package/dist/index.js +201 -253
- package/dist/index.mjs +179 -247
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,282 +1,230 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
+
value: mod,
|
|
20
|
+
enumerable: true
|
|
21
|
+
}) : target, mod));
|
|
11
22
|
|
|
12
|
-
|
|
23
|
+
//#endregion
|
|
24
|
+
const node_module = __toESM(require("node:module"));
|
|
25
|
+
const __eslint_react_eff = __toESM(require("@eslint-react/eff"));
|
|
26
|
+
const ts_pattern = __toESM(require("ts-pattern"));
|
|
27
|
+
const __eslint_react_kit = __toESM(require("@eslint-react/kit"));
|
|
28
|
+
const zod_v4 = __toESM(require("zod/v4"));
|
|
13
29
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
30
|
+
//#region src/constants.ts
|
|
31
|
+
/**
|
|
32
|
+
* The NPM scope for this project.
|
|
33
|
+
*/
|
|
34
|
+
const NPM_SCOPE = "@eslint-react";
|
|
35
|
+
/**
|
|
36
|
+
* The GitHub repository for this project.
|
|
37
|
+
*/
|
|
38
|
+
const GITHUB_URL = "https://github.com/Rel1cx/eslint-react";
|
|
39
|
+
/**
|
|
40
|
+
* The URL to the project's website.
|
|
41
|
+
*/
|
|
42
|
+
const WEBSITE_URL = "https://eslint-react.xyz";
|
|
18
43
|
|
|
19
|
-
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/get-config-adapters.ts
|
|
20
46
|
function getConfigAdapters(pluginName, plugin) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
47
|
+
function toFlatConfig(config) {
|
|
48
|
+
return {
|
|
49
|
+
...config,
|
|
50
|
+
plugins: { [pluginName]: plugin }
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function toLegacyConfig({ rules }) {
|
|
54
|
+
return {
|
|
55
|
+
plugins: [pluginName],
|
|
56
|
+
rules
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
toFlatConfig,
|
|
61
|
+
toLegacyConfig
|
|
62
|
+
};
|
|
36
63
|
}
|
|
37
64
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/get-doc-url.ts
|
|
67
|
+
/**
|
|
68
|
+
* Get the URL for the documentation of a rule in a plugin.
|
|
69
|
+
* @internal
|
|
70
|
+
* @param pluginName The name of the plugin.
|
|
71
|
+
* @returns The URL for the documentation of a rule.
|
|
72
|
+
*/
|
|
73
|
+
const getDocsUrl = (pluginName) => (ruleName) => {
|
|
74
|
+
if (pluginName === "x") return `${WEBSITE_URL}/docs/rules/${ruleName}`;
|
|
75
|
+
return `${WEBSITE_URL}/docs/rules/${pluginName}-${ruleName}`;
|
|
44
76
|
};
|
|
45
77
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
78
|
+
//#endregion
|
|
79
|
+
//#region src/get-id.ts
|
|
80
|
+
let id = 0n;
|
|
81
|
+
const getId = () => (id++).toString();
|
|
82
|
+
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/get-react-version.ts
|
|
85
|
+
const _require = node_module.default.createRequire(require("url").pathToFileURL(__filename).href);
|
|
50
86
|
function getReactVersion(fallback) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
87
|
+
try {
|
|
88
|
+
return (0, ts_pattern.match)(_require("react")).with({ version: ts_pattern.P.select(ts_pattern.P.string) }, __eslint_react_eff.identity).otherwise(() => fallback);
|
|
89
|
+
} catch {
|
|
90
|
+
return fallback;
|
|
91
|
+
}
|
|
56
92
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
* The name of the prop in the host component.
|
|
66
|
-
* @example
|
|
67
|
-
* "href"
|
|
68
|
-
*/
|
|
69
|
-
as: v4.z.optional(v4.z.string()),
|
|
70
|
-
/**
|
|
71
|
-
* Whether the prop is controlled or not in the user-defined component.
|
|
72
|
-
* @internal
|
|
73
|
-
* @example
|
|
74
|
-
* `true`
|
|
75
|
-
*/
|
|
76
|
-
controlled: v4.z.optional(v4.z.boolean()),
|
|
77
|
-
/**
|
|
78
|
-
* The default value of the prop in the user-defined component.
|
|
79
|
-
* @example
|
|
80
|
-
* `"/"`
|
|
81
|
-
*/
|
|
82
|
-
defaultValue: v4.z.optional(v4.z.string())
|
|
93
|
+
|
|
94
|
+
//#endregion
|
|
95
|
+
//#region src/settings.ts
|
|
96
|
+
const CustomComponentPropSchema = zod_v4.z.object({
|
|
97
|
+
name: zod_v4.z.string(),
|
|
98
|
+
as: zod_v4.z.optional(zod_v4.z.string()),
|
|
99
|
+
controlled: zod_v4.z.optional(zod_v4.z.boolean()),
|
|
100
|
+
defaultValue: zod_v4.z.optional(zod_v4.z.string())
|
|
83
101
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
*/
|
|
96
|
-
as: v4.z.optional(v4.z.string()),
|
|
97
|
-
/**
|
|
98
|
-
* Attributes mapping between the user-defined component and the host component.
|
|
99
|
-
* @example
|
|
100
|
-
* `Link` component has a `to` attribute that represents the `href` attribute in the built-in `a` element with a default value of `"/"`.
|
|
101
|
-
*/
|
|
102
|
-
attributes: v4.z.optional(v4.z.array(CustomComponentPropSchema)),
|
|
103
|
-
/**
|
|
104
|
-
* The ESQuery selector to select the component precisely.
|
|
105
|
-
* @internal
|
|
106
|
-
* @example
|
|
107
|
-
* `JSXElement:has(JSXAttribute[name.name='component'][value.value='a'])`
|
|
108
|
-
*/
|
|
109
|
-
selector: v4.z.optional(v4.z.string())
|
|
102
|
+
/**
|
|
103
|
+
* @description
|
|
104
|
+
* This will provide some key information to the rule before checking for user-defined components.
|
|
105
|
+
* For example:
|
|
106
|
+
* Which prop is used as the `href` prop for the user-defined `Link` component that represents the built-in `a` element.
|
|
107
|
+
*/
|
|
108
|
+
const CustomComponentSchema = zod_v4.z.object({
|
|
109
|
+
name: zod_v4.z.string(),
|
|
110
|
+
as: zod_v4.z.optional(zod_v4.z.string()),
|
|
111
|
+
attributes: zod_v4.z.optional(zod_v4.z.array(CustomComponentPropSchema)),
|
|
112
|
+
selector: zod_v4.z.optional(zod_v4.z.string())
|
|
110
113
|
});
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
114
|
+
const CustomHooksSchema = zod_v4.z.object({
|
|
115
|
+
use: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
116
|
+
useActionState: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
117
|
+
useCallback: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
118
|
+
useContext: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
119
|
+
useDebugValue: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
120
|
+
useDeferredValue: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
121
|
+
useEffect: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
122
|
+
useFormStatus: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
123
|
+
useId: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
124
|
+
useImperativeHandle: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
125
|
+
useInsertionEffect: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
126
|
+
useLayoutEffect: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
127
|
+
useMemo: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
128
|
+
useOptimistic: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
129
|
+
useReducer: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
130
|
+
useRef: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
131
|
+
useState: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
132
|
+
useSyncExternalStore: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string())),
|
|
133
|
+
useTransition: zod_v4.z.optional(zod_v4.z.array(zod_v4.z.string()))
|
|
131
134
|
});
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
jsxPragma: v4.z.optional(v4.z.string()),
|
|
146
|
-
/**
|
|
147
|
-
* The identifier that's used for JSX fragment elements.
|
|
148
|
-
* @description This should not be a member expression (i.e. use "Fragment" instead of "React.Fragment").
|
|
149
|
-
* @default `"Fragment"`
|
|
150
|
-
* @deprecated
|
|
151
|
-
*/
|
|
152
|
-
jsxPragmaFrag: v4.z.optional(v4.z.string()),
|
|
153
|
-
/**
|
|
154
|
-
* The name of the prop that is used for polymorphic components.
|
|
155
|
-
* @description This is used to determine the type of the component.
|
|
156
|
-
* @example `"as"`
|
|
157
|
-
*/
|
|
158
|
-
polymorphicPropName: v4.z.optional(v4.z.string()),
|
|
159
|
-
/**
|
|
160
|
-
* @default `true`
|
|
161
|
-
* @internal
|
|
162
|
-
*/
|
|
163
|
-
strict: v4.z.optional(v4.z.boolean()),
|
|
164
|
-
/**
|
|
165
|
-
* Check both the shape and the import to determine if an API is from React.
|
|
166
|
-
* @default `true`
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
169
|
-
skipImportCheck: v4.z.optional(v4.z.boolean()),
|
|
170
|
-
/**
|
|
171
|
-
* React version to use, "detect" means auto detect React version from the project's dependencies.
|
|
172
|
-
* If `importSource` is specified, an equivalent version of React should be provided here.
|
|
173
|
-
* @example `"18.3.1"`
|
|
174
|
-
* @default `"detect"`
|
|
175
|
-
*/
|
|
176
|
-
version: v4.z.optional(v4.z.string()),
|
|
177
|
-
/**
|
|
178
|
-
* A object to define additional hooks that are equivalent to the built-in React Hooks.
|
|
179
|
-
* @description ESLint React will recognize these aliases as equivalent to the built-in hooks in all its rules.
|
|
180
|
-
* @example `{ useEffect: ["useIsomorphicLayoutEffect"] }`
|
|
181
|
-
*/
|
|
182
|
-
additionalHooks: v4.z.optional(CustomHooksSchema),
|
|
183
|
-
/**
|
|
184
|
-
* An array of user-defined components
|
|
185
|
-
* @description This is used to inform the ESLint React plugins how to treat these components during checks.
|
|
186
|
-
* @example `[{ name: "Link", as: "a", attributes: [{ name: "to", as: "href" }, { name: "rel", defaultValue: "noopener noreferrer" }] }]`
|
|
187
|
-
*/
|
|
188
|
-
additionalComponents: v4.z.optional(v4.z.array(CustomComponentSchema))
|
|
135
|
+
/**
|
|
136
|
+
* @internal
|
|
137
|
+
*/
|
|
138
|
+
const ESLintReactSettingsSchema = zod_v4.z.object({
|
|
139
|
+
importSource: zod_v4.z.optional(zod_v4.z.string()),
|
|
140
|
+
jsxPragma: zod_v4.z.optional(zod_v4.z.string()),
|
|
141
|
+
jsxPragmaFrag: zod_v4.z.optional(zod_v4.z.string()),
|
|
142
|
+
polymorphicPropName: zod_v4.z.optional(zod_v4.z.string()),
|
|
143
|
+
strict: zod_v4.z.optional(zod_v4.z.boolean()),
|
|
144
|
+
skipImportCheck: zod_v4.z.optional(zod_v4.z.boolean()),
|
|
145
|
+
version: zod_v4.z.optional(zod_v4.z.string()),
|
|
146
|
+
additionalHooks: zod_v4.z.optional(CustomHooksSchema),
|
|
147
|
+
additionalComponents: zod_v4.z.optional(zod_v4.z.array(CustomComponentSchema))
|
|
189
148
|
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
);
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
*/
|
|
152
|
+
const ESLintSettingsSchema = zod_v4.z.optional(zod_v4.z.object({ "react-x": zod_v4.z.optional(zod_v4.z.unknown()) }));
|
|
195
153
|
function isESLintSettings(settings) {
|
|
196
|
-
|
|
154
|
+
return ESLintSettingsSchema.safeParse(settings).success;
|
|
197
155
|
}
|
|
198
156
|
function isESLintReactSettings(settings) {
|
|
199
|
-
|
|
157
|
+
return ESLintReactSettingsSchema.safeParse(settings).success;
|
|
200
158
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
159
|
+
/**
|
|
160
|
+
* The default ESLint settings for "react-x".
|
|
161
|
+
*/
|
|
162
|
+
const DEFAULT_ESLINT_REACT_SETTINGS = {
|
|
163
|
+
version: "detect",
|
|
164
|
+
importSource: "react",
|
|
165
|
+
strict: true,
|
|
166
|
+
skipImportCheck: true,
|
|
167
|
+
polymorphicPropName: "as",
|
|
168
|
+
additionalComponents: [],
|
|
169
|
+
additionalHooks: {
|
|
170
|
+
useEffect: ["useIsomorphicLayoutEffect"],
|
|
171
|
+
useLayoutEffect: ["useIsomorphicLayoutEffect"]
|
|
172
|
+
}
|
|
215
173
|
};
|
|
216
|
-
|
|
217
|
-
|
|
174
|
+
const DEFAULT_ESLINT_SETTINGS = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
175
|
+
const coerceESLintSettings = (settings) => {
|
|
176
|
+
return settings;
|
|
218
177
|
};
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
return DEFAULT_ESLINT_SETTINGS;
|
|
178
|
+
const decodeESLintSettings = (settings) => {
|
|
179
|
+
if (isESLintSettings(settings)) return settings;
|
|
180
|
+
return DEFAULT_ESLINT_SETTINGS;
|
|
224
181
|
};
|
|
225
|
-
|
|
226
|
-
|
|
182
|
+
const coerceSettings = (settings) => {
|
|
183
|
+
return settings;
|
|
227
184
|
};
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
}
|
|
232
|
-
return DEFAULT_ESLINT_REACT_SETTINGS;
|
|
185
|
+
const decodeSettings = (settings) => {
|
|
186
|
+
if (isESLintReactSettings(settings)) return settings;
|
|
187
|
+
return DEFAULT_ESLINT_REACT_SETTINGS;
|
|
233
188
|
};
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
};
|
|
260
|
-
}),
|
|
261
|
-
additionalHooks,
|
|
262
|
-
importSource,
|
|
263
|
-
polymorphicPropName,
|
|
264
|
-
skipImportCheck,
|
|
265
|
-
strict,
|
|
266
|
-
version: tsPattern.match(version).with(tsPattern.P.union(tsPattern.P.nullish, "", "detect"), () => getReactVersion("19.1.0")).otherwise(eff.identity)
|
|
267
|
-
};
|
|
189
|
+
const normalizeSettings = ({ additionalComponents = [], additionalHooks = {}, importSource = "react", polymorphicPropName = "as", skipImportCheck = true, strict = true, version,...rest }) => {
|
|
190
|
+
return {
|
|
191
|
+
...rest,
|
|
192
|
+
components: additionalComponents.map((component) => {
|
|
193
|
+
const { name, as = name, attributes = [],...rest$1 } = component;
|
|
194
|
+
const re = __eslint_react_kit.RegExp.toRegExp(name);
|
|
195
|
+
return {
|
|
196
|
+
...rest$1,
|
|
197
|
+
name,
|
|
198
|
+
re,
|
|
199
|
+
as,
|
|
200
|
+
attributes: attributes.map(({ name: name$1, as: as$1 = name$1,...rest$2 }) => ({
|
|
201
|
+
...rest$2,
|
|
202
|
+
name: name$1,
|
|
203
|
+
as: as$1
|
|
204
|
+
}))
|
|
205
|
+
};
|
|
206
|
+
}),
|
|
207
|
+
additionalHooks,
|
|
208
|
+
importSource,
|
|
209
|
+
polymorphicPropName,
|
|
210
|
+
skipImportCheck,
|
|
211
|
+
strict,
|
|
212
|
+
version: (0, ts_pattern.match)(version).with(ts_pattern.P.union(ts_pattern.P.nullish, "", "detect"), () => getReactVersion("19.1.0")).otherwise(__eslint_react_eff.identity)
|
|
213
|
+
};
|
|
268
214
|
};
|
|
269
|
-
|
|
215
|
+
const cache = /* @__PURE__ */ new Map();
|
|
270
216
|
function getSettingsFromContext(context) {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
cache,
|
|
274
|
-
settings["react-x"],
|
|
275
|
-
() => normalizeSettings(decodeSettings(settings["react-x"]))
|
|
276
|
-
);
|
|
217
|
+
const settings = context.settings;
|
|
218
|
+
return (0, __eslint_react_eff.getOrElseUpdate)(cache, settings["react-x"], () => normalizeSettings(decodeSettings(settings["react-x"])));
|
|
277
219
|
}
|
|
278
|
-
|
|
220
|
+
/**
|
|
221
|
+
* A helper function to define settings for "react-x" with type checking in JavaScript files.
|
|
222
|
+
* @param settings The settings.
|
|
223
|
+
* @returns The settings.
|
|
224
|
+
*/
|
|
225
|
+
const defineSettings = __eslint_react_eff.identity;
|
|
279
226
|
|
|
227
|
+
//#endregion
|
|
280
228
|
exports.CustomComponentPropSchema = CustomComponentPropSchema;
|
|
281
229
|
exports.CustomComponentSchema = CustomComponentSchema;
|
|
282
230
|
exports.CustomHooksSchema = CustomHooksSchema;
|
|
@@ -299,4 +247,4 @@ exports.getReactVersion = getReactVersion;
|
|
|
299
247
|
exports.getSettingsFromContext = getSettingsFromContext;
|
|
300
248
|
exports.isESLintReactSettings = isESLintReactSettings;
|
|
301
249
|
exports.isESLintSettings = isESLintSettings;
|
|
302
|
-
exports.normalizeSettings = normalizeSettings;
|
|
250
|
+
exports.normalizeSettings = normalizeSettings;
|