@perfective/eslint-config 0.29.2 → 0.31.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 (200) hide show
  1. package/LICENSE +1 -1
  2. package/README.adoc +198 -67
  3. package/README.md +62 -45
  4. package/config/array-func/array-func-config.d.ts +2 -0
  5. package/config/array-func/array-func-config.js +16 -0
  6. package/config/cypress/cypress-config.d.ts +10 -0
  7. package/config/cypress/cypress-config.js +38 -0
  8. package/config/cypress/index.d.ts +1 -0
  9. package/config/cypress/index.js +1 -0
  10. package/config/eslint/eslint-config.d.ts +2 -0
  11. package/config/eslint/eslint-config.js +8 -0
  12. package/config/eslint/layout-formatting-rules.d.ts +2 -0
  13. package/config/eslint/layout-formatting-rules.js +64 -0
  14. package/config/eslint/possible-problems-rules.d.ts +2 -0
  15. package/config/eslint/possible-problems-rules.js +96 -0
  16. package/config/eslint/suggestions-rules.d.ts +2 -0
  17. package/config/eslint/suggestions-rules.js +181 -0
  18. package/config/eslint-comments/best-practices-rules.d.ts +2 -0
  19. package/config/eslint-comments/best-practices-rules.js +8 -0
  20. package/config/eslint-comments/eslint-comments-config.d.ts +2 -0
  21. package/config/eslint-comments/eslint-comments-config.js +11 -0
  22. package/config/eslint-comments/stylistic-issues-rules.d.ts +2 -0
  23. package/config/eslint-comments/stylistic-issues-rules.js +9 -0
  24. package/config/import/helpful-warnings-rules.d.ts +2 -0
  25. package/config/import/helpful-warnings-rules.js +11 -0
  26. package/config/import/import-config.d.ts +4 -0
  27. package/config/import/import-config.js +46 -0
  28. package/config/import/index.d.ts +1 -0
  29. package/config/import/index.js +1 -0
  30. package/config/import/module-systems-rules.d.ts +2 -0
  31. package/config/import/module-systems-rules.js +10 -0
  32. package/config/import/rules/no-extraneous-dependencies.d.ts +15 -0
  33. package/config/import/rules/no-extraneous-dependencies.js +8 -0
  34. package/config/import/static-analysis-rules.d.ts +2 -0
  35. package/config/import/static-analysis-rules.js +26 -0
  36. package/config/import/style-guide-rules.d.ts +2 -0
  37. package/config/import/style-guide-rules.js +33 -0
  38. package/config/jest/index.d.ts +1 -0
  39. package/config/jest/index.js +1 -0
  40. package/config/jest/jest-config.d.ts +8 -0
  41. package/config/jest/jest-config.js +128 -0
  42. package/config/jest/typescript-eslint-jest-rules.d.ts +2 -0
  43. package/config/jest/typescript-eslint-jest-rules.js +5 -0
  44. package/config/jest-dom/index.d.ts +1 -0
  45. package/config/jest-dom/index.js +1 -0
  46. package/config/jest-dom/jest-dom-config.d.ts +8 -0
  47. package/config/jest-dom/jest-dom-config.js +23 -0
  48. package/config/jsdoc/jsdoc-config.d.ts +3 -0
  49. package/config/jsdoc/jsdoc-config.js +179 -0
  50. package/config/node/node-config.d.ts +2 -0
  51. package/config/node/node-config.js +66 -0
  52. package/config/perfective-eslint-config.d.ts +6 -0
  53. package/config/perfective-eslint-config.js +45 -0
  54. package/config/prefer-arrow/prefer-arrow-config.d.ts +2 -0
  55. package/config/prefer-arrow/prefer-arrow-config.js +16 -0
  56. package/config/promise/promise-config.d.ts +2 -0
  57. package/config/promise/promise-config.js +37 -0
  58. package/config/rxjs/index.d.ts +1 -0
  59. package/config/rxjs/index.js +1 -0
  60. package/config/rxjs/rxjs-config.d.ts +8 -0
  61. package/config/rxjs/rxjs-config.js +67 -0
  62. package/config/security/security-config.d.ts +2 -0
  63. package/config/security/security-config.js +24 -0
  64. package/config/simple-import-sort/index.d.ts +1 -0
  65. package/config/simple-import-sort/index.js +1 -0
  66. package/config/simple-import-sort/rules/imports.d.ts +28 -0
  67. package/config/simple-import-sort/rules/imports.js +32 -0
  68. package/config/simple-import-sort/simple-import-sort-config.d.ts +2 -0
  69. package/config/simple-import-sort/simple-import-sort-config.js +13 -0
  70. package/config/stylistic/js/stylistic-js-config.d.ts +2 -0
  71. package/config/stylistic/js/stylistic-js-config.js +200 -0
  72. package/config/stylistic/jsx/stylistic-jsx-config.d.ts +2 -0
  73. package/config/stylistic/jsx/stylistic-jsx-config.js +87 -0
  74. package/config/stylistic/plus/stylistic-plus-config.d.ts +2 -0
  75. package/config/stylistic/plus/stylistic-plus-config.js +16 -0
  76. package/config/stylistic/ts/stylistic-ts-config.d.ts +2 -0
  77. package/config/stylistic/ts/stylistic-ts-config.js +141 -0
  78. package/config/testing-library/index.d.ts +1 -0
  79. package/config/testing-library/index.js +1 -0
  80. package/config/testing-library/testing-library-config.d.ts +8 -0
  81. package/config/testing-library/testing-library-config.js +45 -0
  82. package/config/typescript-eslint/extension-rules.d.ts +2 -0
  83. package/config/typescript-eslint/extension-rules.js +113 -0
  84. package/config/typescript-eslint/index.d.ts +1 -0
  85. package/config/typescript-eslint/index.js +1 -0
  86. package/{rules → config}/typescript-eslint/rules/typescript-eslint-naming-convention.d.ts +39 -0
  87. package/config/typescript-eslint/rules/typescript-eslint-naming-convention.js +26 -0
  88. package/config/typescript-eslint/supported-rules.d.ts +2 -0
  89. package/config/typescript-eslint/supported-rules.js +260 -0
  90. package/config/typescript-eslint/typescript-eslint-config.d.ts +2 -0
  91. package/config/typescript-eslint/typescript-eslint-config.js +15 -0
  92. package/config/unicorn/index.d.ts +1 -0
  93. package/config/unicorn/index.js +1 -0
  94. package/{rules → config}/unicorn/rules/prevent-abbreviations.d.ts +20 -0
  95. package/config/unicorn/rules/prevent-abbreviations.js +30 -0
  96. package/config/unicorn/unicorn-config.d.ts +2 -0
  97. package/config/unicorn/unicorn-config.js +185 -0
  98. package/index.d.ts +5 -1732
  99. package/index.js +5 -146
  100. package/linter/glob.d.ts +59 -0
  101. package/linter/glob.js +8 -0
  102. package/linter/language-options.d.ts +25 -0
  103. package/linter/language-options.js +45 -0
  104. package/linter/linter-config.d.ts +13 -0
  105. package/linter/linter-config.js +6 -0
  106. package/linter/node.d.ts +10 -0
  107. package/linter/node.js +7 -0
  108. package/linter/plugin.d.ts +15 -0
  109. package/linter/plugin.js +26 -0
  110. package/package.json +45 -45
  111. package/config/node.d.ts +0 -1
  112. package/config/node.js +0 -11
  113. package/config/plugin.d.ts +0 -2
  114. package/config/plugin.js +0 -30
  115. package/config.d.ts +0 -1
  116. package/config.js +0 -6
  117. package/cypress.d.ts +0 -1
  118. package/cypress.js +0 -56
  119. package/jest-dom.d.ts +0 -1
  120. package/jest-dom.js +0 -11
  121. package/jest.d.ts +0 -1
  122. package/jest.js +0 -24
  123. package/rules/array-func/index.d.ts +0 -14
  124. package/rules/array-func/index.js +0 -50
  125. package/rules/cypress/index.d.ts +0 -21
  126. package/rules/cypress/index.js +0 -57
  127. package/rules/eslint/index.d.ts +0 -339
  128. package/rules/eslint/index.js +0 -9
  129. package/rules/eslint/layout-formatting.d.ts +0 -64
  130. package/rules/eslint/layout-formatting.js +0 -67
  131. package/rules/eslint/possible-problems.d.ts +0 -96
  132. package/rules/eslint/possible-problems.js +0 -99
  133. package/rules/eslint/suggestions.d.ts +0 -181
  134. package/rules/eslint/suggestions.js +0 -182
  135. package/rules/eslint-comments/best-practices.d.ts +0 -8
  136. package/rules/eslint-comments/best-practices.js +0 -11
  137. package/rules/eslint-comments/index.d.ts +0 -21
  138. package/rules/eslint-comments/index.js +0 -45
  139. package/rules/eslint-comments/stylistic-issues.d.ts +0 -9
  140. package/rules/eslint-comments/stylistic-issues.js +0 -18
  141. package/rules/import/helpful-warnings.d.ts +0 -10
  142. package/rules/import/helpful-warnings.js +0 -14
  143. package/rules/import/index.d.ts +0 -78
  144. package/rules/import/index.js +0 -14
  145. package/rules/import/module-systems.d.ts +0 -10
  146. package/rules/import/module-systems.js +0 -13
  147. package/rules/import/rules/no-extraneous-dependencies.d.ts +0 -11
  148. package/rules/import/rules/no-extraneous-dependencies.js +0 -24
  149. package/rules/import/static-analysis.d.ts +0 -26
  150. package/rules/import/static-analysis.js +0 -29
  151. package/rules/import/style-guide.d.ts +0 -33
  152. package/rules/import/style-guide.js +0 -36
  153. package/rules/jest/index.d.ts +0 -124
  154. package/rules/jest/index.js +0 -72
  155. package/rules/jest/typescript-eslint.d.ts +0 -5
  156. package/rules/jest/typescript-eslint.js +0 -8
  157. package/rules/jest-dom/index.d.ts +0 -32
  158. package/rules/jest-dom/index.js +0 -55
  159. package/rules/jsdoc/index.d.ts +0 -134
  160. package/rules/jsdoc/index.js +0 -347
  161. package/rules/n/index.d.ts +0 -66
  162. package/rules/n/index.js +0 -98
  163. package/rules/prefer-arrow/index.d.ts +0 -14
  164. package/rules/prefer-arrow/index.js +0 -50
  165. package/rules/promise/index.d.ts +0 -35
  166. package/rules/promise/index.js +0 -73
  167. package/rules/rxjs/index.d.ts +0 -60
  168. package/rules/rxjs/index.js +0 -96
  169. package/rules/security/index.d.ts +0 -22
  170. package/rules/security/index.js +0 -58
  171. package/rules/simple-import-sort/index.d.ts +0 -10
  172. package/rules/simple-import-sort/index.js +0 -48
  173. package/rules/simple-import-sort/rules/imports.d.ts +0 -8
  174. package/rules/simple-import-sort/rules/imports.js +0 -46
  175. package/rules/stylistic/js/index.d.ts +0 -197
  176. package/rules/stylistic/js/index.js +0 -236
  177. package/rules/stylistic/jsx/index.d.ts +0 -81
  178. package/rules/stylistic/jsx/index.js +0 -117
  179. package/rules/stylistic/plus/index.d.ts +0 -14
  180. package/rules/stylistic/plus/index.js +0 -50
  181. package/rules/stylistic/ts/index.d.ts +0 -135
  182. package/rules/stylistic/ts/index.js +0 -169
  183. package/rules/testing-library/index.d.ts +0 -62
  184. package/rules/testing-library/index.js +0 -77
  185. package/rules/typescript-eslint/extension-rules.d.ts +0 -113
  186. package/rules/typescript-eslint/extension-rules.js +0 -116
  187. package/rules/typescript-eslint/index.d.ts +0 -369
  188. package/rules/typescript-eslint/index.js +0 -45
  189. package/rules/typescript-eslint/rules/typescript-eslint-naming-convention.js +0 -32
  190. package/rules/typescript-eslint/supported-rules.d.ts +0 -253
  191. package/rules/typescript-eslint/supported-rules.js +0 -319
  192. package/rules/unicorn/index.d.ts +0 -178
  193. package/rules/unicorn/index.js +0 -209
  194. package/rules/unicorn/rules/prevent-abbreviations.js +0 -8
  195. package/rules.d.ts +0 -4
  196. package/rules.js +0 -14
  197. package/rxjs.d.ts +0 -1
  198. package/rxjs.js +0 -58
  199. package/testing-library.d.ts +0 -1
  200. package/testing-library.js +0 -11
@@ -1,50 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.preferArrowConfig = void 0;
37
- const eslintPluginPreferArrow = __importStar(require("eslint-plugin-prefer-arrow"));
38
- exports.preferArrowConfig = {
39
- plugins: {
40
- 'prefer-arrow': eslintPluginPreferArrow,
41
- },
42
- rules: {
43
- 'prefer-arrow/prefer-arrow-functions': ['error', {
44
- allowStandaloneDeclarations: true,
45
- classPropertiesAllowed: false,
46
- disallowPrototype: false,
47
- singleReturnOnly: false,
48
- }],
49
- },
50
- };
@@ -1,35 +0,0 @@
1
- import * as eslintPluginPromise from 'eslint-plugin-promise';
2
- export declare const promiseConfig: {
3
- plugins: {
4
- promise: typeof eslintPluginPromise;
5
- };
6
- rules: {
7
- 'promise/catch-or-return': (string | {
8
- allowThen: boolean;
9
- allowThenStrict: boolean;
10
- allowFinally: boolean;
11
- })[];
12
- 'promise/no-return-wrap': string;
13
- 'promise/param-names': string;
14
- 'promise/always-return': (string | {
15
- ignoreAssignmentVariable: string[];
16
- })[];
17
- 'promise/no-multiple-resolved': string;
18
- 'promise/no-native': string;
19
- 'promise/no-nesting': string;
20
- 'promise/no-promise-in-callback': string;
21
- 'promise/no-callback-in-promise': (string | {
22
- timeoutsErr: boolean;
23
- })[];
24
- 'promise/avoid-new': string;
25
- 'promise/no-new-statics': string;
26
- 'promise/no-return-in-finally': string;
27
- 'promise/prefer-catch': string;
28
- 'promise/spec-only': (string | {
29
- allowedMethods: never[];
30
- })[];
31
- 'promise/valid-params': string;
32
- 'promise/prefer-await-to-then': string;
33
- 'promise/prefer-await-to-callbacks': string;
34
- };
35
- };
@@ -1,73 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.promiseConfig = void 0;
37
- const eslintPluginPromise = __importStar(require("eslint-plugin-promise"));
38
- exports.promiseConfig = {
39
- plugins: {
40
- promise: eslintPluginPromise,
41
- },
42
- rules: {
43
- 'promise/catch-or-return': ['error', {
44
- allowThen: false,
45
- allowThenStrict: false,
46
- allowFinally: true,
47
- }],
48
- 'promise/no-return-wrap': 'error',
49
- 'promise/param-names': 'warn',
50
- 'promise/always-return': ['error', {
51
- ignoreAssignmentVariable: [
52
- 'globalThis',
53
- ],
54
- }],
55
- 'promise/no-multiple-resolved': 'error',
56
- 'promise/no-native': 'off',
57
- 'promise/no-nesting': 'error',
58
- 'promise/no-promise-in-callback': 'error',
59
- 'promise/no-callback-in-promise': ['error', {
60
- timeoutsErr: false,
61
- }],
62
- 'promise/avoid-new': 'off',
63
- 'promise/no-new-statics': 'warn',
64
- 'promise/no-return-in-finally': 'error',
65
- 'promise/prefer-catch': 'warn',
66
- 'promise/spec-only': ['error', {
67
- allowedMethods: [],
68
- }],
69
- 'promise/valid-params': 'error',
70
- 'promise/prefer-await-to-then': 'off',
71
- 'promise/prefer-await-to-callbacks': 'off',
72
- },
73
- };
@@ -1,60 +0,0 @@
1
- import * as eslintPluginRxjs from '@smarttools/eslint-plugin-rxjs';
2
- export declare const rxjsConfig: {
3
- plugins: {
4
- '@smarttools/rxjs': typeof eslintPluginRxjs;
5
- };
6
- rules: {
7
- '@smarttools/rxjs/ban-observables': string;
8
- '@smarttools/rxjs/ban-operators': (string | {
9
- tap: boolean;
10
- })[];
11
- '@smarttools/rxjs/finnish': (string | {
12
- functions: boolean;
13
- methods: boolean;
14
- names: {};
15
- parameters: boolean;
16
- properties: boolean;
17
- strict: boolean;
18
- types: {};
19
- variables: boolean;
20
- })[];
21
- '@smarttools/rxjs/just': string;
22
- '@smarttools/rxjs/no-async-subscribe': string;
23
- '@smarttools/rxjs/no-compat': string;
24
- '@smarttools/rxjs/no-connectable': string;
25
- '@smarttools/rxjs/no-create': string;
26
- '@smarttools/rxjs/no-cyclic-action': string;
27
- '@smarttools/rxjs/no-explicit-generics': string;
28
- '@smarttools/rxjs/no-exposed-subjects': string;
29
- '@smarttools/rxjs/no-finnish': string;
30
- '@smarttools/rxjs/no-ignored-error': string;
31
- '@smarttools/rxjs/no-ignored-notifier': string;
32
- '@smarttools/rxjs/no-ignored-observable': string;
33
- '@smarttools/rxjs/no-ignored-replay-buffer': string;
34
- '@smarttools/rxjs/no-ignored-subscribe': string;
35
- '@smarttools/rxjs/no-ignored-subscription': string;
36
- '@smarttools/rxjs/no-ignored-takewhile-value': string;
37
- '@smarttools/rxjs/no-implicit-any-catch': (string | {
38
- allowExplicitAny: boolean;
39
- })[];
40
- '@smarttools/rxjs/no-index': string;
41
- '@smarttools/rxjs/no-internal': string;
42
- '@smarttools/rxjs/no-nested-subscribe': string;
43
- '@smarttools/rxjs/no-redundant-notify': string;
44
- '@smarttools/rxjs/no-sharereplay': string;
45
- '@smarttools/rxjs/no-subclass': string;
46
- '@smarttools/rxjs/no-subject-unsubscribe': string;
47
- '@smarttools/rxjs/no-subject-value': string;
48
- '@smarttools/rxjs/no-subscribe-handlers': string;
49
- '@smarttools/rxjs/no-topromise': string;
50
- '@smarttools/rxjs/no-unbound-methods': string;
51
- '@smarttools/rxjs/no-unsafe-catch': string;
52
- '@smarttools/rxjs/no-unsafe-first': string;
53
- '@smarttools/rxjs/no-unsafe-subject-next': string;
54
- '@smarttools/rxjs/no-unsafe-switchmap': string;
55
- '@smarttools/rxjs/no-unsafe-takeuntil': string;
56
- '@smarttools/rxjs/prefer-observer': string;
57
- '@smarttools/rxjs/suffix-subjects': string;
58
- '@smarttools/rxjs/throw-error': string;
59
- };
60
- };
@@ -1,96 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.rxjsConfig = void 0;
37
- const eslintPluginRxjs = __importStar(require("@smarttools/eslint-plugin-rxjs"));
38
- exports.rxjsConfig = {
39
- plugins: {
40
- '@smarttools/rxjs': eslintPluginRxjs,
41
- },
42
- rules: {
43
- '@smarttools/rxjs/ban-observables': 'error',
44
- '@smarttools/rxjs/ban-operators': ['error', {
45
- tap: false,
46
- }],
47
- '@smarttools/rxjs/finnish': ['error', {
48
- functions: true,
49
- methods: true,
50
- names: {},
51
- parameters: true,
52
- properties: true,
53
- strict: true,
54
- types: {},
55
- variables: true,
56
- }],
57
- '@smarttools/rxjs/just': 'off',
58
- '@smarttools/rxjs/no-async-subscribe': 'error',
59
- '@smarttools/rxjs/no-compat': 'error',
60
- '@smarttools/rxjs/no-connectable': 'error',
61
- '@smarttools/rxjs/no-create': 'error',
62
- '@smarttools/rxjs/no-cyclic-action': 'error',
63
- '@smarttools/rxjs/no-explicit-generics': 'off',
64
- '@smarttools/rxjs/no-exposed-subjects': 'error',
65
- '@smarttools/rxjs/no-finnish': 'off',
66
- '@smarttools/rxjs/no-ignored-error': 'error',
67
- '@smarttools/rxjs/no-ignored-notifier': 'error',
68
- '@smarttools/rxjs/no-ignored-observable': 'error',
69
- '@smarttools/rxjs/no-ignored-replay-buffer': 'error',
70
- '@smarttools/rxjs/no-ignored-subscribe': 'error',
71
- '@smarttools/rxjs/no-ignored-subscription': 'error',
72
- '@smarttools/rxjs/no-ignored-takewhile-value': 'error',
73
- '@smarttools/rxjs/no-implicit-any-catch': ['off', {
74
- allowExplicitAny: false,
75
- }],
76
- '@smarttools/rxjs/no-index': 'error',
77
- '@smarttools/rxjs/no-internal': 'warn',
78
- '@smarttools/rxjs/no-nested-subscribe': 'error',
79
- '@smarttools/rxjs/no-redundant-notify': 'error',
80
- '@smarttools/rxjs/no-sharereplay': 'off',
81
- '@smarttools/rxjs/no-subclass': 'error',
82
- '@smarttools/rxjs/no-subject-unsubscribe': 'error',
83
- '@smarttools/rxjs/no-subject-value': 'error',
84
- '@smarttools/rxjs/no-subscribe-handlers': 'off',
85
- '@smarttools/rxjs/no-topromise': 'error',
86
- '@smarttools/rxjs/no-unbound-methods': 'error',
87
- '@smarttools/rxjs/no-unsafe-catch': 'error',
88
- '@smarttools/rxjs/no-unsafe-first': 'error',
89
- '@smarttools/rxjs/no-unsafe-subject-next': 'error',
90
- '@smarttools/rxjs/no-unsafe-switchmap': 'error',
91
- '@smarttools/rxjs/no-unsafe-takeuntil': 'error',
92
- '@smarttools/rxjs/prefer-observer': 'off',
93
- '@smarttools/rxjs/suffix-subjects': 'off',
94
- '@smarttools/rxjs/throw-error': 'error',
95
- },
96
- };
@@ -1,22 +0,0 @@
1
- import * as eslintPluginSecurity from 'eslint-plugin-security';
2
- export declare const securityConfig: {
3
- plugins: {
4
- security: typeof eslintPluginSecurity;
5
- };
6
- rules: {
7
- 'security/detect-bidi-characters': string;
8
- 'security/detect-buffer-noassert': string;
9
- 'security/detect-child-process': string;
10
- 'security/detect-disable-mustache-escape': string;
11
- 'security/detect-eval-with-expression': string;
12
- 'security/detect-new-buffer': string;
13
- 'security/detect-no-csrf-before-method-override': string;
14
- 'security/detect-non-literal-fs-filename': string;
15
- 'security/detect-non-literal-regexp': string;
16
- 'security/detect-non-literal-require': string;
17
- 'security/detect-object-injection': string;
18
- 'security/detect-possible-timing-attacks': string;
19
- 'security/detect-pseudoRandomBytes': string;
20
- 'security/detect-unsafe-regex': string;
21
- };
22
- };
@@ -1,58 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.securityConfig = void 0;
37
- const eslintPluginSecurity = __importStar(require("eslint-plugin-security"));
38
- exports.securityConfig = {
39
- plugins: {
40
- security: eslintPluginSecurity,
41
- },
42
- rules: {
43
- 'security/detect-bidi-characters': 'error',
44
- 'security/detect-buffer-noassert': 'error',
45
- 'security/detect-child-process': 'error',
46
- 'security/detect-disable-mustache-escape': 'error',
47
- 'security/detect-eval-with-expression': 'error',
48
- 'security/detect-new-buffer': 'error',
49
- 'security/detect-no-csrf-before-method-override': 'error',
50
- 'security/detect-non-literal-fs-filename': 'error',
51
- 'security/detect-non-literal-regexp': 'error',
52
- 'security/detect-non-literal-require': 'error',
53
- 'security/detect-object-injection': 'error',
54
- 'security/detect-possible-timing-attacks': 'error',
55
- 'security/detect-pseudoRandomBytes': 'error',
56
- 'security/detect-unsafe-regex': 'error',
57
- },
58
- };
@@ -1,10 +0,0 @@
1
- export declare const simpleImportSortConfig: {
2
- files: string[];
3
- plugins: {
4
- 'simple-import-sort': import("eslint").ESLint.Plugin;
5
- };
6
- rules: {
7
- 'simple-import-sort/exports': string;
8
- 'simple-import-sort/imports': (string | import("./rules/imports").SimpleImportSortImports)[];
9
- };
10
- };
@@ -1,48 +0,0 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.simpleImportSortConfig = void 0;
37
- const eslintPluginSimpleImportSort = __importStar(require("eslint-plugin-simple-import-sort"));
38
- const imports_1 = require("./rules/imports");
39
- exports.simpleImportSortConfig = {
40
- files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
41
- plugins: {
42
- 'simple-import-sort': eslintPluginSimpleImportSort,
43
- },
44
- rules: {
45
- 'simple-import-sort/exports': 'warn',
46
- 'simple-import-sort/imports': ['warn', (0, imports_1.simpleImportSortImports)()],
47
- },
48
- };
@@ -1,8 +0,0 @@
1
- export type Match = string;
2
- export type Group = Match[];
3
- export interface SimpleImportSortImports {
4
- groups: Group[];
5
- }
6
- export declare function simpleImportSortImports(internal?: string[]): SimpleImportSortImports;
7
- export declare function scopedPackages(exclude: string[]): Group;
8
- export declare function internalPackages(internal: string[]): Group[];
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.simpleImportSortImports = simpleImportSortImports;
4
- exports.scopedPackages = scopedPackages;
5
- exports.internalPackages = internalPackages;
6
- function simpleImportSortImports(internal = []) {
7
- return {
8
- groups: [
9
- sideEffects(),
10
- nodePrefixedModules(),
11
- unscopedPackages(),
12
- scopedPackages(internal),
13
- ...internalPackages(internal),
14
- parentImports(),
15
- relativeImports(),
16
- styleImports(),
17
- ].filter(group => group.length > 0),
18
- };
19
- }
20
- function sideEffects() {
21
- return ['^\\u0000'];
22
- }
23
- function nodePrefixedModules() {
24
- return ['^node:'];
25
- }
26
- function unscopedPackages() {
27
- return ['^[a-zA-Z]'];
28
- }
29
- function scopedPackages(exclude) {
30
- if (exclude.length === 0) {
31
- return ['^@'];
32
- }
33
- return [`^(?!${exclude.join('|')})@`];
34
- }
35
- function internalPackages(internal) {
36
- return internal.map(scope => [`^${scope}`]);
37
- }
38
- function parentImports() {
39
- return ['^\\.\\.(?!/?$)', '^\\.\\./?$'];
40
- }
41
- function relativeImports() {
42
- return ['^\\./(?=.*/)(?!/?$)', '^\\.(?!/?$)', '^\\./?$'];
43
- }
44
- function styleImports() {
45
- return ['^.+\\.s?css$'];
46
- }