eslint-plugin-react-naming-convention 3.0.0-next.49 → 3.0.0-next.51

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -5
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import { WEBSITE_URL, defineRuleListener, getConfigAdapters, getSettingsFromContext } from "@eslint-react/shared";
1
+ import { WEBSITE_URL, defineRuleListener, getConfigAdapters } from "@eslint-react/shared";
2
2
  import * as core from "@eslint-react/core";
3
3
  import { findEnclosingAssignmentTarget } from "@eslint-react/var";
4
4
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
5
- import { compare } from "compare-versions";
6
5
  import { P, match } from "ts-pattern";
7
6
  import { ESLintUtils } from "@typescript-eslint/utils";
8
7
  import * as ast from "@eslint-react/ast";
@@ -39,7 +38,7 @@ const rules = {
39
38
  //#endregion
40
39
  //#region package.json
41
40
  var name = "eslint-plugin-react-naming-convention";
42
- var version = "3.0.0-next.49";
41
+ var version = "3.0.0-next.51";
43
42
 
44
43
  //#endregion
45
44
  //#region src/utils/create-rule.ts
@@ -64,8 +63,6 @@ var context_name_default = createRule({
64
63
  });
65
64
  function create$2(context) {
66
65
  if (!context.sourceCode.text.includes("createContext")) return {};
67
- const { version } = getSettingsFromContext(context);
68
- if (compare(version, "19.0.0", "<")) return {};
69
66
  return defineRuleListener({ CallExpression(node) {
70
67
  if (!core.isCreateContextCall(context, node)) return;
71
68
  const [id, name] = match(findEnclosingAssignmentTarget(node)).with({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-react-naming-convention",
3
- "version": "3.0.0-next.49",
3
+ "version": "3.0.0-next.51",
4
4
  "description": "ESLint React's ESLint plugin for naming convention related rules.",
5
5
  "keywords": [
6
6
  "react",
@@ -45,11 +45,11 @@
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",
49
- "@eslint-react/core": "3.0.0-next.49",
50
- "@eslint-react/eff": "3.0.0-next.49",
51
- "@eslint-react/shared": "3.0.0-next.49",
52
- "@eslint-react/var": "3.0.0-next.49"
48
+ "@eslint-react/ast": "3.0.0-next.51",
49
+ "@eslint-react/core": "3.0.0-next.51",
50
+ "@eslint-react/eff": "3.0.0-next.51",
51
+ "@eslint-react/shared": "3.0.0-next.51",
52
+ "@eslint-react/var": "3.0.0-next.51"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/react": "^19.2.14",