@andrewt03/eslint-typescript-rules 0.0.5

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Andrew H. Tran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # AndrewTran03-ESLint-TypeScript-Rules
2
+
3
+ Recommended ESLint Rules for general TypeScript, Node.js/Express.js, Angular, and React.js Projects
@@ -0,0 +1,3 @@
1
+ declare function addTwoNumbers(a: number, b: number): number;
2
+
3
+ export { addTwoNumbers };
@@ -0,0 +1,3 @@
1
+ declare function addTwoNumbers(a: number, b: number): number;
2
+
3
+ export { addTwoNumbers };
package/dist/number.js ADDED
@@ -0,0 +1,32 @@
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
+ });
@@ -0,0 +1,7 @@
1
+ // src/number.ts
2
+ function addTwoNumbers(a, b) {
3
+ return a + b;
4
+ }
5
+ export {
6
+ addTwoNumbers
7
+ };
@@ -0,0 +1,3 @@
1
+ declare function sayHello(name: string): string;
2
+
3
+ export { sayHello };
@@ -0,0 +1,3 @@
1
+ declare function sayHello(name: string): string;
2
+
3
+ export { sayHello };
@@ -0,0 +1,32 @@
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/sub/hello.ts
21
+ var hello_exports = {};
22
+ __export(hello_exports, {
23
+ sayHello: () => sayHello
24
+ });
25
+ module.exports = __toCommonJS(hello_exports);
26
+ function sayHello(name) {
27
+ return `Hello, ${name}`;
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ sayHello
32
+ });
@@ -0,0 +1,7 @@
1
+ // src/sub/hello.ts
2
+ function sayHello(name) {
3
+ return `Hello, ${name}`;
4
+ }
5
+ export {
6
+ sayHello
7
+ };
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@andrewt03/eslint-typescript-rules",
3
+ "version": "0.0.5",
4
+ "description": "Recommended ESLint Rules for general TypeScript, Node.js/Express.js, Angular, and React.js Projects",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "author": "Andrew Tran",
9
+ "license": "ISC",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/AndrewTran03/AndrewTran03-ESLint-TypeScript-Rules.git"
13
+ },
14
+ "scripts": {
15
+ "build": "tsup \"src/**/*.ts*\"",
16
+ "changeset:init": "changeset init",
17
+ "changeset:create": "changeset",
18
+ "changeset:version": "changeset version",
19
+ "release": "npm run build && changeset publish",
20
+ "publish": "npm publish --access public",
21
+ "lint": "tsc",
22
+ "prettier": "prettier --write .",
23
+ "test": "echo \"Error: no test specified\" && exit 1"
24
+ },
25
+ "keywords": ["ESLint", "TypeScript", "Node.js", "Express.js", "Angular", "React.js"],
26
+ "devDependencies": {
27
+ "@changesets/cli": "^2.27.11",
28
+ "prettier": "^3.4.2",
29
+ "tsup": "^8.3.5",
30
+ "typescript": "^5.7.2"
31
+ }
32
+ }