@gennext/dev-configs 0.0.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.
@@ -0,0 +1,3 @@
1
+ import type { Linter } from "eslint";
2
+ export declare const eslintConfigs: Linter.Config[];
3
+ //# sourceMappingURL=eslint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.d.ts","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAcxC,CAAC"}
package/dist/eslint.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.eslintConfigs = void 0;
7
+ const eslint_node_1 = __importDefault(require("@gennext/eslint-node"));
8
+ const eslint_plugin_unicorn_1 = __importDefault(require("eslint-plugin-unicorn"));
9
+ exports.eslintConfigs = [
10
+ ...eslint_node_1.default,
11
+ {
12
+ rules: {
13
+ "@typescript-eslint/no-explicit-any": "off",
14
+ },
15
+ },
16
+ {
17
+ plugins: { unicorn: eslint_plugin_unicorn_1.default },
18
+ rules: {
19
+ curly: ["error", "all"],
20
+ "unicorn/switch-case-braces": ["error", "always"],
21
+ },
22
+ },
23
+ ];
24
+ //# sourceMappingURL=eslint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eslint.js","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":";;;;;;AAAA,uEAAiD;AAEjD,kFAA4C;AAE/B,QAAA,aAAa,GAAoB;IAC5C,GAAG,qBAAa;IAChB;QACE,KAAK,EAAE;YACL,oCAAoC,EAAE,KAAK;SAC5C;KACF;IACD;QACE,OAAO,EAAE,EAAE,OAAO,EAAP,+BAAO,EAAE;QACpB,KAAK,EAAE;YACL,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;YACvB,4BAA4B,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;SAClD;KACF;CACF,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./eslint";
2
+ export * from "./prettier";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./eslint"), exports);
18
+ __exportStar(require("./prettier"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B"}
@@ -0,0 +1,3 @@
1
+ import type { Config } from "prettier";
2
+ export declare const prettierConfigs: Config;
3
+ //# sourceMappingURL=prettier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,eAAO,MAAM,eAAe,EAAE,MAQ7B,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.prettierConfigs = void 0;
4
+ exports.prettierConfigs = {
5
+ bracketSpacing: true,
6
+ singleQuote: true,
7
+ printWidth: 100,
8
+ tabWidth: 2,
9
+ trailingComma: "all",
10
+ arrowParens: "avoid",
11
+ semi: true,
12
+ };
13
+ //# sourceMappingURL=prettier.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prettier.js","sourceRoot":"","sources":["../src/prettier.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAW;IACrC,cAAc,EAAE,IAAI;IACpB,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,GAAG;IACf,QAAQ,EAAE,CAAC;IACX,aAAa,EAAE,KAAK;IACpB,WAAW,EAAE,OAAO;IACpB,IAAI,EAAE,IAAI;CACX,CAAC"}
package/package.json ADDED
@@ -0,0 +1,87 @@
1
+ {
2
+ "name": "@gennext/dev-configs",
3
+ "version": "0.0.0",
4
+ "description": "Shared development configurations for Gennex packages",
5
+ "keywords": [
6
+ "gennex",
7
+ "gen",
8
+ "dev-configs",
9
+ "configurations",
10
+ "settings",
11
+ "shared-configs",
12
+ "eslint",
13
+ "eslint-config",
14
+ "prettier",
15
+ "prettier-config",
16
+ "typescript",
17
+ "tsconfig",
18
+ "tsconfig-base",
19
+ "code-style",
20
+ "linter",
21
+ "formatter",
22
+ "build-tools",
23
+ "dev-tools",
24
+ "development"
25
+ ],
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "./tsconfig.base.json": "./tsconfig/tsconfig.base.json",
32
+ "./tsconfig.common.json": "./tsconfig/tsconfig.common.json",
33
+ "./package.json": "./package.json"
34
+ },
35
+ "files": [
36
+ "README.md",
37
+ "LICENSE.md",
38
+ "dist",
39
+ "tsconfig",
40
+ "!**/*.tsbuildinfo"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "engines": {
46
+ "bun": ">=1.3"
47
+ },
48
+ "scripts": {
49
+ "force-update": "sh ./scripts/force-update.sh",
50
+ "build": "sh ./scripts/build.sh",
51
+ "clean": "sh ./scripts/clean.sh",
52
+ "eslint": "eslint --report-unused-disable-directives .",
53
+ "lint": "bun run eslint && bun run prettier:cli",
54
+ "lint:fix": "bun run eslint --fix && bun run prettier:fix",
55
+ "prettier:cli": "prettier \"**/*.{js,ts}\" -l",
56
+ "prettier:fix": "bun run prettier:cli --write",
57
+ "rebuild": "sh ./scripts/rebuild.sh no-version",
58
+ "prepublishOnly": "bun run rebuild"
59
+ },
60
+ "license": "MIT",
61
+ "dependencies": {
62
+ "@gennext/eslint-node": "latest",
63
+ "eslint-plugin-unicorn": "^62.0.0"
64
+ },
65
+ "peerDependencies": {
66
+ "eslint": "^9.0.0",
67
+ "prettier": "^3.0.0",
68
+ "typescript": "^5.0.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "eslint": {
72
+ "optional": true
73
+ },
74
+ "prettier": {
75
+ "optional": true
76
+ },
77
+ "typescript": {
78
+ "optional": true
79
+ }
80
+ },
81
+ "devDependencies": {
82
+ "@types/bun": "^1.3.4",
83
+ "eslint": "^9.36.0",
84
+ "prettier": "^3.6.2",
85
+ "typescript": "^5.9.3"
86
+ }
87
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ /* Language and Environment */
5
+ "target": "ES2022",
6
+ "lib": ["ES2022"],
7
+ "experimentalDecorators": true,
8
+ "emitDecoratorMetadata": true,
9
+ "useDefineForClassFields": false,
10
+
11
+ /* Modules */
12
+ "module": "Node16",
13
+ "moduleResolution": "node16",
14
+ "resolveJsonModule": true,
15
+ "allowSyntheticDefaultImports": true,
16
+ "esModuleInterop": true,
17
+ "isolatedModules": false,
18
+ "forceConsistentCasingInFileNames": true,
19
+
20
+ /* Emit */
21
+ "declaration": true,
22
+ "declarationMap": true,
23
+ "sourceMap": true,
24
+ "removeComments": false,
25
+ "importHelpers": false,
26
+ "downlevelIteration": true,
27
+ "preserveConstEnums": true,
28
+
29
+ /* Type Checking - Strict Mode (Balanced for Production) */
30
+ "strict": true,
31
+ "noImplicitAny": false,
32
+ "strictNullChecks": true,
33
+ "strictFunctionTypes": true,
34
+ "strictBindCallApply": true,
35
+ "strictPropertyInitialization": false,
36
+ "noImplicitThis": true,
37
+ "useUnknownInCatchVariables": false,
38
+ "alwaysStrict": true,
39
+
40
+ /* Additional Checks */
41
+ "noUnusedLocals": true,
42
+ "noUnusedParameters": true,
43
+ "noImplicitReturns": false,
44
+ "noFallthroughCasesInSwitch": true,
45
+ "noUncheckedIndexedAccess": false,
46
+ "noImplicitOverride": true,
47
+ "allowUnusedLabels": false,
48
+ "allowUnreachableCode": false,
49
+
50
+ /* Performance */
51
+ "incremental": true,
52
+ "skipLibCheck": true,
53
+
54
+ /* Output */
55
+ // "pretty": true,
56
+ "noEmitOnError": true
57
+ },
58
+ "exclude": [
59
+ "node_modules",
60
+ "dist",
61
+ "build",
62
+ "coverage",
63
+ "**/*.spec.ts",
64
+ "**/*.test.ts",
65
+ "**/__tests__/**"
66
+ ]
67
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "$schema": "http://json.schemastore.org/tsconfig",
3
+ "extends": "./tsconfig.base.json",
4
+ "compilerOptions": {
5
+ "target": "ES2022",
6
+ "module": "nodenext",
7
+ "moduleResolution": "nodenext"
8
+ },
9
+ "ts-node": {
10
+ "transpileOnly": true
11
+ }
12
+ }