@eslint-react/eslint-plugin 1.9.0 → 1.9.1-beta.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.js CHANGED
@@ -1,13 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var shared = require('@eslint-react/shared');
4
+ var tools = require('@eslint-react/tools');
4
5
  var reactDebug = require('eslint-plugin-react-debug');
5
6
  var reactDom = require('eslint-plugin-react-dom');
6
7
  var reactHooksExtra = require('eslint-plugin-react-hooks-extra');
7
8
  var reactNamingConvention = require('eslint-plugin-react-naming-convention');
8
9
  var react = require('eslint-plugin-react-x');
9
- var R = require('remeda');
10
- var tools = require('@eslint-react/tools');
11
10
 
12
11
  function _interopNamespace(e) {
13
12
  if (e && e.__esModule) return e;
@@ -32,13 +31,12 @@ var reactDom__namespace = /*#__PURE__*/_interopNamespace(reactDom);
32
31
  var reactHooksExtra__namespace = /*#__PURE__*/_interopNamespace(reactHooksExtra);
33
32
  var reactNamingConvention__namespace = /*#__PURE__*/_interopNamespace(reactNamingConvention);
34
33
  var react__namespace = /*#__PURE__*/_interopNamespace(react);
35
- var R__namespace = /*#__PURE__*/_interopNamespace(R);
36
34
 
37
35
  // src/index.ts
38
36
 
39
37
  // package.json
40
38
  var name = "@eslint-react/eslint-plugin";
41
- var version = "1.9.0";
39
+ var version = "1.9.1-beta.2";
42
40
  function transformKeys(obj, transform) {
43
41
  if (tools.typeOf(obj) !== "object") return obj;
44
42
  const res = {};
@@ -208,9 +206,9 @@ var debugPreset = {
208
206
  "debug/function-component": "warn",
209
207
  "debug/react-hooks": "warn"
210
208
  };
211
- var allPresetEntries = R__namespace.entries(allPreset);
212
- var offPreset = R__namespace.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
213
- var offDomPreset = R__namespace.fromEntries(R__namespace.entries(domPreset).map(([key]) => [key, "off"]));
209
+ var allPresetEntries = tools.entries(allPreset);
210
+ var offPreset = tools.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
211
+ var offDomPreset = tools.fromEntries(tools.entries(domPreset).map(([key]) => [key, "off"]));
214
212
  var legacyConfigPlugins = ["@eslint-react"];
215
213
  var flatConfigPlugins = {
216
214
  "@eslint-react": react__namespace,
package/dist/index.mjs CHANGED
@@ -1,17 +1,16 @@
1
1
  import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
2
+ import { entries, fromEntries, typeOf } from '@eslint-react/tools';
2
3
  import * as reactDebug from 'eslint-plugin-react-debug';
3
4
  import * as reactDom from 'eslint-plugin-react-dom';
4
5
  import * as reactHooksExtra from 'eslint-plugin-react-hooks-extra';
5
6
  import * as reactNamingConvention from 'eslint-plugin-react-naming-convention';
6
7
  import * as react from 'eslint-plugin-react-x';
7
- import * as R from 'remeda';
8
- import { typeOf } from '@eslint-react/tools';
9
8
 
10
9
  // src/index.ts
11
10
 
12
11
  // package.json
13
12
  var name = "@eslint-react/eslint-plugin";
14
- var version = "1.9.0";
13
+ var version = "1.9.1-beta.2";
15
14
  function transformKeys(obj, transform) {
16
15
  if (typeOf(obj) !== "object") return obj;
17
16
  const res = {};
@@ -181,9 +180,9 @@ var debugPreset = {
181
180
  "debug/function-component": "warn",
182
181
  "debug/react-hooks": "warn"
183
182
  };
184
- var allPresetEntries = R.entries(allPreset);
185
- var offPreset = R.fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
186
- var offDomPreset = R.fromEntries(R.entries(domPreset).map(([key]) => [key, "off"]));
183
+ var allPresetEntries = entries(allPreset);
184
+ var offPreset = fromEntries(allPresetEntries.map(([key]) => [key, "off"]));
185
+ var offDomPreset = fromEntries(entries(domPreset).map(([key]) => [key, "off"]));
187
186
  var legacyConfigPlugins = ["@eslint-react"];
188
187
  var flatConfigPlugins = {
189
188
  "@eslint-react": react,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.9.0",
3
+ "version": "1.9.1-beta.2",
4
4
  "description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -47,15 +47,14 @@
47
47
  "@typescript-eslint/type-utils": "^8.0.1",
48
48
  "@typescript-eslint/types": "^8.0.1",
49
49
  "@typescript-eslint/utils": "^8.0.1",
50
- "remeda": "^2.7.1",
51
- "@eslint-react/shared": "1.9.0",
52
- "@eslint-react/tools": "1.9.0",
53
- "@eslint-react/types": "1.9.0",
54
- "eslint-plugin-react-debug": "1.9.0",
55
- "eslint-plugin-react-dom": "1.9.0",
56
- "eslint-plugin-react-hooks-extra": "1.9.0",
57
- "eslint-plugin-react-x": "1.9.0",
58
- "eslint-plugin-react-naming-convention": "1.9.0"
50
+ "@eslint-react/types": "1.9.1-beta.2",
51
+ "@eslint-react/shared": "1.9.1-beta.2",
52
+ "@eslint-react/tools": "1.9.1-beta.2",
53
+ "eslint-plugin-react-debug": "1.9.1-beta.2",
54
+ "eslint-plugin-react-hooks-extra": "1.9.1-beta.2",
55
+ "eslint-plugin-react-naming-convention": "1.9.1-beta.2",
56
+ "eslint-plugin-react-dom": "1.9.1-beta.2",
57
+ "eslint-plugin-react-x": "1.9.1-beta.2"
59
58
  },
60
59
  "devDependencies": {
61
60
  "tsup": "^8.2.4"