@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
package/jest.js DELETED
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.jestConfig = jestConfig;
4
- const no_extraneous_dependencies_1 = require("./rules/import/rules/no-extraneous-dependencies");
5
- const jest_1 = require("./rules/jest");
6
- function jestConfig(files = ['**/*.@(spec|test).[jt]s?(x)']) {
7
- return {
8
- files,
9
- plugins: jest_1.jestConfig.plugins,
10
- rules: Object.assign(Object.assign({}, jest_1.jestConfig.rules), { '@typescript-eslint/ban-ts-comment': ['error', {
11
- 'ts-expect-error': 'allow-with-description',
12
- 'ts-ignore': true,
13
- 'ts-nocheck': true,
14
- 'ts-check': false,
15
- }], '@typescript-eslint/init-declarations': 'off', '@typescript-eslint/unbound-method': 'off', 'import/no-extraneous-dependencies': ['error', (0, no_extraneous_dependencies_1.jestImportNoExtraneousDependencies)()], 'import/no-unassigned-import': ['error', {
16
- allow: [
17
- '@testing-library/jest-dom',
18
- '@testing-library/jest-dom/extend-expect',
19
- ],
20
- }], 'max-nested-callbacks': ['error', 6], 'n/no-unpublished-import': ['error', {
21
- allowModules: ['@jest/globals'],
22
- }], 'prefer-arrow/prefer-arrow-functions': 'off', 'promise/always-return': 'off', '@smarttools/rxjs/no-topromise': 'off' }),
23
- };
24
- }
@@ -1,14 +0,0 @@
1
- import * as eslintPluginArrayFunc from 'eslint-plugin-array-func';
2
- export declare const arrayFuncConfig: {
3
- plugins: {
4
- 'array-func': typeof eslintPluginArrayFunc;
5
- };
6
- rules: {
7
- 'array-func/from-map': string;
8
- 'array-func/no-unnecessary-this-arg': string;
9
- 'array-func/prefer-array-from': string;
10
- 'array-func/avoid-reverse': string;
11
- 'array-func/prefer-flat-map': string;
12
- 'array-func/prefer-flat': string;
13
- };
14
- };
@@ -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.arrayFuncConfig = void 0;
37
- const eslintPluginArrayFunc = __importStar(require("eslint-plugin-array-func"));
38
- exports.arrayFuncConfig = {
39
- plugins: {
40
- 'array-func': eslintPluginArrayFunc,
41
- },
42
- rules: {
43
- 'array-func/from-map': 'warn',
44
- 'array-func/no-unnecessary-this-arg': 'error',
45
- 'array-func/prefer-array-from': 'warn',
46
- 'array-func/avoid-reverse': 'warn',
47
- 'array-func/prefer-flat-map': 'off',
48
- 'array-func/prefer-flat': 'off',
49
- },
50
- };
@@ -1,21 +0,0 @@
1
- import * as eslintPluginCypress from 'eslint-plugin-cypress/flat';
2
- export declare const cypressOptionalConfig: {
3
- plugins: {
4
- cypress: typeof eslintPluginCypress;
5
- };
6
- languageOptions: {
7
- globals: Record<string, unknown>;
8
- };
9
- rules: {
10
- 'cypress/assertion-before-screenshot': string;
11
- 'cypress/no-assigning-return-values': string;
12
- 'cypress/no-async-before': string;
13
- 'cypress/no-async-tests': string;
14
- 'cypress/no-debug': string;
15
- 'cypress/no-force': string;
16
- 'cypress/no-pause': string;
17
- 'cypress/no-unnecessary-waiting': string;
18
- 'cypress/require-data-selectors': string;
19
- 'cypress/unsafe-to-chain-command': string;
20
- };
21
- };
@@ -1,57 +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.cypressOptionalConfig = void 0;
37
- const eslintPluginCypress = __importStar(require("eslint-plugin-cypress/flat"));
38
- exports.cypressOptionalConfig = {
39
- plugins: {
40
- cypress: eslintPluginCypress,
41
- },
42
- languageOptions: {
43
- globals: eslintPluginCypress.configs.globals.languageOptions.globals,
44
- },
45
- rules: {
46
- 'cypress/assertion-before-screenshot': 'error',
47
- 'cypress/no-assigning-return-values': 'error',
48
- 'cypress/no-async-before': 'error',
49
- 'cypress/no-async-tests': 'error',
50
- 'cypress/no-debug': 'error',
51
- 'cypress/no-force': 'error',
52
- 'cypress/no-pause': 'error',
53
- 'cypress/no-unnecessary-waiting': 'error',
54
- 'cypress/require-data-selectors': 'error',
55
- 'cypress/unsafe-to-chain-command': 'error',
56
- },
57
- };
@@ -1,339 +0,0 @@
1
- export declare const eslintConfig: {
2
- rules: {
3
- 'array-bracket-newline': string;
4
- 'array-bracket-spacing': string;
5
- 'array-element-newline': string;
6
- 'arrow-parens': string;
7
- 'arrow-spacing': string;
8
- 'block-spacing': string;
9
- 'brace-style': string;
10
- 'comma-dangle': string;
11
- 'comma-spacing': string;
12
- 'comma-style': string;
13
- 'computed-property-spacing': string;
14
- 'dot-location': string;
15
- 'eol-last': string;
16
- 'func-call-spacing': string;
17
- 'function-call-argument-newline': string;
18
- 'function-paren-newline': string;
19
- 'generator-star-spacing': string;
20
- 'implicit-arrow-linebreak': string;
21
- indent: string;
22
- 'jsx-quotes': string;
23
- 'key-spacing': string;
24
- 'keyword-spacing': string;
25
- 'line-comment-position': string;
26
- 'linebreak-style': string;
27
- 'lines-around-comment': string;
28
- 'lines-between-class-members': string;
29
- 'max-len': string;
30
- 'max-statements-per-line': string;
31
- 'multiline-ternary': string;
32
- 'new-parens': string;
33
- 'newline-per-chained-call': string;
34
- 'no-extra-parens': string;
35
- 'no-mixed-spaces-and-tabs': string;
36
- 'no-multi-spaces': string;
37
- 'no-multiple-empty-lines': string;
38
- 'no-tabs': string;
39
- 'no-trailing-spaces': string;
40
- 'no-whitespace-before-property': string;
41
- 'nonblock-statement-body-position': string;
42
- 'object-curly-newline': string;
43
- 'object-curly-spacing': string;
44
- 'object-property-newline': string;
45
- 'operator-linebreak': string;
46
- 'padded-blocks': string;
47
- 'padding-line-between-statements': string;
48
- quotes: string;
49
- 'rest-spread-spacing': string;
50
- semi: string;
51
- 'semi-spacing': string;
52
- 'semi-style': string;
53
- 'space-before-blocks': string;
54
- 'space-before-function-paren': string;
55
- 'space-in-parens': string;
56
- 'space-infix-ops': string;
57
- 'space-unary-ops': string;
58
- 'switch-colon-spacing': string;
59
- 'template-curly-spacing': string;
60
- 'template-tag-spacing': string;
61
- 'unicode-bom': string[];
62
- 'wrap-iife': string;
63
- 'wrap-regex': string;
64
- 'yield-star-spacing': string;
65
- 'accessor-pairs': string;
66
- 'arrow-body-style': string[];
67
- 'block-scoped-var': string;
68
- camelcase: string;
69
- 'capitalized-comments': (string | {
70
- ignorePattern: string;
71
- ignoreConsecutiveComments: boolean;
72
- })[];
73
- 'class-methods-use-this': string;
74
- complexity: (string | number)[];
75
- 'consistent-return': string;
76
- 'consistent-this': string[];
77
- curly: string[];
78
- 'default-case': string;
79
- 'default-case-last': string;
80
- 'default-param-last': string;
81
- 'dot-notation': (string | {
82
- allowKeywords: boolean;
83
- })[];
84
- eqeqeq: string[];
85
- 'func-name-matching': string[];
86
- 'func-names': string[];
87
- 'func-style': string[];
88
- 'grouped-accessor-pairs': string[];
89
- 'guard-for-in': string;
90
- 'id-denylist': string[];
91
- 'id-length': string;
92
- 'id-match': string;
93
- 'init-declarations': string[];
94
- 'logical-assignment-operators': (string | {
95
- enforceForIfStatements: boolean;
96
- })[];
97
- 'max-classes-per-file': (string | number)[];
98
- 'max-depth': (string | number)[];
99
- 'max-lines': string;
100
- 'max-lines-per-function': string;
101
- 'max-nested-callbacks': (string | number)[];
102
- 'max-params': (string | {
103
- max: number;
104
- })[];
105
- 'max-statements': (string | {
106
- max: number;
107
- })[];
108
- 'multiline-comment-style': string;
109
- 'new-cap': (string | {
110
- newIsCap: boolean;
111
- capIsNew: boolean;
112
- properties: boolean;
113
- })[];
114
- 'no-alert': string;
115
- 'no-array-constructor': string;
116
- 'no-bitwise': string;
117
- 'no-caller': string;
118
- 'no-case-declarations': string;
119
- 'no-confusing-arrow': string;
120
- 'no-console': string;
121
- 'no-continue': string;
122
- 'no-delete-var': string;
123
- 'no-div-regex': string;
124
- 'no-else-return': (string | {
125
- allowElseIf: boolean;
126
- })[];
127
- 'no-empty': string;
128
- 'no-empty-function': string;
129
- 'no-empty-static-block': string;
130
- 'no-eq-null': string;
131
- 'no-eval': string;
132
- 'no-extend-native': string;
133
- 'no-extra-bind': string;
134
- 'no-extra-boolean-cast': (string | {
135
- enforceForInnerExpressions: boolean;
136
- })[];
137
- 'no-extra-label': string;
138
- 'no-extra-semi': string;
139
- 'no-floating-decimal': string;
140
- 'no-global-assign': string;
141
- 'no-implicit-coercion': string;
142
- 'no-implicit-globals': string;
143
- 'no-implied-eval': string;
144
- 'no-inline-comments': (string | {
145
- ignorePattern: string;
146
- })[];
147
- 'no-invalid-this': string;
148
- 'no-iterator': string;
149
- 'no-label-var': string;
150
- 'no-labels': string;
151
- 'no-lone-blocks': string;
152
- 'no-lonely-if': string;
153
- 'no-loop-func': string;
154
- 'no-magic-numbers': string;
155
- 'no-mixed-operators': string;
156
- 'no-multi-assign': string;
157
- 'no-multi-str': string;
158
- 'no-negated-condition': string;
159
- 'no-nested-ternary': string;
160
- 'no-new': string;
161
- 'no-new-func': string;
162
- 'no-new-object': string;
163
- 'no-new-wrappers': string;
164
- 'no-nonoctal-decimal-escape': string;
165
- 'no-object-constructor': string;
166
- 'no-octal': string;
167
- 'no-octal-escape': string;
168
- 'no-param-reassign': string;
169
- 'no-plusplus': (string | {
170
- allowForLoopAfterthoughts: boolean;
171
- })[];
172
- 'no-proto': string;
173
- 'no-redeclare': string;
174
- 'no-regex-spaces': string;
175
- 'no-restricted-exports': string;
176
- 'no-restricted-globals': string;
177
- 'no-restricted-imports': string;
178
- 'no-restricted-properties': string;
179
- 'no-restricted-syntax': string[];
180
- 'no-return-assign': string;
181
- 'no-script-url': string;
182
- 'no-sequences': (string | {
183
- allowInParentheses: boolean;
184
- })[];
185
- 'no-shadow': string;
186
- 'no-shadow-restricted-names': string;
187
- 'no-ternary': string;
188
- 'no-throw-literal': string;
189
- 'no-undef-init': string;
190
- 'no-undefined': string;
191
- 'no-underscore-dangle': (string | {
192
- allowAfterSuper: boolean;
193
- allowAfterThis: boolean;
194
- allowAfterThisConstructor: boolean;
195
- allowFunctionParams: boolean;
196
- enforceInMethodNames: boolean;
197
- enforceInClassFields: boolean;
198
- })[];
199
- 'no-unneeded-ternary': string;
200
- 'no-unused-expressions': string;
201
- 'no-unused-labels': string;
202
- 'no-useless-call': string;
203
- 'no-useless-catch': string;
204
- 'no-useless-computed-key': string;
205
- 'no-useless-concat': string;
206
- 'no-useless-constructor': string;
207
- 'no-useless-escape': string;
208
- 'no-useless-rename': string;
209
- 'no-useless-return': string;
210
- 'no-var': string;
211
- 'no-void': string;
212
- 'no-warning-comments': string;
213
- 'no-with': string;
214
- 'object-shorthand': string[];
215
- 'one-var': string[];
216
- 'one-var-declaration-per-line': string;
217
- 'operator-assignment': string[];
218
- 'prefer-arrow-callback': string;
219
- 'prefer-const': string;
220
- 'prefer-destructuring': string;
221
- 'prefer-exponentiation-operator': string;
222
- 'prefer-named-capture-group': string;
223
- 'prefer-numeric-literals': string;
224
- 'prefer-object-has-own': string;
225
- 'prefer-object-spread': string;
226
- 'prefer-promise-reject-errors': string;
227
- 'prefer-regex-literals': string;
228
- 'prefer-rest-params': string;
229
- 'prefer-spread': string;
230
- 'prefer-template': string;
231
- 'quote-props': string;
232
- radix: string;
233
- 'require-await': string;
234
- 'require-unicode-regexp': string;
235
- 'require-yield': string;
236
- 'sort-imports': string;
237
- 'sort-keys': string;
238
- 'sort-vars': string;
239
- 'spaced-comment': string;
240
- strict: string;
241
- 'symbol-description': string;
242
- 'vars-on-top': string;
243
- yoda: string[];
244
- 'array-callback-return': (string | {
245
- allowImplicit: boolean;
246
- checkForEach: boolean;
247
- allowVoid: boolean;
248
- })[];
249
- 'constructor-super': string;
250
- 'for-direction': string;
251
- 'getter-return': string;
252
- 'no-async-promise-executor': string;
253
- 'no-await-in-loop': string;
254
- 'no-class-assign': string;
255
- 'no-compare-neg-zero': string;
256
- 'no-cond-assign': string[];
257
- 'no-const-assign': string;
258
- 'no-constant-binary-expression': string;
259
- 'no-constant-condition': string;
260
- 'no-constructor-return': string;
261
- 'no-control-regex': string;
262
- 'no-debugger': string;
263
- 'no-dupe-args': string;
264
- 'no-dupe-class-members': string;
265
- 'no-dupe-else-if': string;
266
- 'no-dupe-keys': string;
267
- 'no-duplicate-case': string;
268
- 'no-duplicate-imports': (string | {
269
- includeExports: boolean;
270
- })[];
271
- 'no-empty-character-class': string;
272
- 'no-empty-pattern': string;
273
- 'no-ex-assign': string;
274
- 'no-fallthrough': (string | {
275
- allowEmptyCase: boolean;
276
- reportUnusedFallthroughComment: boolean;
277
- })[];
278
- 'no-func-assign': string;
279
- 'no-import-assign': string;
280
- 'no-inner-declarations': string;
281
- 'no-invalid-regexp': string;
282
- 'no-irregular-whitespace': (string | {
283
- skipStrings: boolean;
284
- skipComments: boolean;
285
- skipRegExps: boolean;
286
- skipTemplates: boolean;
287
- skipJSXText: boolean;
288
- })[];
289
- 'no-loss-of-precision': string;
290
- 'no-misleading-character-class': (string | {
291
- allowEscape: boolean;
292
- })[];
293
- 'no-new-native-nonconstructor': string;
294
- 'no-new-symbol': string;
295
- 'no-obj-calls': string;
296
- 'no-promise-executor-return': string;
297
- 'no-prototype-builtins': string;
298
- 'no-self-assign': string;
299
- 'no-self-compare': string;
300
- 'no-setter-return': string;
301
- 'no-sparse-arrays': string;
302
- 'no-template-curly-in-string': string;
303
- 'no-this-before-super': string;
304
- 'no-undef': string;
305
- 'no-unexpected-multiline': string;
306
- 'no-unmodified-loop-condition': string;
307
- 'no-unreachable': string;
308
- 'no-unreachable-loop': string;
309
- 'no-unsafe-finally': string;
310
- 'no-unsafe-negation': string;
311
- 'no-unsafe-optional-chaining': string;
312
- 'no-unused-private-class-members': string;
313
- 'no-unused-vars': (string | {
314
- args: string;
315
- argsIgnorePattern: string;
316
- caughtErrors: string;
317
- destructuredArrayIgnorePattern: string;
318
- ignoreClassWithStaticInitBlock: boolean;
319
- ignoreRestSiblings: boolean;
320
- reportUsedIgnorePattern: boolean;
321
- vars: string;
322
- })[];
323
- 'no-use-before-define': (string | {
324
- functions: boolean;
325
- classes: boolean;
326
- variables: boolean;
327
- allowNamedExports: boolean;
328
- })[];
329
- 'no-useless-backreference': string;
330
- 'no-useless-assignment': string;
331
- 'require-atomic-updates': (string | {
332
- allowProperties: boolean;
333
- })[];
334
- 'use-isnan': string;
335
- 'valid-typeof': (string | {
336
- requireStringLiterals: boolean;
337
- })[];
338
- };
339
- };
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eslintConfig = void 0;
4
- const layout_formatting_1 = require("./layout-formatting");
5
- const possible_problems_1 = require("./possible-problems");
6
- const suggestions_1 = require("./suggestions");
7
- exports.eslintConfig = {
8
- rules: Object.assign(Object.assign(Object.assign({}, possible_problems_1.eslintPossibleProblemsRules), suggestions_1.eslintSuggestionsRules), layout_formatting_1.eslintLayoutFormattingRules),
9
- };
@@ -1,64 +0,0 @@
1
- export declare const eslintLayoutFormattingRules: {
2
- 'array-bracket-newline': string;
3
- 'array-bracket-spacing': string;
4
- 'array-element-newline': string;
5
- 'arrow-parens': string;
6
- 'arrow-spacing': string;
7
- 'block-spacing': string;
8
- 'brace-style': string;
9
- 'comma-dangle': string;
10
- 'comma-spacing': string;
11
- 'comma-style': string;
12
- 'computed-property-spacing': string;
13
- 'dot-location': string;
14
- 'eol-last': string;
15
- 'func-call-spacing': string;
16
- 'function-call-argument-newline': string;
17
- 'function-paren-newline': string;
18
- 'generator-star-spacing': string;
19
- 'implicit-arrow-linebreak': string;
20
- indent: string;
21
- 'jsx-quotes': string;
22
- 'key-spacing': string;
23
- 'keyword-spacing': string;
24
- 'line-comment-position': string;
25
- 'linebreak-style': string;
26
- 'lines-around-comment': string;
27
- 'lines-between-class-members': string;
28
- 'max-len': string;
29
- 'max-statements-per-line': string;
30
- 'multiline-ternary': string;
31
- 'new-parens': string;
32
- 'newline-per-chained-call': string;
33
- 'no-extra-parens': string;
34
- 'no-mixed-spaces-and-tabs': string;
35
- 'no-multi-spaces': string;
36
- 'no-multiple-empty-lines': string;
37
- 'no-tabs': string;
38
- 'no-trailing-spaces': string;
39
- 'no-whitespace-before-property': string;
40
- 'nonblock-statement-body-position': string;
41
- 'object-curly-newline': string;
42
- 'object-curly-spacing': string;
43
- 'object-property-newline': string;
44
- 'operator-linebreak': string;
45
- 'padded-blocks': string;
46
- 'padding-line-between-statements': string;
47
- quotes: string;
48
- 'rest-spread-spacing': string;
49
- semi: string;
50
- 'semi-spacing': string;
51
- 'semi-style': string;
52
- 'space-before-blocks': string;
53
- 'space-before-function-paren': string;
54
- 'space-in-parens': string;
55
- 'space-infix-ops': string;
56
- 'space-unary-ops': string;
57
- 'switch-colon-spacing': string;
58
- 'template-curly-spacing': string;
59
- 'template-tag-spacing': string;
60
- 'unicode-bom': string[];
61
- 'wrap-iife': string;
62
- 'wrap-regex': string;
63
- 'yield-star-spacing': string;
64
- };
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.eslintLayoutFormattingRules = void 0;
4
- exports.eslintLayoutFormattingRules = {
5
- 'array-bracket-newline': 'off',
6
- 'array-bracket-spacing': 'off',
7
- 'array-element-newline': 'off',
8
- 'arrow-parens': 'off',
9
- 'arrow-spacing': 'off',
10
- 'block-spacing': 'off',
11
- 'brace-style': 'off',
12
- 'comma-dangle': 'off',
13
- 'comma-spacing': 'off',
14
- 'comma-style': 'off',
15
- 'computed-property-spacing': 'off',
16
- 'dot-location': 'off',
17
- 'eol-last': 'off',
18
- 'func-call-spacing': 'off',
19
- 'function-call-argument-newline': 'off',
20
- 'function-paren-newline': 'off',
21
- 'generator-star-spacing': 'off',
22
- 'implicit-arrow-linebreak': 'off',
23
- 'indent': 'off',
24
- 'jsx-quotes': 'off',
25
- 'key-spacing': 'off',
26
- 'keyword-spacing': 'off',
27
- 'line-comment-position': 'off',
28
- 'linebreak-style': 'off',
29
- 'lines-around-comment': 'off',
30
- 'lines-between-class-members': 'off',
31
- 'max-len': 'off',
32
- 'max-statements-per-line': 'off',
33
- 'multiline-ternary': 'off',
34
- 'new-parens': 'off',
35
- 'newline-per-chained-call': 'off',
36
- 'no-extra-parens': 'off',
37
- 'no-mixed-spaces-and-tabs': 'off',
38
- 'no-multi-spaces': 'off',
39
- 'no-multiple-empty-lines': 'off',
40
- 'no-tabs': 'off',
41
- 'no-trailing-spaces': 'off',
42
- 'no-whitespace-before-property': 'off',
43
- 'nonblock-statement-body-position': 'off',
44
- 'object-curly-newline': 'off',
45
- 'object-curly-spacing': 'off',
46
- 'object-property-newline': 'off',
47
- 'operator-linebreak': 'off',
48
- 'padded-blocks': 'off',
49
- 'padding-line-between-statements': 'off',
50
- 'quotes': 'off',
51
- 'rest-spread-spacing': 'off',
52
- 'semi': 'off',
53
- 'semi-spacing': 'off',
54
- 'semi-style': 'off',
55
- 'space-before-blocks': 'off',
56
- 'space-before-function-paren': 'off',
57
- 'space-in-parens': 'off',
58
- 'space-infix-ops': 'off',
59
- 'space-unary-ops': 'off',
60
- 'switch-colon-spacing': 'off',
61
- 'template-curly-spacing': 'off',
62
- 'template-tag-spacing': 'off',
63
- 'unicode-bom': ['warn', 'never'],
64
- 'wrap-iife': 'off',
65
- 'wrap-regex': 'off',
66
- 'yield-star-spacing': 'off',
67
- };