@eslint-react/shared 1.16.2-next.0 → 1.16.2-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 +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +0 -8
- package/dist/index.mjs +2 -9
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -2166,7 +2166,6 @@ declare const normalizeSettings: Memoized<(settings: ESLintReactSettings) => {
|
|
|
2166
2166
|
useTransition?: string[];
|
|
2167
2167
|
};
|
|
2168
2168
|
}>;
|
|
2169
|
-
declare function findAttrInCustomAttributes(name: string, attributes: CustomAttribute[]): readonly [string, string | undefined] | readonly [string];
|
|
2170
2169
|
/**
|
|
2171
2170
|
* A helper function to define settings for "react-x" with type checking in JavaScript files.
|
|
2172
2171
|
* @param settings The settings.
|
|
@@ -2179,4 +2178,4 @@ declare module "@typescript-eslint/utils/ts-eslint" {
|
|
|
2179
2178
|
}
|
|
2180
2179
|
}
|
|
2181
2180
|
|
|
2182
|
-
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, INITIAL_ESLINT_REACT_SETTINGS, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings,
|
|
2181
|
+
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, INITIAL_ESLINT_REACT_SETTINGS, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, normalizeSettings, unsafeReadSettings };
|
package/dist/index.d.ts
CHANGED
|
@@ -2166,7 +2166,6 @@ declare const normalizeSettings: Memoized<(settings: ESLintReactSettings) => {
|
|
|
2166
2166
|
useTransition?: string[];
|
|
2167
2167
|
};
|
|
2168
2168
|
}>;
|
|
2169
|
-
declare function findAttrInCustomAttributes(name: string, attributes: CustomAttribute[]): readonly [string, string | undefined] | readonly [string];
|
|
2170
2169
|
/**
|
|
2171
2170
|
* A helper function to define settings for "react-x" with type checking in JavaScript files.
|
|
2172
2171
|
* @param settings The settings.
|
|
@@ -2179,4 +2178,4 @@ declare module "@typescript-eslint/utils/ts-eslint" {
|
|
|
2179
2178
|
}
|
|
2180
2179
|
}
|
|
2181
2180
|
|
|
2182
|
-
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, INITIAL_ESLINT_REACT_SETTINGS, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings,
|
|
2181
|
+
export { type CustomAttribute, CustomAttributeSchema, type CustomComponent, type CustomComponentNormalized, CustomComponentNormalizedSchema, CustomComponentSchema, type CustomHook, CustomHookSchema, type ESLintReactSettings, type ESLintReactSettingsNormalized, ESLintReactSettingsSchema, type ESLintSettings, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, INITIAL_ESLINT_REACT_SETTINGS, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, normalizeSettings, unsafeReadSettings };
|
package/dist/index.js
CHANGED
|
@@ -1344,13 +1344,6 @@ var normalizeSettings = createMemoizedFunction((settings) => {
|
|
|
1344
1344
|
}, /* @__PURE__ */ new Map())
|
|
1345
1345
|
});
|
|
1346
1346
|
}, { isEqual: shallowEqual });
|
|
1347
|
-
function findAttrInCustomAttributes(name, attributes) {
|
|
1348
|
-
return tools.F.pipe(
|
|
1349
|
-
tools.O.fromNullable(attributes.findLast((a) => a.as === name)),
|
|
1350
|
-
tools.O.map((a) => [a.name, a.defaultValue]),
|
|
1351
|
-
tools.O.getOrElse(() => [name])
|
|
1352
|
-
);
|
|
1353
|
-
}
|
|
1354
1347
|
var defineSettings = tools.F.identity;
|
|
1355
1348
|
|
|
1356
1349
|
exports.CustomAttributeSchema = CustomAttributeSchema;
|
|
@@ -1375,6 +1368,5 @@ exports.WEBSITE_URL = WEBSITE_URL;
|
|
|
1375
1368
|
exports.createRuleForPlugin = createRuleForPlugin;
|
|
1376
1369
|
exports.decodeSettings = decodeSettings;
|
|
1377
1370
|
exports.defineSettings = defineSettings;
|
|
1378
|
-
exports.findAttrInCustomAttributes = findAttrInCustomAttributes;
|
|
1379
1371
|
exports.normalizeSettings = normalizeSettings;
|
|
1380
1372
|
exports.unsafeReadSettings = unsafeReadSettings;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
-
import { F, Data
|
|
2
|
+
import { F, Data } from '@eslint-react/tools';
|
|
3
3
|
import pm from 'picomatch';
|
|
4
4
|
|
|
5
5
|
// src/constants.ts
|
|
@@ -1338,13 +1338,6 @@ var normalizeSettings = createMemoizedFunction((settings) => {
|
|
|
1338
1338
|
}, /* @__PURE__ */ new Map())
|
|
1339
1339
|
});
|
|
1340
1340
|
}, { isEqual: shallowEqual });
|
|
1341
|
-
function findAttrInCustomAttributes(name, attributes) {
|
|
1342
|
-
return F.pipe(
|
|
1343
|
-
O.fromNullable(attributes.findLast((a) => a.as === name)),
|
|
1344
|
-
O.map((a) => [a.name, a.defaultValue]),
|
|
1345
|
-
O.getOrElse(() => [name])
|
|
1346
|
-
);
|
|
1347
|
-
}
|
|
1348
1341
|
var defineSettings = F.identity;
|
|
1349
1342
|
|
|
1350
|
-
export { CustomAttributeSchema, CustomComponentNormalizedSchema, CustomComponentSchema, CustomHookSchema, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, INITIAL_ESLINT_REACT_SETTINGS, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings,
|
|
1343
|
+
export { CustomAttributeSchema, CustomComponentNormalizedSchema, CustomComponentSchema, CustomHookSchema, ESLintReactSettingsSchema, ESLintSettingsSchema, GITHUB_URL, HOST_HTML_COMPONENT_TYPES, HOST_SVG_COMPONENT_TYPES, INITIAL_ESLINT_REACT_SETTINGS, NPM_SCOPE, REACT_BUILD_IN_HOOKS, RE_CAMEL_CASE, RE_CONSTANT_CASE, RE_JAVASCRIPT_PROTOCOL, RE_KEBAB_CASE, RE_PASCAL_CASE, RE_SNAKE_CASE, WEBSITE_URL, createRuleForPlugin, decodeSettings, defineSettings, normalizeSettings, unsafeReadSettings };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/shared",
|
|
3
|
-
"version": "1.16.2-next.
|
|
3
|
+
"version": "1.16.2-next.2",
|
|
4
4
|
"description": "ESLint React's Shared constants and functions.",
|
|
5
5
|
"homepage": "https://github.com/rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@typescript-eslint/utils": "^8.14.0",
|
|
39
39
|
"picomatch": "^4.0.2",
|
|
40
|
-
"@eslint-react/tools": "1.16.2-next.
|
|
40
|
+
"@eslint-react/tools": "1.16.2-next.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/picomatch": "^3.0.1",
|