@futdevpro/dynamo-eslint 1.12.1 → 1.14.3

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 (117) hide show
  1. package/.github/workflows/main.yml +1 -2
  2. package/README.md +286 -17
  3. package/build/configs/base.d.ts +9 -80
  4. package/build/configs/base.d.ts.map +1 -1
  5. package/build/configs/base.js +89 -49
  6. package/build/configs/base.js.map +1 -1
  7. package/build/configs/fsm.d.ts +1 -81
  8. package/build/configs/fsm.d.ts.map +1 -1
  9. package/build/configs/fsm.js +7 -6
  10. package/build/configs/fsm.js.map +1 -1
  11. package/build/configs/ngx-package.d.ts +1 -80
  12. package/build/configs/ngx-package.d.ts.map +1 -1
  13. package/build/configs/ngx-package.js +7 -6
  14. package/build/configs/ngx-package.js.map +1 -1
  15. package/build/configs/ngx.d.ts +4 -80
  16. package/build/configs/ngx.d.ts.map +1 -1
  17. package/build/configs/ngx.js +71 -11
  18. package/build/configs/ngx.js.map +1 -1
  19. package/build/configs/nts-package.d.ts +1 -82
  20. package/build/configs/nts-package.d.ts.map +1 -1
  21. package/build/configs/nts-package.js +16 -10
  22. package/build/configs/nts-package.js.map +1 -1
  23. package/build/configs/nts.d.ts +1 -81
  24. package/build/configs/nts.d.ts.map +1 -1
  25. package/build/configs/nts.js +30 -11
  26. package/build/configs/nts.js.map +1 -1
  27. package/build/plugin/index.d.ts +4 -0
  28. package/build/plugin/index.d.ts.map +1 -1
  29. package/build/plugin/index.js +7 -1
  30. package/build/plugin/index.js.map +1 -1
  31. package/build/plugin/rules/import/import-order.d.ts +4 -0
  32. package/build/plugin/rules/import/import-order.d.ts.map +1 -0
  33. package/build/plugin/rules/{import-order.js → import/import-order.js} +16 -17
  34. package/build/plugin/rules/import/import-order.js.map +1 -0
  35. package/build/plugin/rules/import/import-order.spec.d.ts.map +1 -0
  36. package/build/plugin/rules/{import-order.spec.js → import/import-order.spec.js} +40 -40
  37. package/build/plugin/rules/import/import-order.spec.js.map +1 -0
  38. package/build/plugin/rules/import/no-import-type.d.ts +4 -0
  39. package/build/plugin/rules/import/no-import-type.d.ts.map +1 -0
  40. package/build/plugin/rules/import/no-import-type.js +35 -0
  41. package/build/plugin/rules/import/no-import-type.js.map +1 -0
  42. package/build/plugin/rules/import/no-import-type.spec.d.ts +2 -0
  43. package/build/plugin/rules/import/no-import-type.spec.d.ts.map +1 -0
  44. package/build/plugin/rules/import/no-import-type.spec.js +60 -0
  45. package/build/plugin/rules/import/no-import-type.spec.js.map +1 -0
  46. package/build/plugin/rules/import/no-js-import.d.ts +4 -0
  47. package/build/plugin/rules/import/no-js-import.d.ts.map +1 -0
  48. package/build/plugin/rules/import/no-js-import.js +33 -0
  49. package/build/plugin/rules/import/no-js-import.js.map +1 -0
  50. package/build/plugin/rules/import/no-js-import.spec.d.ts +2 -0
  51. package/build/plugin/rules/import/no-js-import.spec.d.ts.map +1 -0
  52. package/build/plugin/rules/import/no-js-import.spec.js +68 -0
  53. package/build/plugin/rules/import/no-js-import.spec.js.map +1 -0
  54. package/build/plugin/rules/naming-patterns.d.ts +1 -1
  55. package/build/plugin/rules/naming-patterns.d.ts.map +1 -1
  56. package/build/plugin/rules/naming-patterns.spec.js +1 -1
  57. package/build/plugin/rules/naming-patterns.spec.js.map +1 -1
  58. package/build/scripts/dynamo-fix.d.ts +3 -0
  59. package/build/scripts/dynamo-fix.d.ts.map +1 -0
  60. package/build/scripts/dynamo-fix.js +92 -0
  61. package/build/scripts/dynamo-fix.js.map +1 -0
  62. package/build/scripts/eslintrc-audit.js.map +1 -1
  63. package/build/scripts/fix-return-types.d.ts +3 -0
  64. package/build/scripts/fix-return-types.d.ts.map +1 -0
  65. package/build/scripts/fix-return-types.js +109 -0
  66. package/build/scripts/fix-return-types.js.map +1 -0
  67. package/build/scripts/validate-imports.js +10 -9
  68. package/build/scripts/validate-imports.js.map +1 -1
  69. package/build/scripts/validate-naming.js +11 -26
  70. package/build/scripts/validate-naming.js.map +1 -1
  71. package/build-test/plugin/rules/import-order.d.ts +1 -1
  72. package/build-test/plugin/rules/naming-patterns.d.ts +1 -1
  73. package/eslint.config.js +55 -0
  74. package/futdevpro-dynamo-eslint-01.14.3.tgz +0 -0
  75. package/package.json +27 -18
  76. package/samples/.vscode/settings.json +13 -0
  77. package/samples/base/eslint.config.js +3 -0
  78. package/samples/fsm/.eslintrc.json +4 -0
  79. package/samples/fsm/eslint.config.js +3 -0
  80. package/samples/ngx/eslint.config.js +3 -0
  81. package/samples/ngx-package/.eslintrc.json +4 -0
  82. package/samples/ngx-package/eslint.config.js +3 -0
  83. package/samples/nts/eslint.config.js +3 -0
  84. package/samples/nts-package/.eslintrc.json +4 -0
  85. package/samples/nts-package/eslint.config.js +3 -0
  86. package/samples/package.json.example +26 -0
  87. package/samples/poc-violations.ts +32 -3
  88. package/src/configs/base.ts +93 -48
  89. package/src/configs/fsm.ts +8 -7
  90. package/src/configs/ngx-package.ts +8 -7
  91. package/src/configs/ngx.ts +71 -11
  92. package/src/configs/nts-package.ts +16 -10
  93. package/src/configs/nts.ts +30 -11
  94. package/src/plugin/index.ts +9 -1
  95. package/src/plugin/rules/{import-order.spec.ts → import/import-order.spec.ts} +46 -40
  96. package/src/plugin/rules/{import-order.ts → import/import-order.ts} +20 -18
  97. package/src/plugin/rules/import/no-import-type.spec.ts +69 -0
  98. package/src/plugin/rules/import/no-import-type.ts +37 -0
  99. package/src/plugin/rules/import/no-js-import.spec.ts +82 -0
  100. package/src/plugin/rules/import/no-js-import.ts +35 -0
  101. package/src/plugin/rules/naming-patterns.spec.ts +3 -1
  102. package/src/plugin/rules/naming-patterns.ts +1 -1
  103. package/src/scripts/dynamo-fix.ts +108 -0
  104. package/src/scripts/eslintrc-audit.ts +6 -2
  105. package/src/scripts/fix-return-types.ts +148 -0
  106. package/src/scripts/validate-imports.ts +95 -13
  107. package/src/scripts/validate-naming.ts +16 -28
  108. package/.eslintrc.json +0 -16
  109. package/INTEGRATION.md +0 -74
  110. package/POC-README.md +0 -147
  111. package/build/plugin/rules/import-order.d.ts +0 -4
  112. package/build/plugin/rules/import-order.d.ts.map +0 -1
  113. package/build/plugin/rules/import-order.js.map +0 -1
  114. package/build/plugin/rules/import-order.spec.d.ts.map +0 -1
  115. package/build/plugin/rules/import-order.spec.js.map +0 -1
  116. package/futdevpro-dynamo-eslint-01.12.01.tgz +0 -0
  117. /package/build/plugin/rules/{import-order.spec.d.ts → import/import-order.spec.d.ts} +0 -0
@@ -1,7 +1,8 @@
1
- "use strict";
2
- const nts = require("./nts");
3
- const config = {
4
- ...nts,
5
- };
6
- module.exports = config;
1
+ const fsmBaseConfig = require('./base');
2
+ /**
3
+ * Rulesets For Dynamo Based Systems
4
+ * FSM: Full Stack Module
5
+ * ESLint v9 Flat Config Format
6
+ */
7
+ module.exports = fsmBaseConfig;
7
8
  //# sourceMappingURL=fsm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fsm.js","sourceRoot":"","sources":["../../src/configs/fsm.ts"],"names":[],"mappings":";AAAA,6BAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,GAAG,GAAG;CACP,CAAC;AAEF,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"fsm.js","sourceRoot":"","sources":["../../src/configs/fsm.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG,aAAa,CAAC"}
@@ -1,81 +1,2 @@
1
- declare const config: {
2
- env: {
3
- browser: boolean;
4
- es2021: boolean;
5
- };
6
- extends: string[];
7
- parser: string;
8
- parserOptions: {
9
- ecmaVersion: string;
10
- };
11
- plugins: string[];
12
- rules: {
13
- 'no-warning-comments': (string | {
14
- terms: string[];
15
- location: string;
16
- })[];
17
- indent: (string | number | {
18
- SwitchCase: number;
19
- })[];
20
- 'max-len': (string | {
21
- code: number;
22
- comments: number;
23
- })[];
24
- 'max-lines': (string | number)[];
25
- 'linebreak-style': string;
26
- semi: string[];
27
- 'no-unused-vars': string;
28
- 'no-prototype-builtins': string;
29
- 'no-empty': string;
30
- 'comma-dangle': (string | {
31
- arrays: string;
32
- objects: string;
33
- functions: string;
34
- imports: string;
35
- exports: string;
36
- })[];
37
- 'brace-style': (string | {
38
- allowSingleLine: boolean;
39
- })[];
40
- 'object-curly-spacing': string[];
41
- 'array-bracket-spacing': (string | {
42
- objectsInArrays: boolean;
43
- arraysInArrays: boolean;
44
- })[];
45
- 'padding-line-between-statements': (string | {
46
- blankLine: string;
47
- prev: string;
48
- next: string[];
49
- } | {
50
- blankLine: string;
51
- prev: string[];
52
- next: string;
53
- } | {
54
- blankLine: string;
55
- prev: string[];
56
- next: string[];
57
- })[];
58
- 'prefer-const': string;
59
- 'no-case-declarations': string;
60
- 'no-fallthrough': string;
61
- 'keyword-spacing': string;
62
- 'no-else-return': string;
63
- 'no-duplicate-imports': string;
64
- 'max-params': (string | number)[];
65
- 'max-params-no-constructor/max-params-no-constructor': (string | number)[];
66
- quotes: (string | {
67
- allowTemplateLiterals: boolean;
68
- })[];
69
- '@typescript-eslint/quotes': (string | {
70
- allowTemplateLiterals: boolean;
71
- })[];
72
- '@typescript-eslint/no-unused-vars': string;
73
- '@typescript-eslint/explicit-function-return-type': (string | {
74
- allowTypedFunctionExpressions: boolean;
75
- })[];
76
- '@typescript-eslint/no-explicit-any': string;
77
- '@typescript-eslint/typedef': string;
78
- };
79
- };
80
- export = config;
1
+ declare const ngxConfig: any;
81
2
  //# sourceMappingURL=ngx-package.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-package.d.ts","sourceRoot":"","sources":["../../src/configs/ngx-package.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEX,CAAC;AAEF,SAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"ngx-package.d.ts","sourceRoot":"","sources":["../../src/configs/ngx-package.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,KAAmB,CAAC"}
@@ -1,7 +1,8 @@
1
- "use strict";
2
- const ngx = require("./ngx");
3
- const config = {
4
- ...ngx,
5
- };
6
- module.exports = config;
1
+ const ngxConfig = require('./ngx');
2
+ /**
3
+ * Rulesets For Dynamo Based Systems
4
+ * NGX-PACKAGE: Angular Package
5
+ * ESLint v9 Flat Config Format
6
+ */
7
+ module.exports = ngxConfig;
7
8
  //# sourceMappingURL=ngx-package.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-package.js","sourceRoot":"","sources":["../../src/configs/ngx-package.ts"],"names":[],"mappings":";AAAA,6BAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,GAAG,GAAG;CACP,CAAC;AAEF,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"ngx-package.js","sourceRoot":"","sources":["../../src/configs/ngx-package.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC"}
@@ -1,81 +1,5 @@
1
- declare const config: {
2
- env: {
3
- browser: boolean;
4
- es2021: boolean;
5
- };
6
- extends: string[];
7
- parser: string;
8
- parserOptions: {
9
- ecmaVersion: string;
10
- };
11
- plugins: string[];
12
- rules: {
13
- 'no-warning-comments': (string | {
14
- terms: string[];
15
- location: string;
16
- })[];
17
- indent: (string | number | {
18
- SwitchCase: number;
19
- })[];
20
- 'max-len': (string | {
21
- code: number;
22
- comments: number;
23
- })[];
24
- 'max-lines': (string | number)[];
25
- 'linebreak-style': string;
26
- semi: string[];
27
- 'no-unused-vars': string;
28
- 'no-prototype-builtins': string;
29
- 'no-empty': string;
30
- 'comma-dangle': (string | {
31
- arrays: string;
32
- objects: string;
33
- functions: string;
34
- imports: string;
35
- exports: string;
36
- })[];
37
- 'brace-style': (string | {
38
- allowSingleLine: boolean;
39
- })[];
40
- 'object-curly-spacing': string[];
41
- 'array-bracket-spacing': (string | {
42
- objectsInArrays: boolean;
43
- arraysInArrays: boolean;
44
- })[];
45
- 'padding-line-between-statements': (string | {
46
- blankLine: string;
47
- prev: string;
48
- next: string[];
49
- } | {
50
- blankLine: string;
51
- prev: string[];
52
- next: string;
53
- } | {
54
- blankLine: string;
55
- prev: string[];
56
- next: string[];
57
- })[];
58
- 'prefer-const': string;
59
- 'no-case-declarations': string;
60
- 'no-fallthrough': string;
61
- 'keyword-spacing': string;
62
- 'no-else-return': string;
63
- 'no-duplicate-imports': string;
64
- 'max-params': (string | number)[];
65
- 'max-params-no-constructor/max-params-no-constructor': (string | number)[];
66
- quotes: (string | {
67
- allowTemplateLiterals: boolean;
68
- })[];
69
- '@typescript-eslint/quotes': (string | {
70
- allowTemplateLiterals: boolean;
71
- })[];
72
- '@typescript-eslint/no-unused-vars': string;
73
- '@typescript-eslint/explicit-function-return-type': (string | {
74
- allowTypedFunctionExpressions: boolean;
75
- })[];
76
- '@typescript-eslint/no-explicit-any': string;
77
- '@typescript-eslint/typedef': string;
78
- };
79
- };
80
- export = config;
1
+ declare const ngxBaseConfig: any;
2
+ declare const angularPlugin: any;
3
+ declare const angularTemplatePlugin: any;
4
+ declare const angularTemplateParser: any;
81
5
  //# sourceMappingURL=ngx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx.d.ts","sourceRoot":"","sources":["../../src/configs/ngx.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAC;AAEF,SAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"ngx.d.ts","sourceRoot":"","sources":["../../src/configs/ngx.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,KAAoB,CAAC;AACxC,QAAA,MAAM,aAAa,KAA2C,CAAC;AAC/D,QAAA,MAAM,qBAAqB,KAAoD,CAAC;AAChF,QAAA,MAAM,qBAAqB,KAA6C,CAAC"}
@@ -1,12 +1,72 @@
1
- "use strict";
2
- const base = require("./base");
3
- const config = {
4
- ...base,
5
- env: { browser: true, es2021: true },
6
- extends: [
7
- ...base.extends,
8
- 'plugin:@angular-eslint/recommended',
9
- ],
10
- };
11
- module.exports = config;
1
+ const ngxBaseConfig = require('./base');
2
+ const angularPlugin = require('@angular-eslint/eslint-plugin');
3
+ const angularTemplatePlugin = require('@angular-eslint/eslint-plugin-template');
4
+ const angularTemplateParser = require('@angular-eslint/template-parser');
5
+ /**
6
+ * Rulesets For Dynamo Based Systems
7
+ * NGX: Angular Projects
8
+ * ESLint v9 Flat Config Format
9
+ */
10
+ module.exports = [
11
+ ...ngxBaseConfig,
12
+ {
13
+ files: ['**/*.ts', '**/*.tsx'],
14
+ languageOptions: {
15
+ ...ngxBaseConfig[1].languageOptions,
16
+ globals: {
17
+ // Angular globals
18
+ window: 'readonly',
19
+ document: 'readonly',
20
+ console: 'readonly',
21
+ process: 'readonly',
22
+ Buffer: 'readonly',
23
+ global: 'readonly',
24
+ __dirname: 'readonly',
25
+ __filename: 'readonly',
26
+ module: 'readonly',
27
+ require: 'readonly',
28
+ exports: 'readonly'
29
+ }
30
+ },
31
+ plugins: {
32
+ ...ngxBaseConfig[1].plugins,
33
+ '@angular-eslint': angularPlugin,
34
+ },
35
+ rules: {
36
+ ...ngxBaseConfig[1].rules,
37
+ // Angular-specific rules
38
+ '@angular-eslint/directive-selector': 'error',
39
+ '@angular-eslint/component-selector': 'error',
40
+ '@angular-eslint/no-conflicting-lifecycle': 'error',
41
+ '@angular-eslint/no-host-metadata-property': 'error',
42
+ '@angular-eslint/no-input-rename': 'error',
43
+ '@angular-eslint/no-output-rename': 'error',
44
+ '@angular-eslint/no-outputs-metadata-property': 'error',
45
+ '@angular-eslint/use-lifecycle-interface': 'error',
46
+ '@angular-eslint/use-pipe-transform-interface': 'error',
47
+ },
48
+ },
49
+ {
50
+ files: ['**/*.html'],
51
+ languageOptions: {
52
+ parser: angularTemplateParser,
53
+ parserOptions: {
54
+ ecmaVersion: 'latest',
55
+ sourceType: 'module',
56
+ },
57
+ },
58
+ plugins: {
59
+ '@angular-eslint/template': angularTemplatePlugin,
60
+ },
61
+ rules: {
62
+ '@angular-eslint/template/banana-in-box': 'error',
63
+ '@angular-eslint/template/cyclomatic-complexity': 'error',
64
+ '@angular-eslint/template/eqeqeq': 'error',
65
+ '@angular-eslint/template/no-call-expression': 'error',
66
+ '@angular-eslint/template/no-duplicate-attributes': 'error',
67
+ '@angular-eslint/template/no-negated-async': 'error',
68
+ '@angular-eslint/template/use-track-by-function': 'error',
69
+ },
70
+ },
71
+ ];
12
72
  //# sourceMappingURL=ngx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx.js","sourceRoot":"","sources":["../../src/configs/ngx.ts"],"names":[],"mappings":";AAAA,+BAAgC;AAEhC,MAAM,MAAM,GAAG;IACb,GAAG,IAAI;IACP,GAAG,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACpC,OAAO,EAAE;QACP,GAAG,IAAI,CAAC,OAAO;QACf,oCAAoC;KACrC;CACF,CAAC;AAEF,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"ngx.js","sourceRoot":"","sources":["../../src/configs/ngx.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACxC,MAAM,aAAa,GAAG,OAAO,CAAC,+BAA+B,CAAC,CAAC;AAC/D,MAAM,qBAAqB,GAAG,OAAO,CAAC,wCAAwC,CAAC,CAAC;AAChF,MAAM,qBAAqB,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEzE;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG;IACf,GAAG,aAAa;IAChB;QACE,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAC9B,eAAe,EAAE;YACf,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,eAAe;YACnC,OAAO,EAAE;gBACP,kBAAkB;gBAClB,MAAM,EAAE,UAAU;gBAClB,QAAQ,EAAE,UAAU;gBACpB,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,UAAU;gBACnB,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,UAAU;gBAClB,SAAS,EAAE,UAAU;gBACrB,UAAU,EAAE,UAAU;gBACtB,MAAM,EAAE,UAAU;gBAClB,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,UAAU;aACpB;SACF;QACD,OAAO,EAAE;YACP,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,OAAO;YAC3B,iBAAiB,EAAE,aAAa;SACjC;QACD,KAAK,EAAE;YACL,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK;YACzB,yBAAyB;YACzB,oCAAoC,EAAE,OAAO;YAC7C,oCAAoC,EAAE,OAAO;YAC7C,0CAA0C,EAAE,OAAO;YACnD,2CAA2C,EAAE,OAAO;YACpD,iCAAiC,EAAE,OAAO;YAC1C,kCAAkC,EAAE,OAAO;YAC3C,8CAA8C,EAAE,OAAO;YACvD,yCAAyC,EAAE,OAAO;YAClD,8CAA8C,EAAE,OAAO;SACxD;KACF;IACD;QACE,KAAK,EAAE,CAAC,WAAW,CAAC;QACpB,eAAe,EAAE;YACf,MAAM,EAAE,qBAAqB;YAC7B,aAAa,EAAE;gBACb,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;aACrB;SACF;QACD,OAAO,EAAE;YACP,0BAA0B,EAAE,qBAAqB;SAClD;QACD,KAAK,EAAE;YACL,wCAAwC,EAAE,OAAO;YACjD,gDAAgD,EAAE,OAAO;YACzD,iCAAiC,EAAE,OAAO;YAC1C,6CAA6C,EAAE,OAAO;YACtD,kDAAkD,EAAE,OAAO;YAC3D,2CAA2C,EAAE,OAAO;YACpD,gDAAgD,EAAE,OAAO;SAC1D;KACF;CACF,CAAC"}
@@ -1,83 +1,2 @@
1
- declare const config: {
2
- rules: {
3
- '@typescript-eslint/ban-types': string;
4
- '@typescript-eslint/no-explicit-any': string;
5
- 'max-lines': (string | number)[];
6
- 'no-warning-comments': (string | {
7
- terms: string[];
8
- location: string;
9
- })[];
10
- indent: (string | number | {
11
- SwitchCase: number;
12
- })[];
13
- 'max-len': (string | {
14
- code: number;
15
- comments: number;
16
- })[];
17
- 'linebreak-style': string;
18
- semi: string[];
19
- 'no-unused-vars': string;
20
- 'no-prototype-builtins': string;
21
- 'no-empty': string;
22
- 'comma-dangle': (string | {
23
- arrays: string;
24
- objects: string;
25
- functions: string;
26
- imports: string;
27
- exports: string;
28
- })[];
29
- 'brace-style': (string | {
30
- allowSingleLine: boolean;
31
- })[];
32
- 'object-curly-spacing': string[];
33
- 'array-bracket-spacing': (string | {
34
- objectsInArrays: boolean;
35
- arraysInArrays: boolean;
36
- })[];
37
- 'padding-line-between-statements': (string | {
38
- blankLine: string;
39
- prev: string;
40
- next: string[];
41
- } | {
42
- blankLine: string;
43
- prev: string[];
44
- next: string;
45
- } | {
46
- blankLine: string;
47
- prev: string[];
48
- next: string[];
49
- })[];
50
- 'prefer-const': string;
51
- 'no-case-declarations': string;
52
- 'no-fallthrough': string;
53
- 'keyword-spacing': string;
54
- 'no-else-return': string;
55
- 'no-duplicate-imports': string;
56
- 'max-params': (string | number)[];
57
- 'max-params-no-constructor/max-params-no-constructor': (string | number)[];
58
- quotes: (string | {
59
- allowTemplateLiterals: boolean;
60
- })[];
61
- '@typescript-eslint/quotes': (string | {
62
- allowTemplateLiterals: boolean;
63
- })[];
64
- '@typescript-eslint/no-unused-vars': string;
65
- '@typescript-eslint/explicit-function-return-type': (string | {
66
- allowTypedFunctionExpressions: boolean;
67
- })[];
68
- '@typescript-eslint/typedef': string;
69
- };
70
- env: {
71
- node: boolean;
72
- es2021: boolean;
73
- };
74
- parserOptions: {
75
- sourceType: string;
76
- ecmaVersion: string;
77
- };
78
- parser: string;
79
- plugins: string[];
80
- extends: string[];
81
- };
82
- export = config;
1
+ declare const ntsConfig: any;
83
2
  //# sourceMappingURL=nts-package.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nts-package.d.ts","sourceRoot":"","sources":["../../src/configs/nts-package.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOX,CAAC;AAEF,SAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"nts-package.d.ts","sourceRoot":"","sources":["../../src/configs/nts-package.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS,KAAmB,CAAC"}
@@ -1,12 +1,18 @@
1
- "use strict";
2
- const nts = require("./nts");
3
- const config = {
4
- ...nts,
5
- rules: {
6
- ...nts.rules,
7
- '@typescript-eslint/ban-types': 'off',
8
- '@typescript-eslint/no-explicit-any': 'off',
1
+ const ntsConfig = require('./nts');
2
+ /**
3
+ * Rulesets For Dynamo Based Systems
4
+ * NTS-PACKAGE: Node TypeScript Package
5
+ * ESLint v9 Flat Config Format
6
+ */
7
+ module.exports = [
8
+ ...ntsConfig,
9
+ {
10
+ files: ['**/*.ts', '**/*.tsx'],
11
+ rules: {
12
+ ...ntsConfig[1].rules,
13
+ '@typescript-eslint/ban-types': 'off',
14
+ '@typescript-eslint/no-explicit-any': 'off',
15
+ },
9
16
  },
10
- };
11
- module.exports = config;
17
+ ];
12
18
  //# sourceMappingURL=nts-package.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nts-package.js","sourceRoot":"","sources":["../../src/configs/nts-package.ts"],"names":[],"mappings":";AAAA,6BAA8B;AAE9B,MAAM,MAAM,GAAG;IACb,GAAG,GAAG;IACN,KAAK,EAAE;QACL,GAAG,GAAG,CAAC,KAAK;QACZ,8BAA8B,EAAE,KAAK;QACrC,oCAAoC,EAAE,KAAK;KAC5C;CACF,CAAC;AAEF,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"nts-package.js","sourceRoot":"","sources":["../../src/configs/nts-package.ts"],"names":[],"mappings":"AAAA,MAAM,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEnC;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG;IACf,GAAG,SAAS;IACZ;QACE,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAC9B,KAAK,EAAE;YACL,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK;YACrB,8BAA8B,EAAE,KAAK;YACrC,oCAAoC,EAAE,KAAK;SAC5C;KACF;CACF,CAAC"}
@@ -1,82 +1,2 @@
1
- declare const config: {
2
- env: {
3
- node: boolean;
4
- es2021: boolean;
5
- };
6
- parserOptions: {
7
- sourceType: string;
8
- ecmaVersion: string;
9
- };
10
- rules: {
11
- 'max-lines': (string | number)[];
12
- 'no-warning-comments': (string | {
13
- terms: string[];
14
- location: string;
15
- })[];
16
- indent: (string | number | {
17
- SwitchCase: number;
18
- })[];
19
- 'max-len': (string | {
20
- code: number;
21
- comments: number;
22
- })[];
23
- 'linebreak-style': string;
24
- semi: string[];
25
- 'no-unused-vars': string;
26
- 'no-prototype-builtins': string;
27
- 'no-empty': string;
28
- 'comma-dangle': (string | {
29
- arrays: string;
30
- objects: string;
31
- functions: string;
32
- imports: string;
33
- exports: string;
34
- })[];
35
- 'brace-style': (string | {
36
- allowSingleLine: boolean;
37
- })[];
38
- 'object-curly-spacing': string[];
39
- 'array-bracket-spacing': (string | {
40
- objectsInArrays: boolean;
41
- arraysInArrays: boolean;
42
- })[];
43
- 'padding-line-between-statements': (string | {
44
- blankLine: string;
45
- prev: string;
46
- next: string[];
47
- } | {
48
- blankLine: string;
49
- prev: string[];
50
- next: string;
51
- } | {
52
- blankLine: string;
53
- prev: string[];
54
- next: string[];
55
- })[];
56
- 'prefer-const': string;
57
- 'no-case-declarations': string;
58
- 'no-fallthrough': string;
59
- 'keyword-spacing': string;
60
- 'no-else-return': string;
61
- 'no-duplicate-imports': string;
62
- 'max-params': (string | number)[];
63
- 'max-params-no-constructor/max-params-no-constructor': (string | number)[];
64
- quotes: (string | {
65
- allowTemplateLiterals: boolean;
66
- })[];
67
- '@typescript-eslint/quotes': (string | {
68
- allowTemplateLiterals: boolean;
69
- })[];
70
- '@typescript-eslint/no-unused-vars': string;
71
- '@typescript-eslint/explicit-function-return-type': (string | {
72
- allowTypedFunctionExpressions: boolean;
73
- })[];
74
- '@typescript-eslint/no-explicit-any': string;
75
- '@typescript-eslint/typedef': string;
76
- };
77
- parser: string;
78
- plugins: string[];
79
- extends: string[];
80
- };
81
- export = config;
1
+ declare const ntsBaseConfig: any;
82
2
  //# sourceMappingURL=nts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nts.d.ts","sourceRoot":"","sources":["../../src/configs/nts.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQX,CAAC;AAEF,SAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"nts.d.ts","sourceRoot":"","sources":["../../src/configs/nts.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,KAAoB,CAAC"}
@@ -1,13 +1,32 @@
1
- "use strict";
2
- const base = require("./base");
3
- const config = {
4
- ...base,
5
- env: { node: true, es2021: true },
6
- parserOptions: { ...base.parserOptions, sourceType: 'module' },
7
- rules: {
8
- ...base.rules,
9
- 'max-lines': ['warn', 1500],
1
+ const ntsBaseConfig = require('./base');
2
+ /**
3
+ * Rulesets For Dynamo Based Systems
4
+ * NTS: Node TypeScript
5
+ * ESLint v9 Flat Config Format
6
+ */
7
+ module.exports = [
8
+ ...ntsBaseConfig,
9
+ {
10
+ files: ['**/*.ts', '**/*.tsx'],
11
+ languageOptions: {
12
+ ...ntsBaseConfig[1].languageOptions,
13
+ globals: {
14
+ // Node.js globals
15
+ process: 'readonly',
16
+ Buffer: 'readonly',
17
+ global: 'readonly',
18
+ __dirname: 'readonly',
19
+ __filename: 'readonly',
20
+ module: 'readonly',
21
+ require: 'readonly',
22
+ exports: 'readonly',
23
+ console: 'readonly'
24
+ }
25
+ },
26
+ rules: {
27
+ ...ntsBaseConfig[1].rules,
28
+ 'max-lines': ['warn', 1500],
29
+ },
10
30
  },
11
- };
12
- module.exports = config;
31
+ ];
13
32
  //# sourceMappingURL=nts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nts.js","sourceRoot":"","sources":["../../src/configs/nts.ts"],"names":[],"mappings":";AAAA,+BAAgC;AAEhC,MAAM,MAAM,GAAG;IACb,GAAG,IAAI;IACP,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACjC,aAAa,EAAE,EAAE,GAAG,IAAI,CAAC,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE;IAC9D,KAAK,EAAE;QACL,GAAG,IAAI,CAAC,KAAK;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;KAC5B;CACF,CAAC;AAEF,iBAAS,MAAM,CAAC"}
1
+ {"version":3,"file":"nts.js","sourceRoot":"","sources":["../../src/configs/nts.ts"],"names":[],"mappings":"AAAA,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,OAAO,GAAG;IACf,GAAG,aAAa;IAChB;QACE,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;QAC9B,eAAe,EAAE;YACf,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,eAAe;YACnC,OAAO,EAAE;gBACP,kBAAkB;gBAClB,OAAO,EAAE,UAAU;gBACnB,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,UAAU;gBAClB,SAAS,EAAE,UAAU;gBACrB,UAAU,EAAE,UAAU;gBACtB,MAAM,EAAE,UAAU;gBAClB,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,UAAU;gBACnB,OAAO,EAAE,UAAU;aACpB;SACF;QACD,KAAK,EAAE;YACL,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK;YACzB,WAAW,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC;SAC5B;KACF;CACF,CAAC"}
@@ -1,12 +1,16 @@
1
1
  declare const _default: {
2
2
  rules: {
3
3
  'import-order': import("eslint").Rule.RuleModule;
4
+ 'no-import-type': import("eslint").Rule.RuleModule;
5
+ 'no-js-import': import("eslint").Rule.RuleModule;
4
6
  'naming-patterns': import("eslint").Rule.RuleModule;
5
7
  };
6
8
  configs: {
7
9
  recommended: {
8
10
  rules: {
9
11
  '@futdevpro/dynamo/import-order': string;
12
+ '@futdevpro/dynamo/no-import-type': string;
13
+ '@futdevpro/dynamo/no-js-import': string;
10
14
  '@futdevpro/dynamo/naming-patterns': string;
11
15
  };
12
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAGA,kBAaE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAKA,kBAmBE"}
@@ -1,16 +1,22 @@
1
1
  "use strict";
2
2
  const tslib_1 = require("tslib");
3
- const import_order_1 = tslib_1.__importDefault(require("./rules/import-order"));
3
+ const import_order_1 = tslib_1.__importDefault(require("./rules/import/import-order"));
4
4
  const naming_patterns_1 = tslib_1.__importDefault(require("./rules/naming-patterns"));
5
+ const no_import_type_1 = tslib_1.__importDefault(require("./rules/import/no-import-type"));
6
+ const no_js_import_1 = tslib_1.__importDefault(require("./rules/import/no-js-import"));
5
7
  module.exports = {
6
8
  rules: {
7
9
  'import-order': import_order_1.default,
10
+ 'no-import-type': no_import_type_1.default,
11
+ 'no-js-import': no_js_import_1.default,
8
12
  'naming-patterns': naming_patterns_1.default,
9
13
  },
10
14
  configs: {
11
15
  recommended: {
12
16
  rules: {
13
17
  '@futdevpro/dynamo/import-order': 'warn',
18
+ '@futdevpro/dynamo/no-import-type': 'warn',
19
+ '@futdevpro/dynamo/no-js-import': 'warn',
14
20
  '@futdevpro/dynamo/naming-patterns': 'warn',
15
21
  },
16
22
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":";;AAAA,gFAAmD;AACnD,sFAAyD;AAEzD,iBAAS;IACP,KAAK,EAAE;QACL,cAAc,EAAE,sBAAe;QAC/B,iBAAiB,EAAE,yBAAkB;KACtC;IACD,OAAO,EAAE;QACP,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,gCAAgC,EAAE,MAAM;gBACxC,mCAAmC,EAAE,MAAM;aAC5C;SACF;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugin/index.ts"],"names":[],"mappings":";;AAAA,uFAA0D;AAC1D,sFAAyD;AACzD,2FAA6D;AAC7D,uFAA4D;AAE5D,iBAAS;IACP,KAAK,EAAE;QACL,cAAc,EAAE,sBAAe;QAC/B,gBAAgB,EAAE,wBAAgB;QAClC,cAAc,EAAE,sBAAiB;QAEjC,iBAAiB,EAAE,yBAAkB;KACtC;IACD,OAAO,EAAE;QACP,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,gCAAgC,EAAE,MAAM;gBACxC,kCAAkC,EAAE,MAAM;gBAC1C,gCAAgC,EAAE,MAAM;gBAExC,mCAAmC,EAAE,MAAM;aAC5C;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
4
+ //# sourceMappingURL=import-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-order.d.ts","sourceRoot":"","sources":["../../../../src/plugin/rules/import/import-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAO9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA6JhB,CAAC;AAEF,eAAe,IAAI,CAAC"}