@abinnovision/eslint-config-react 2.0.0 → 2.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0](https://github.com/abinnovision/js-commons/compare/eslint-config-react-v2.0.0...eslint-config-react-v2.1.0) (2024-08-05)
4
+
5
+
6
+ ### Features
7
+
8
+ * migrate to esm ([#278](https://github.com/abinnovision/js-commons/issues/278)) ([fed850d](https://github.com/abinnovision/js-commons/commit/fed850d979f7ba83fae75adadcfd0024f2acd242))
9
+
3
10
  ## [2.0.0](https://github.com/abinnovision/js-commons/compare/eslint-config-react-v1.2.0...eslint-config-react-v2.0.0) (2023-11-03)
4
11
 
5
12
 
package/dist/index.cjs ADDED
@@ -0,0 +1,49 @@
1
+ "use strict";
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 __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/index.ts
31
+ var src_exports = {};
32
+ __export(src_exports, {
33
+ default: () => src_default
34
+ });
35
+ module.exports = __toCommonJS(src_exports);
36
+ var import_react = __toESM(require("eslint-config-alloy/react.js"), 1);
37
+ var import_eslint_plugin_react = __toESM(require("eslint-plugin-react"), 1);
38
+ var config = [
39
+ {
40
+ files: ["**/*.{js,jsx,ts,tsx}"],
41
+ plugins: {
42
+ react: import_eslint_plugin_react.default
43
+ },
44
+ rules: {
45
+ ...import_react.default.rules ?? {}
46
+ }
47
+ }
48
+ ];
49
+ var src_default = config;
package/dist/index.js CHANGED
@@ -1,30 +1,6 @@
1
- "use strict";
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") {
10
- for (let key of __getOwnPropNames(from))
11
- if (!__hasOwnProp.call(to, key) && key !== except)
12
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
- }
14
- return to;
15
- };
16
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
- // If the importer is in node compatibility mode or this is not an ESM
18
- // file that has been converted to a CommonJS file using a Babel-
19
- // compatible transform (i.e. "__esModule" has not been set), then set
20
- // "default" to the CommonJS "module.exports" for node compatibility.
21
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
- mod
23
- ));
24
-
25
1
  // src/index.ts
26
- var AlloyReact = __toESM(require("eslint-config-alloy/react"));
27
- var eslintPluginReact = __toESM(require("eslint-plugin-react"));
2
+ import AlloyReact from "eslint-config-alloy/react.js";
3
+ import eslintPluginReact from "eslint-plugin-react";
28
4
  var config = [
29
5
  {
30
6
  files: ["**/*.{js,jsx,ts,tsx}"],
@@ -36,4 +12,7 @@ var config = [
36
12
  }
37
13
  }
38
14
  ];
39
- module.exports = config;
15
+ var src_default = config;
16
+ export {
17
+ src_default as default
18
+ };
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@abinnovision/eslint-config-react",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
+ "type": "module",
4
5
  "repository": {
5
6
  "url": "https://github.com/abinnovision/js-commons"
6
7
  },
@@ -12,13 +13,13 @@
12
13
  },
13
14
  "exports": {
14
15
  ".": {
15
- "import": "./dist/index.mjs",
16
- "require": "./dist/index.js",
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs",
17
18
  "types": "./dist/index.d.ts"
18
19
  }
19
20
  },
20
- "main": "./dist/index.js",
21
- "module": "./dist/index.mjs",
21
+ "main": "./dist/index.cjs",
22
+ "module": "./dist/index.js",
22
23
  "types": "./dist/index.d.ts",
23
24
  "files": [
24
25
  "dist/"
@@ -42,20 +43,20 @@
42
43
  "prettier": "@abinnovision/prettier-config",
43
44
  "dependencies": {
44
45
  "eslint-config-alloy": "^5.1.2",
45
- "eslint-plugin-react": "^7.0.0"
46
+ "eslint-plugin-react": "^7.35.0"
46
47
  },
47
48
  "devDependencies": {
48
- "@abinnovision/prettier-config": "^2.0.0",
49
- "@types/eslint": "^8.44.6",
50
- "@typescript-eslint/eslint-plugin": "^6.9.0",
51
- "@typescript-eslint/parser": "^6.9.0",
52
- "eslint": "^8.52.0",
53
- "globals": "^13.23.0",
54
- "tsup": "^7.2.0",
55
- "typescript": "^5.2.2"
49
+ "@abinnovision/prettier-config": "^2.1.0",
50
+ "@types/eslint": "^9.6.0",
51
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
52
+ "@typescript-eslint/parser": "^6.21.0",
53
+ "eslint": "^9.8.0",
54
+ "globals": "^15.9.0",
55
+ "tsup": "^8.2.4",
56
+ "typescript": "^5.5.4"
56
57
  },
57
58
  "peerDependencies": {
58
- "eslint": "^8.24.0"
59
+ "eslint": "^8.24.0 || ^9.0.0"
59
60
  },
60
61
  "packageManager": "yarn@3.4.1"
61
62
  }
package/dist/index.mjs DELETED
@@ -1,25 +0,0 @@
1
- var __getOwnPropNames = Object.getOwnPropertyNames;
2
- var __commonJS = (cb, mod) => function __require() {
3
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
- };
5
-
6
- // src/index.ts
7
- import * as AlloyReact from "eslint-config-alloy/react";
8
- import * as eslintPluginReact from "eslint-plugin-react";
9
- var require_src = __commonJS({
10
- "src/index.ts"(exports, module) {
11
- var config = [
12
- {
13
- files: ["**/*.{js,jsx,ts,tsx}"],
14
- plugins: {
15
- react: eslintPluginReact
16
- },
17
- rules: {
18
- ...AlloyReact.rules ?? {}
19
- }
20
- }
21
- ];
22
- module.exports = config;
23
- }
24
- });
25
- export default require_src();
File without changes