@andrewt03/eslint-typescript-rules 0.0.5 → 0.0.7

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.
@@ -0,0 +1,6 @@
1
+ declare function sayHello(name: string): string;
2
+
3
+ declare function isEven(n: number): boolean;
4
+ declare function addTwoNumbers(a: number, b: number): number;
5
+
6
+ export { addTwoNumbers, isEven, sayHello };
@@ -0,0 +1,6 @@
1
+ declare function sayHello(name: string): string;
2
+
3
+ declare function isEven(n: number): boolean;
4
+ declare function addTwoNumbers(a: number, b: number): number;
5
+
6
+ export { addTwoNumbers, isEven, sayHello };
@@ -17,16 +17,30 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // src/sub/hello.ts
21
- var hello_exports = {};
22
- __export(hello_exports, {
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ addTwoNumbers: () => addTwoNumbers,
24
+ isEven: () => isEven,
23
25
  sayHello: () => sayHello
24
26
  });
25
- module.exports = __toCommonJS(hello_exports);
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/hello/hello.ts
26
30
  function sayHello(name) {
27
31
  return `Hello, ${name}`;
28
32
  }
33
+
34
+ // src/number/number.ts
35
+ function isEven(n) {
36
+ return n % 2 === 0;
37
+ }
38
+ function addTwoNumbers(a, b) {
39
+ return a + b;
40
+ }
29
41
  // Annotate the CommonJS export names for ESM import in node:
30
42
  0 && (module.exports = {
43
+ addTwoNumbers,
44
+ isEven,
31
45
  sayHello
32
46
  });
package/dist/index.mjs ADDED
@@ -0,0 +1,17 @@
1
+ // src/hello/hello.ts
2
+ function sayHello(name) {
3
+ return `Hello, ${name}`;
4
+ }
5
+
6
+ // src/number/number.ts
7
+ function isEven(n) {
8
+ return n % 2 === 0;
9
+ }
10
+ function addTwoNumbers(a, b) {
11
+ return a + b;
12
+ }
13
+ export {
14
+ addTwoNumbers,
15
+ isEven,
16
+ sayHello
17
+ };
package/package.json CHANGED
@@ -1,30 +1,33 @@
1
1
  {
2
2
  "name": "@andrewt03/eslint-typescript-rules",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Recommended ESLint Rules for general TypeScript, Node.js/Express.js, Angular, and React.js Projects",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
7
7
  "types": "./dist/index.d.ts",
8
8
  "author": "Andrew Tran",
9
- "license": "ISC",
9
+ "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/AndrewTran03/AndrewTran03-ESLint-TypeScript-Rules.git"
13
13
  },
14
14
  "scripts": {
15
- "build": "tsup \"src/**/*.ts*\"",
16
- "changeset:init": "changeset init",
17
- "changeset:create": "changeset",
18
- "changeset:version": "changeset version",
15
+ "build": "tsup",
19
16
  "release": "npm run build && changeset publish",
20
17
  "publish": "npm publish --access public",
21
18
  "lint": "tsc",
22
19
  "prettier": "prettier --write .",
23
20
  "test": "echo \"Error: no test specified\" && exit 1"
24
21
  },
25
- "keywords": ["ESLint", "TypeScript", "Node.js", "Express.js", "Angular", "React.js"],
22
+ "keywords": [
23
+ "ESLint",
24
+ "TypeScript",
25
+ "Node.js",
26
+ "Express.js",
27
+ "Angular",
28
+ "React.js"
29
+ ],
26
30
  "devDependencies": {
27
- "@changesets/cli": "^2.27.11",
28
31
  "prettier": "^3.4.2",
29
32
  "tsup": "^8.3.5",
30
33
  "typescript": "^5.7.2"
package/dist/number.d.mts DELETED
@@ -1,3 +0,0 @@
1
- declare function addTwoNumbers(a: number, b: number): number;
2
-
3
- export { addTwoNumbers };
package/dist/number.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare function addTwoNumbers(a: number, b: number): number;
2
-
3
- export { addTwoNumbers };
package/dist/number.js DELETED
@@ -1,32 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/number.ts
21
- var number_exports = {};
22
- __export(number_exports, {
23
- addTwoNumbers: () => addTwoNumbers
24
- });
25
- module.exports = __toCommonJS(number_exports);
26
- function addTwoNumbers(a, b) {
27
- return a + b;
28
- }
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- addTwoNumbers
32
- });
package/dist/number.mjs DELETED
@@ -1,7 +0,0 @@
1
- // src/number.ts
2
- function addTwoNumbers(a, b) {
3
- return a + b;
4
- }
5
- export {
6
- addTwoNumbers
7
- };
@@ -1,3 +0,0 @@
1
- declare function sayHello(name: string): string;
2
-
3
- export { sayHello };
@@ -1,3 +0,0 @@
1
- declare function sayHello(name: string): string;
2
-
3
- export { sayHello };
@@ -1,7 +0,0 @@
1
- // src/sub/hello.ts
2
- function sayHello(name) {
3
- return `Hello, ${name}`;
4
- }
5
- export {
6
- sayHello
7
- };