🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

eslint-plugin-react-naming-convention

Package Overview
Dependencies
Maintainers
0
Versions
1339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-react-naming-convention - npm Package Compare versions

Comparing version

to
1.5.19-beta.1

43

dist/index.js

@@ -16,3 +16,3 @@ 'use strict';

var name = "eslint-plugin-react-naming-convention";
var version = "1.5.19-beta.0";
var version = "1.5.19-beta.1";

@@ -1927,41 +1927,2 @@ // ../../../node_modules/.pnpm/effect@3.4.5/node_modules/effect/dist/esm/Function.js

});
// ../../../node_modules/.pnpm/valibot@0.35.0/node_modules/valibot/dist/index.js
var store;
function getGlobalConfig(config2) {
return {
lang: config2?.lang ?? store?.lang,
message: config2?.message,
abortEarly: config2?.abortEarly ?? store?.abortEarly,
abortPipeEarly: config2?.abortPipeEarly ?? store?.abortPipeEarly
};
}
var ValiError = class extends Error {
/**
* The error issues.
*/
issues;
/**
* Creates a Valibot error with useful information.
*
* @param issues The error issues.
*/
constructor(issues) {
super(issues[0].message);
this.name = "ValiError";
this.issues = issues;
}
};
function parse2(schema4, input, config2) {
const dataset = schema4._run(
{ typed: false, value: input },
getGlobalConfig(config2)
);
if (dataset.issues) {
throw new ValiError(dataset.issues);
}
return dataset.value;
}
// src/rules/use-state.ts
var RULE_NAME4 = "use-state";

@@ -1987,3 +1948,3 @@ function isSetterNameLoose(name2) {

create(context) {
const alias = parse2(shared.ESLintSettingsSchema, context.settings).reactOptions?.additionalHooks?.useState ?? [];
const alias = shared.getESLintReactSettings(context.settings).additionalHooks?.useState ?? [];
const { ctx, listeners } = core.useComponentCollector(context);

@@ -1990,0 +1951,0 @@ return {

14

package.json
{
"name": "eslint-plugin-react-naming-convention",
"version": "1.5.19-beta.0",
"version": "1.5.19-beta.1",
"description": "ESLint React's ESLint plugin for naming convention related rules.",

@@ -42,8 +42,8 @@ "homepage": "https://github.com/rel1cx/eslint-react",

"@typescript-eslint/utils": "^7.14.1",
"@eslint-react/ast": "1.5.19-beta.0",
"@eslint-react/core": "1.5.19-beta.0",
"@eslint-react/shared": "1.5.19-beta.0",
"@eslint-react/types": "1.5.19-beta.0",
"@eslint-react/tools": "1.5.19-beta.0",
"@eslint-react/jsx": "1.5.19-beta.0"
"@eslint-react/ast": "1.5.19-beta.1",
"@eslint-react/core": "1.5.19-beta.1",
"@eslint-react/jsx": "1.5.19-beta.1",
"@eslint-react/shared": "1.5.19-beta.1",
"@eslint-react/tools": "1.5.19-beta.1",
"@eslint-react/types": "1.5.19-beta.1"
},

@@ -50,0 +50,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet