@venizia/dev-configs 0.2.1 → 0.3.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.
Files changed (93) hide show
  1. package/README.md +167 -33
  2. package/dist/{compile.d.ts → compilers/bun.d.ts} +1 -1
  3. package/dist/compilers/bun.d.ts.map +1 -0
  4. package/dist/{compile.js → compilers/bun.js} +8 -9
  5. package/dist/compilers/bun.js.map +1 -0
  6. package/dist/compilers/index.d.ts +2 -0
  7. package/dist/compilers/index.d.ts.map +1 -0
  8. package/dist/compilers/index.js +18 -0
  9. package/dist/compilers/index.js.map +1 -0
  10. package/dist/formatters/index.d.ts +3 -0
  11. package/dist/formatters/index.d.ts.map +1 -0
  12. package/dist/formatters/index.js +19 -0
  13. package/dist/formatters/index.js.map +1 -0
  14. package/dist/formatters/oxfmt.d.ts +14 -0
  15. package/dist/formatters/oxfmt.d.ts.map +1 -0
  16. package/dist/formatters/oxfmt.js +24 -0
  17. package/dist/formatters/oxfmt.js.map +1 -0
  18. package/dist/formatters/prettier.d.ts +3 -0
  19. package/dist/formatters/prettier.d.ts.map +1 -0
  20. package/dist/{prettier.js → formatters/prettier.js} +2 -2
  21. package/dist/formatters/prettier.js.map +1 -0
  22. package/dist/index.d.ts +3 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +3 -4
  25. package/dist/index.js.map +1 -1
  26. package/dist/linters/eslint.d.ts +20 -0
  27. package/dist/linters/eslint.d.ts.map +1 -0
  28. package/dist/linters/eslint.js +152 -0
  29. package/dist/linters/eslint.js.map +1 -0
  30. package/dist/linters/index.d.ts +5 -0
  31. package/dist/linters/index.d.ts.map +1 -0
  32. package/dist/linters/index.js +21 -0
  33. package/dist/linters/index.js.map +1 -0
  34. package/dist/linters/oxlint.d.ts +19 -0
  35. package/dist/linters/oxlint.d.ts.map +1 -0
  36. package/dist/linters/oxlint.js +166 -0
  37. package/dist/linters/oxlint.js.map +1 -0
  38. package/dist/linters/react.d.ts +58 -0
  39. package/dist/linters/react.d.ts.map +1 -0
  40. package/dist/linters/react.js +177 -0
  41. package/dist/linters/react.js.map +1 -0
  42. package/dist/linters/rules/common.d.ts +6 -0
  43. package/dist/linters/rules/common.d.ts.map +1 -0
  44. package/dist/linters/rules/common.js +3 -0
  45. package/dist/linters/rules/common.js.map +1 -0
  46. package/dist/linters/rules/eqeqeq.rule.d.ts +10 -0
  47. package/dist/linters/rules/eqeqeq.rule.d.ts.map +1 -0
  48. package/dist/linters/rules/eqeqeq.rule.js +13 -0
  49. package/dist/linters/rules/eqeqeq.rule.js.map +1 -0
  50. package/dist/linters/rules/index.d.ts +9 -0
  51. package/dist/linters/rules/index.d.ts.map +1 -0
  52. package/dist/linters/rules/index.js +25 -0
  53. package/dist/linters/rules/index.js.map +1 -0
  54. package/dist/linters/rules/naming-convention.rule.d.ts +20 -0
  55. package/dist/linters/rules/naming-convention.rule.d.ts.map +1 -0
  56. package/dist/linters/rules/naming-convention.rule.js +64 -0
  57. package/dist/linters/rules/naming-convention.rule.js.map +1 -0
  58. package/dist/linters/rules/no-restricted-imports.rule.d.ts +17 -0
  59. package/dist/linters/rules/no-restricted-imports.rule.d.ts.map +1 -0
  60. package/dist/linters/rules/no-restricted-imports.rule.js +19 -0
  61. package/dist/linters/rules/no-restricted-imports.rule.js.map +1 -0
  62. package/dist/linters/rules/no-restricted-properties.rule.d.ts +22 -0
  63. package/dist/linters/rules/no-restricted-properties.rule.d.ts.map +1 -0
  64. package/dist/linters/rules/no-restricted-properties.rule.js +24 -0
  65. package/dist/linters/rules/no-restricted-properties.rule.js.map +1 -0
  66. package/dist/linters/rules/no-unused-vars.rule.d.ts +12 -0
  67. package/dist/linters/rules/no-unused-vars.rule.d.ts.map +1 -0
  68. package/dist/linters/rules/no-unused-vars.rule.js +13 -0
  69. package/dist/linters/rules/no-unused-vars.rule.js.map +1 -0
  70. package/dist/linters/rules/prefer-nullish-coalescing.rule.d.ts +12 -0
  71. package/dist/linters/rules/prefer-nullish-coalescing.rule.d.ts.map +1 -0
  72. package/dist/linters/rules/prefer-nullish-coalescing.rule.js +13 -0
  73. package/dist/linters/rules/prefer-nullish-coalescing.rule.js.map +1 -0
  74. package/dist/linters/rules/switch-case-braces.rule.d.ts +10 -0
  75. package/dist/linters/rules/switch-case-braces.rule.d.ts.map +1 -0
  76. package/dist/linters/rules/switch-case-braces.rule.js +13 -0
  77. package/dist/linters/rules/switch-case-braces.rule.js.map +1 -0
  78. package/package.json +46 -16
  79. package/{tsconfig → src/tsconfig}/tsconfig.base.json +2 -2
  80. package/{tsconfig → src/tsconfig}/tsconfig.common.json +1 -1
  81. package/dist/compile.d.ts.map +0 -1
  82. package/dist/compile.js.map +0 -1
  83. package/dist/eslint.d.ts +0 -3
  84. package/dist/eslint.d.ts.map +0 -1
  85. package/dist/eslint.js +0 -25
  86. package/dist/eslint.js.map +0 -1
  87. package/dist/prettier.d.ts +0 -3
  88. package/dist/prettier.d.ts.map +0 -1
  89. package/dist/prettier.js.map +0 -1
  90. package/dist/react.d.ts +0 -32
  91. package/dist/react.d.ts.map +0 -1
  92. package/dist/react.js +0 -111
  93. package/dist/react.js.map +0 -1
@@ -0,0 +1,6 @@
1
+ import type { OxlintConfig } from 'oxlint';
2
+ /** A rule's severity, as both oxlint and ESLint accept it. */
3
+ export type TRuleSeverity = 'off' | 'warn' | 'error';
4
+ /** The entry oxlint's own types allow for rule `TName`, options included. */
5
+ export type TOxlintRuleEntry<TName extends string> = NonNullable<NonNullable<OxlintConfig['rules']>[TName]>;
6
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AAErD,6EAA6E;AAC7E,MAAM,MAAM,gBAAgB,CAAC,KAAK,SAAS,MAAM,IAAI,WAAW,CAC9D,WAAW,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAC1C,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/linters/rules/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { TOxlintRuleEntry, TRuleSeverity } from './common';
2
+ /** `eqeqeq`. `smart` still allows `== null` and comparing two literals. */
3
+ export declare class EqeqeqRule {
4
+ static readonly NAME = "eqeqeq";
5
+ static build(opts?: {
6
+ severity?: TRuleSeverity;
7
+ mode?: 'always' | 'smart';
8
+ }): TOxlintRuleEntry<'eqeqeq'>;
9
+ }
10
+ //# sourceMappingURL=eqeqeq.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eqeqeq.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/eqeqeq.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,2EAA2E;AAC3E,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,IAAI,YAAY;IAEhC,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;KAAO,GACjE,gBAAgB,CAAC,QAAQ,CAAC;CAI9B"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EqeqeqRule = void 0;
4
+ /** `eqeqeq`. `smart` still allows `== null` and comparing two literals. */
5
+ class EqeqeqRule {
6
+ static { this.NAME = 'eqeqeq'; }
7
+ static build(opts = {}) {
8
+ const { severity = 'error', mode = 'smart' } = opts;
9
+ return [severity, mode];
10
+ }
11
+ }
12
+ exports.EqeqeqRule = EqeqeqRule;
13
+ //# sourceMappingURL=eqeqeq.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eqeqeq.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/eqeqeq.rule.ts"],"names":[],"mappings":";;;AAEA,2EAA2E;AAC3E,MAAa,UAAU;aACL,SAAI,GAAG,QAAQ,CAAC;IAEhC,MAAM,CAAC,KAAK,CACV,OAAgE,EAAE;QAElE,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,IAAI,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC;QACpD,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;;AARH,gCASC"}
@@ -0,0 +1,9 @@
1
+ export * from './common';
2
+ export * from './eqeqeq.rule';
3
+ export * from './naming-convention.rule';
4
+ export * from './no-restricted-imports.rule';
5
+ export * from './no-restricted-properties.rule';
6
+ export * from './no-unused-vars.rule';
7
+ export * from './prefer-nullish-coalescing.rule';
8
+ export * from './switch-case-braces.rule';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,25 @@
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("./common"), exports);
18
+ __exportStar(require("./eqeqeq.rule"), exports);
19
+ __exportStar(require("./naming-convention.rule"), exports);
20
+ __exportStar(require("./no-restricted-imports.rule"), exports);
21
+ __exportStar(require("./no-restricted-properties.rule"), exports);
22
+ __exportStar(require("./no-unused-vars.rule"), exports);
23
+ __exportStar(require("./prefer-nullish-coalescing.rule"), exports);
24
+ __exportStar(require("./switch-case-braces.rule"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/linters/rules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,gDAA8B;AAC9B,2DAAyC;AACzC,+DAA6C;AAC7C,kEAAgD;AAChD,wDAAsC;AACtC,mEAAiD;AACjD,4DAA0C"}
@@ -0,0 +1,20 @@
1
+ import type { Linter } from 'eslint';
2
+ import type { TRuleSeverity } from './common';
3
+ /** One selector of `@typescript-eslint/naming-convention`, as its documentation types it. */
4
+ export type TNamingSelector = Record<string, unknown> & {
5
+ selector: string | string[];
6
+ };
7
+ /**
8
+ * `@typescript-eslint/naming-convention`, owned here. oxlint has no port of it, so it runs in ESLint.
9
+ * The selectors are the LoopBack 4 set the base preset carried, kept one for one.
10
+ */
11
+ export declare class NamingConventionRule {
12
+ static readonly NAME = "@typescript-eslint/naming-convention";
13
+ static readonly SELECTORS: readonly TNamingSelector[];
14
+ /** `extraSelectors` go last, so they win over a base selector they overlap. */
15
+ static build(opts?: {
16
+ severity?: TRuleSeverity;
17
+ extraSelectors?: TNamingSelector[];
18
+ }): Linter.RuleEntry;
19
+ }
20
+ //# sourceMappingURL=naming-convention.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-convention.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/naming-convention.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,6FAA6F;AAC7F,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CAAE,CAAC;AAExF;;;GAGG;AACH,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,QAAQ,CAAC,IAAI,0CAA0C;IAE9D,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,eAAe,EAAE,CA8CnD;IAEF,+EAA+E;IAC/E,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAC,cAAc,CAAC,EAAE,eAAe,EAAE,CAAA;KAAO,GAC1E,MAAM,CAAC,SAAS;CAIpB"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NamingConventionRule = void 0;
4
+ /**
5
+ * `@typescript-eslint/naming-convention`, owned here. oxlint has no port of it, so it runs in ESLint.
6
+ * The selectors are the LoopBack 4 set the base preset carried, kept one for one.
7
+ */
8
+ class NamingConventionRule {
9
+ static { this.NAME = '@typescript-eslint/naming-convention'; }
10
+ static { this.SELECTORS = [
11
+ { selector: 'default', format: ['camelCase'] },
12
+ { selector: 'variable', format: ['camelCase', 'UPPER_CASE', 'PascalCase'] },
13
+ { selector: 'variable', format: null, filter: '^_$' },
14
+ { selector: 'function', format: ['PascalCase'], filter: 'Mixin$' },
15
+ { selector: 'parameter', format: ['camelCase'], leadingUnderscore: 'allow' },
16
+ {
17
+ selector: 'enumMember',
18
+ format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
19
+ leadingUnderscore: 'allow',
20
+ },
21
+ {
22
+ selector: 'property',
23
+ format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
24
+ leadingUnderscore: 'allow',
25
+ },
26
+ { selector: 'method', format: ['camelCase'], leadingUnderscore: 'allow' },
27
+ { selector: 'memberLike', modifiers: ['static'], format: ['camelCase', 'UPPER_CASE'] },
28
+ {
29
+ selector: 'memberLike',
30
+ modifiers: ['private'],
31
+ format: ['camelCase'],
32
+ leadingUnderscore: 'allow',
33
+ },
34
+ {
35
+ selector: 'memberLike',
36
+ modifiers: ['protected'],
37
+ format: ['camelCase'],
38
+ leadingUnderscore: 'allow',
39
+ },
40
+ { selector: 'typeLike', format: ['PascalCase'] },
41
+ {
42
+ selector: [
43
+ 'objectLiteralProperty',
44
+ 'objectLiteralMethod',
45
+ 'typeProperty',
46
+ 'typeMethod',
47
+ 'classProperty',
48
+ 'classMethod',
49
+ 'enumMember',
50
+ ],
51
+ format: null,
52
+ modifiers: ['requiresQuotes'],
53
+ },
54
+ { selector: 'import', format: ['camelCase', 'PascalCase'] },
55
+ { selector: 'import', format: null, filter: '^_$' },
56
+ ]; }
57
+ /** `extraSelectors` go last, so they win over a base selector they overlap. */
58
+ static build(opts = {}) {
59
+ const { severity = 'error', extraSelectors = [] } = opts;
60
+ return [severity, ...NamingConventionRule.SELECTORS, ...extraSelectors];
61
+ }
62
+ }
63
+ exports.NamingConventionRule = NamingConventionRule;
64
+ //# sourceMappingURL=naming-convention.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"naming-convention.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/naming-convention.rule.ts"],"names":[],"mappings":";;;AAMA;;;GAGG;AACH,MAAa,oBAAoB;aACf,SAAI,GAAG,sCAAsC,CAAC;aAE9C,cAAS,GAA+B;QACtD,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE;QAC9C,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,YAAY,CAAC,EAAE;QAC3E,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;QACrD,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE;QAClE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,OAAO,EAAE;QAC5E;YACE,QAAQ,EAAE,YAAY;YACtB,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,YAAY,CAAC;YACjD,iBAAiB,EAAE,OAAO;SAC3B;QACD;YACE,QAAQ,EAAE,UAAU;YACpB,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,YAAY,CAAC;YACjD,iBAAiB,EAAE,OAAO;SAC3B;QACD,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,OAAO,EAAE;QACzE,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE;QACtF;YACE,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE,CAAC,SAAS,CAAC;YACtB,MAAM,EAAE,CAAC,WAAW,CAAC;YACrB,iBAAiB,EAAE,OAAO;SAC3B;QACD;YACE,QAAQ,EAAE,YAAY;YACtB,SAAS,EAAE,CAAC,WAAW,CAAC;YACxB,MAAM,EAAE,CAAC,WAAW,CAAC;YACrB,iBAAiB,EAAE,OAAO;SAC3B;QACD,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE;QAChD;YACE,QAAQ,EAAE;gBACR,uBAAuB;gBACvB,qBAAqB;gBACrB,cAAc;gBACd,YAAY;gBACZ,eAAe;gBACf,aAAa;gBACb,YAAY;aACb;YACD,MAAM,EAAE,IAAI;YACZ,SAAS,EAAE,CAAC,gBAAgB,CAAC;SAC9B;QACD,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,YAAY,CAAC,EAAE;QAC3D,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;KACpD,CAAC;IAEF,+EAA+E;IAC/E,MAAM,CAAC,KAAK,CACV,OAAyE,EAAE;QAE3E,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;QACzD,OAAO,CAAC,QAAQ,EAAE,GAAG,oBAAoB,CAAC,SAAS,EAAE,GAAG,cAAc,CAAC,CAAC;IAC1E,CAAC;;AAzDH,oDA0DC"}
@@ -0,0 +1,17 @@
1
+ import type { TOxlintRuleEntry, TRuleSeverity } from './common';
2
+ /** One forbidden import path, with the message the author sees. */
3
+ export interface IRestrictedImportPath {
4
+ name: string;
5
+ message: string;
6
+ importNames?: string[];
7
+ }
8
+ /** `no-restricted-imports`. The base forbids the whole of lodash, which defeats tree-shaking. */
9
+ export declare class NoRestrictedImportsRule {
10
+ static readonly NAME = "no-restricted-imports";
11
+ static readonly PATHS: readonly IRestrictedImportPath[];
12
+ static build(opts?: {
13
+ severity?: TRuleSeverity;
14
+ extraPaths?: IRestrictedImportPath[];
15
+ }): TOxlintRuleEntry<'no-restricted-imports'>;
16
+ }
17
+ //# sourceMappingURL=no-restricted-imports.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-restricted-imports.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/no-restricted-imports.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,mEAAmE;AACnE,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,iGAAiG;AACjG,qBAAa,uBAAuB;IAClC,MAAM,CAAC,QAAQ,CAAC,IAAI,2BAA2B;IAE/C,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,qBAAqB,EAAE,CAMrD;IAEF,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAC,UAAU,CAAC,EAAE,qBAAqB,EAAE,CAAA;KAAO,GAC5E,gBAAgB,CAAC,uBAAuB,CAAC;CAI7C"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoRestrictedImportsRule = void 0;
4
+ /** `no-restricted-imports`. The base forbids the whole of lodash, which defeats tree-shaking. */
5
+ class NoRestrictedImportsRule {
6
+ static { this.NAME = 'no-restricted-imports'; }
7
+ static { this.PATHS = [
8
+ {
9
+ name: 'lodash',
10
+ message: "Please import 'fn' from 'lodash/fn' instead of * from lodash | Ex: import get from 'lodash/get'",
11
+ },
12
+ ]; }
13
+ static build(opts = {}) {
14
+ const { severity = 'error', extraPaths = [] } = opts;
15
+ return [severity, { paths: [...NoRestrictedImportsRule.PATHS, ...extraPaths] }];
16
+ }
17
+ }
18
+ exports.NoRestrictedImportsRule = NoRestrictedImportsRule;
19
+ //# sourceMappingURL=no-restricted-imports.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-restricted-imports.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/no-restricted-imports.rule.ts"],"names":[],"mappings":";;;AASA,iGAAiG;AACjG,MAAa,uBAAuB;aAClB,SAAI,GAAG,uBAAuB,CAAC;aAE/B,UAAK,GAAqC;QACxD;YACE,IAAI,EAAE,QAAQ;YACd,OAAO,EACL,iGAAiG;SACpG;KACF,CAAC;IAEF,MAAM,CAAC,KAAK,CACV,OAA2E,EAAE;QAE7E,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,UAAU,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;QACrD,OAAO,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,GAAG,uBAAuB,CAAC,KAAK,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAClF,CAAC;;AAhBH,0DAiBC"}
@@ -0,0 +1,22 @@
1
+ import type { TOxlintRuleEntry, TRuleSeverity } from './common';
2
+ /** One forbidden property access, with the message the author sees. */
3
+ export interface IRestrictedProperty {
4
+ property: string;
5
+ object?: string;
6
+ message: string;
7
+ }
8
+ /**
9
+ * `no-restricted-properties`. The default bans what exists only in a secure context (https,
10
+ * localhost): on a plain-http LAN origin or in a WebView, `crypto.randomUUID` is `undefined` and the
11
+ * first call throws. Catches the call, `globalThis.crypto.randomUUID`, the bracket form and
12
+ * destructuring; leaves `getRandomValues` alone.
13
+ */
14
+ export declare class NoRestrictedPropertiesRule {
15
+ static readonly NAME = "no-restricted-properties";
16
+ static readonly SECURE_CONTEXT: readonly IRestrictedProperty[];
17
+ static build(opts?: {
18
+ severity?: TRuleSeverity;
19
+ extraProperties?: IRestrictedProperty[];
20
+ }): TOxlintRuleEntry<'no-restricted-properties'>;
21
+ }
22
+ //# sourceMappingURL=no-restricted-properties.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-restricted-properties.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/no-restricted-properties.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,qBAAa,0BAA0B;IACrC,MAAM,CAAC,QAAQ,CAAC,IAAI,8BAA8B;IAElD,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,SAAS,mBAAmB,EAAE,CAM5D;IAEF,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAC,eAAe,CAAC,EAAE,mBAAmB,EAAE,CAAA;KAAO,GAC/E,gBAAgB,CAAC,0BAA0B,CAAC;CAIhD"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoRestrictedPropertiesRule = void 0;
4
+ /**
5
+ * `no-restricted-properties`. The default bans what exists only in a secure context (https,
6
+ * localhost): on a plain-http LAN origin or in a WebView, `crypto.randomUUID` is `undefined` and the
7
+ * first call throws. Catches the call, `globalThis.crypto.randomUUID`, the bracket form and
8
+ * destructuring; leaves `getRandomValues` alone.
9
+ */
10
+ class NoRestrictedPropertiesRule {
11
+ static { this.NAME = 'no-restricted-properties'; }
12
+ static { this.SECURE_CONTEXT = [
13
+ {
14
+ property: 'randomUUID',
15
+ message: 'crypto.randomUUID exists only in a secure context (https, localhost) - on a plain-http origin it is undefined. Use uuidV4 from @venizia/ignis-helpers/uuid.',
16
+ },
17
+ ]; }
18
+ static build(opts = {}) {
19
+ const { severity = 'error', extraProperties = [] } = opts;
20
+ return [severity, ...NoRestrictedPropertiesRule.SECURE_CONTEXT, ...extraProperties];
21
+ }
22
+ }
23
+ exports.NoRestrictedPropertiesRule = NoRestrictedPropertiesRule;
24
+ //# sourceMappingURL=no-restricted-properties.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-restricted-properties.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/no-restricted-properties.rule.ts"],"names":[],"mappings":";;;AASA;;;;;GAKG;AACH,MAAa,0BAA0B;aACrB,SAAI,GAAG,0BAA0B,CAAC;aAElC,mBAAc,GAAmC;QAC/D;YACE,QAAQ,EAAE,YAAY;YACtB,OAAO,EACL,6JAA6J;SAChK;KACF,CAAC;IAEF,MAAM,CAAC,KAAK,CACV,OAA8E,EAAE;QAEhF,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,eAAe,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;QAC1D,OAAO,CAAC,QAAQ,EAAE,GAAG,0BAA0B,CAAC,cAAc,EAAE,GAAG,eAAe,CAAC,CAAC;IACtF,CAAC;;AAhBH,gEAiBC"}
@@ -0,0 +1,12 @@
1
+ import type { TOxlintRuleEntry, TRuleSeverity } from './common';
2
+ /** `no-unused-vars`. Unused arguments pass by default: an override keeps its signature. */
3
+ export declare class NoUnusedVarsRule {
4
+ static readonly NAME = "no-unused-vars";
5
+ static build(opts?: {
6
+ severity?: TRuleSeverity;
7
+ vars?: 'all' | 'local';
8
+ args?: 'all' | 'after-used' | 'none';
9
+ ignoreRestSiblings?: boolean;
10
+ }): TOxlintRuleEntry<'no-unused-vars'>;
11
+ }
12
+ //# sourceMappingURL=no-unused-vars.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-unused-vars.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/no-unused-vars.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,2FAA2F;AAC3F,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CAAC,IAAI,oBAAoB;IAExC,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QACJ,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,EAAE,KAAK,GAAG,YAAY,GAAG,MAAM,CAAC;QACrC,kBAAkB,CAAC,EAAE,OAAO,CAAC;KACzB,GACL,gBAAgB,CAAC,gBAAgB,CAAC;CAItC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoUnusedVarsRule = void 0;
4
+ /** `no-unused-vars`. Unused arguments pass by default: an override keeps its signature. */
5
+ class NoUnusedVarsRule {
6
+ static { this.NAME = 'no-unused-vars'; }
7
+ static build(opts = {}) {
8
+ const { severity = 'error', vars = 'all', args = 'none', ignoreRestSiblings = false } = opts;
9
+ return [severity, { vars, args, ignoreRestSiblings }];
10
+ }
11
+ }
12
+ exports.NoUnusedVarsRule = NoUnusedVarsRule;
13
+ //# sourceMappingURL=no-unused-vars.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-unused-vars.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/no-unused-vars.rule.ts"],"names":[],"mappings":";;;AAEA,2FAA2F;AAC3F,MAAa,gBAAgB;aACX,SAAI,GAAG,gBAAgB,CAAC;IAExC,MAAM,CAAC,KAAK,CACV,OAKI,EAAE;QAEN,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,IAAI,GAAG,KAAK,EAAE,IAAI,GAAG,MAAM,EAAE,kBAAkB,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC;QAC7F,OAAO,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IACxD,CAAC;;AAbH,4CAcC"}
@@ -0,0 +1,12 @@
1
+ import type { TOxlintRuleEntry, TRuleSeverity } from './common';
2
+ /** `typescript/prefer-nullish-coalescing`, type-aware. Options are oxlint's, passed through. */
3
+ export declare class PreferNullishCoalescingRule {
4
+ static readonly NAME = "typescript/prefer-nullish-coalescing";
5
+ static build(opts?: {
6
+ severity?: TRuleSeverity;
7
+ ignoreConditionalTests?: boolean;
8
+ ignoreMixedLogicalExpressions?: boolean;
9
+ ignoreTernaryTests?: boolean;
10
+ }): TOxlintRuleEntry<'typescript/prefer-nullish-coalescing'>;
11
+ }
12
+ //# sourceMappingURL=prefer-nullish-coalescing.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-nullish-coalescing.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/prefer-nullish-coalescing.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,gGAAgG;AAChG,qBAAa,2BAA2B;IACtC,MAAM,CAAC,QAAQ,CAAC,IAAI,0CAA0C;IAE9D,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QACJ,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,6BAA6B,CAAC,EAAE,OAAO,CAAC;QACxC,kBAAkB,CAAC,EAAE,OAAO,CAAC;KACzB,GACL,gBAAgB,CAAC,sCAAsC,CAAC;CAI5D"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PreferNullishCoalescingRule = void 0;
4
+ /** `typescript/prefer-nullish-coalescing`, type-aware. Options are oxlint's, passed through. */
5
+ class PreferNullishCoalescingRule {
6
+ static { this.NAME = 'typescript/prefer-nullish-coalescing'; }
7
+ static build(opts = {}) {
8
+ const { severity = 'error', ...options } = opts;
9
+ return Object.keys(options).length === 0 ? severity : [severity, options];
10
+ }
11
+ }
12
+ exports.PreferNullishCoalescingRule = PreferNullishCoalescingRule;
13
+ //# sourceMappingURL=prefer-nullish-coalescing.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prefer-nullish-coalescing.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/prefer-nullish-coalescing.rule.ts"],"names":[],"mappings":";;;AAEA,gGAAgG;AAChG,MAAa,2BAA2B;aACtB,SAAI,GAAG,sCAAsC,CAAC;IAE9D,MAAM,CAAC,KAAK,CACV,OAKI,EAAE;QAEN,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC;QAChD,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;;AAbH,kEAcC"}
@@ -0,0 +1,10 @@
1
+ import type { TOxlintRuleEntry, TRuleSeverity } from './common';
2
+ /** `unicorn/switch-case-braces`. `always` gives every case its own block scope. */
3
+ export declare class SwitchCaseBracesRule {
4
+ static readonly NAME = "unicorn/switch-case-braces";
5
+ static build(opts?: {
6
+ severity?: TRuleSeverity;
7
+ mode?: 'always' | 'avoid';
8
+ }): TOxlintRuleEntry<'unicorn/switch-case-braces'>;
9
+ }
10
+ //# sourceMappingURL=switch-case-braces.rule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-case-braces.rule.d.ts","sourceRoot":"","sources":["../../../src/linters/rules/switch-case-braces.rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEhE,mFAAmF;AACnF,qBAAa,oBAAoB;IAC/B,MAAM,CAAC,QAAQ,CAAC,IAAI,gCAAgC;IAEpD,MAAM,CAAC,KAAK,CACV,IAAI,GAAE;QAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;QAAC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;KAAO,GACjE,gBAAgB,CAAC,4BAA4B,CAAC;CAIlD"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwitchCaseBracesRule = void 0;
4
+ /** `unicorn/switch-case-braces`. `always` gives every case its own block scope. */
5
+ class SwitchCaseBracesRule {
6
+ static { this.NAME = 'unicorn/switch-case-braces'; }
7
+ static build(opts = {}) {
8
+ const { severity = 'error', mode = 'always' } = opts;
9
+ return [severity, mode];
10
+ }
11
+ }
12
+ exports.SwitchCaseBracesRule = SwitchCaseBracesRule;
13
+ //# sourceMappingURL=switch-case-braces.rule.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch-case-braces.rule.js","sourceRoot":"","sources":["../../../src/linters/rules/switch-case-braces.rule.ts"],"names":[],"mappings":";;;AAEA,mFAAmF;AACnF,MAAa,oBAAoB;aACf,SAAI,GAAG,4BAA4B,CAAC;IAEpD,MAAM,CAAC,KAAK,CACV,OAAgE,EAAE;QAElE,MAAM,EAAE,QAAQ,GAAG,OAAO,EAAE,IAAI,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;QACrD,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;;AARH,oDASC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@venizia/dev-configs",
3
- "version": "0.2.1",
4
- "description": "Shareable development configurations for TypeScript projects: ESLint v9 flat config (with unicorn plugin), Prettier formatting, and TypeScript compiler options with critical decorator support (experimentalDecorators, emitDecoratorMetadata, useDefineForClassFields). Single source of truth for consistent code style, type checking, and build settings across monorepo packages. 3-line consumption pattern per config.",
3
+ "version": "0.3.0",
4
+ "description": "Shareable development configurations for TypeScript projects: oxlint and oxfmt presets with per-rule builders, the ESLint naming-convention rule, the legacy ESLint flat config and Prettier presets, and TypeScript compiler options with critical decorator support (experimentalDecorators, emitDecoratorMetadata, useDefineForClassFields). Single source of truth for consistent code style, type checking, and build settings across monorepo packages.",
5
5
  "keywords": [
6
6
  "build-tools",
7
7
  "bun",
@@ -29,6 +29,8 @@
29
29
  "monorepo",
30
30
  "monorepo-config",
31
31
  "nodejs",
32
+ "oxfmt",
33
+ "oxlint",
32
34
  "prettier",
33
35
  "prettier-config",
34
36
  "settings",
@@ -64,15 +66,27 @@
64
66
  "types": "./dist/index.d.ts",
65
67
  "default": "./dist/index.js"
66
68
  },
67
- "./tsconfig.base.json": "./tsconfig/tsconfig.base.json",
68
- "./tsconfig.common.json": "./tsconfig/tsconfig.common.json",
69
+ "./compilers": {
70
+ "types": "./dist/compilers/index.d.ts",
71
+ "default": "./dist/compilers/index.js"
72
+ },
73
+ "./formatters": {
74
+ "types": "./dist/formatters/index.d.ts",
75
+ "default": "./dist/formatters/index.js"
76
+ },
77
+ "./linters": {
78
+ "types": "./dist/linters/index.d.ts",
79
+ "default": "./dist/linters/index.js"
80
+ },
81
+ "./tsconfig.base.json": "./src/tsconfig/tsconfig.base.json",
82
+ "./tsconfig.common.json": "./src/tsconfig/tsconfig.common.json",
69
83
  "./package.json": "./package.json"
70
84
  },
71
85
  "files": [
72
86
  "README.md",
73
87
  "LICENSE.md",
74
88
  "dist",
75
- "tsconfig",
89
+ "src/tsconfig",
76
90
  "!**/*.tsbuildinfo"
77
91
  ],
78
92
  "publishConfig": {
@@ -80,22 +94,22 @@
80
94
  },
81
95
  "scripts": {
82
96
  "force-update": "sh ./scripts/force-update.sh",
83
- "build": "sh ./scripts/build.sh",
84
- "clean": "sh ./scripts/clean.sh",
85
- "eslint": "eslint --report-unused-disable-directives .",
86
- "lint": "bun run eslint && bun run prettier:cli",
87
- "lint:fix": "bun run eslint --fix && bun run prettier:fix",
88
- "prettier:cli": "prettier \"**/*.{js,ts}\" -l",
89
- "prettier:fix": "bun run prettier:cli --write",
90
- "rebuild": "sh ./scripts/rebuild.sh no-version",
91
- "prepublishOnly": "bun run rebuild"
97
+ "prepublishOnly": "make rebuild"
92
98
  },
93
99
  "dependencies": {
94
- "@minimaltech/eslint-node": "^0.3.0",
95
- "eslint-plugin-unicorn": "^74.0.0"
100
+ "@eslint/js": "^10.0.1",
101
+ "eslint-config-prettier": "^10.1.8",
102
+ "eslint-plugin-n": "^18.2.1",
103
+ "eslint-plugin-prettier": "^5.5.6",
104
+ "eslint-plugin-unicorn": "^74.0.0",
105
+ "typescript-eslint": "^8.71.2"
96
106
  },
97
107
  "peerDependencies": {
98
108
  "eslint": "^9.0.0 || ^10.0.0",
109
+ "jiti": ">=2.2.0",
110
+ "oxfmt": ">=0.73.0",
111
+ "oxlint": ">=1.88.0",
112
+ "oxlint-tsgolint": ">=7.0.2004",
99
113
  "prettier": "^3.0.0",
100
114
  "typescript": "^5.0.0 || ^6.0.0"
101
115
  },
@@ -103,6 +117,18 @@
103
117
  "eslint": {
104
118
  "optional": true
105
119
  },
120
+ "jiti": {
121
+ "optional": true
122
+ },
123
+ "oxfmt": {
124
+ "optional": true
125
+ },
126
+ "oxlint": {
127
+ "optional": true
128
+ },
129
+ "oxlint-tsgolint": {
130
+ "optional": true
131
+ },
106
132
  "prettier": {
107
133
  "optional": true
108
134
  },
@@ -113,6 +139,10 @@
113
139
  "devDependencies": {
114
140
  "@types/bun": "^1.4.1",
115
141
  "eslint": "^10.10.0",
142
+ "jiti": "^2.7.0",
143
+ "oxfmt": "0.73.0",
144
+ "oxlint": "1.88.0",
145
+ "oxlint-tsgolint": "7.0.2004",
116
146
  "prettier": "^3.9.6",
117
147
  "typescript": "^6.0.3"
118
148
  }
@@ -5,8 +5,8 @@
5
5
  "ignoreDeprecations": "6.0",
6
6
 
7
7
  /* Language and Environment */
8
- "target": "ES2024",
9
- "lib": ["ES2024"],
8
+ "target": "ES2025",
9
+ "lib": ["ES2025"],
10
10
  "types": ["bun"],
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json.schemastore.org/tsconfig",
3
3
  "extends": "./tsconfig.base.json",
4
4
  "compilerOptions": {
5
- "target": "ES2024",
5
+ "target": "ES2025",
6
6
  "module": "nodenext",
7
7
  "moduleResolution": "nodenext"
8
8
  },
@@ -1 +0,0 @@
1
- {"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AAIA,gHAAgH;AAChH,qBAAa,WAAW;IACtB;;;;OAIG;WACU,OAAO,CAClB,IAAI,GAAE;QACJ,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,GAAG,CAAC,SAAS,EAAE,CAAC;KACtB,GACL,OAAO,CAAC,IAAI,CAAC;CAiCjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"compile.js","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":";;;AAAA,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAC7C,MAAM,eAAe,GAAG,YAAY,CAAC;AACrC,MAAM,sBAAsB,GAAG,eAAe,CAAC;AAE/C,gHAAgH;AAChH,MAAa,WAAW;IACtB;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,OAKI,EAAE;QAEN,MAAM,EACJ,UAAU,GAAG,kBAAkB,EAC/B,OAAO,GAAG,eAAe,EACzB,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,UAAU,IAAI,sBAAsB,EACrD,OAAO,GAAG,EAAE,GACb,GAAG,IAAI,CAAC;QAET,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC;YAC5B,WAAW,EAAE,CAAC,UAAU,CAAC;YACzB,MAAM,EAAE,KAAK;YACb,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;YAC1C,SAAS,EAAE,QAAQ;YACnB,KAAK,EAAE,KAAK;YACZ,OAAO,EAAE;gBACP,iIAAiI;gBACjI,MAAM,EAAE,MAAiC;gBACzC,OAAO;aACR;YACD,OAAO;SACR,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;YACnB,4FAA4F;YAC5F,8FAA8F;YAC9F,MAAM,IAAI,KAAK,CACb;gBACE,gDAAgD,UAAU,IAAI;gBAC9D,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,KAAK,KAAK,GAAG,CAAC,OAAO,EAAE,CAAC;aAC5D,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAC;QACJ,CAAC;IACH,CAAC;CACF;AA9CD,kCA8CC"}
package/dist/eslint.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { Linter } from "eslint";
2
- export declare const eslintConfigs: Linter.Config[];
3
- //# sourceMappingURL=eslint.d.ts.map
@@ -1 +0,0 @@
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,EAexC,CAAC"}
package/dist/eslint.js DELETED
@@ -1,25 +0,0 @@
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("@minimaltech/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
- "@typescript-eslint/ban-ts-comment": "error",
15
- "@typescript-eslint/no-namespace": "error",
16
- },
17
- },
18
- {
19
- plugins: { unicorn: eslint_plugin_unicorn_1.default },
20
- rules: {
21
- "unicorn/switch-case-braces": ["error", "always"],
22
- },
23
- },
24
- ];
25
- //# sourceMappingURL=eslint.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eslint.js","sourceRoot":"","sources":["../src/eslint.ts"],"names":[],"mappings":";;;;;;AAAA,2EAAqD;AAErD,kFAA4C;AAE/B,QAAA,aAAa,GAAoB;IAC5C,GAAG,qBAAa;IAChB;QACE,KAAK,EAAE;YACL,oCAAoC,EAAE,KAAK;YAC3C,mCAAmC,EAAE,OAAO;YAC5C,iCAAiC,EAAE,OAAO;SAC3C;KACF;IACD;QACE,OAAO,EAAE,EAAE,OAAO,EAAP,+BAAO,EAAE;QACpB,KAAK,EAAE;YACL,4BAA4B,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;SAClD;KACF;CACF,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { Config } from "prettier";
2
- export declare const prettierConfigs: Config;
3
- //# sourceMappingURL=prettier.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
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"}