@perfective/eslint-config 0.27.1 → 0.29.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 (49) hide show
  1. package/README.adoc +45 -48
  2. package/README.md +43 -26
  3. package/config/plugin.d.ts +0 -3
  4. package/config/plugin.js +0 -24
  5. package/config.d.ts +1 -1
  6. package/config.js +1 -4
  7. package/cypress.js +58 -0
  8. package/index.js +120 -123
  9. package/jest-dom.js +11 -0
  10. package/jest.js +24 -0
  11. package/package.json +39 -20
  12. package/rules/array-func/index.js +40 -4
  13. package/rules/cypress/index.js +55 -12
  14. package/rules/eslint/index.js +7 -6
  15. package/rules/eslint/layout-formatting.js +65 -65
  16. package/rules/eslint/possible-problems.js +97 -89
  17. package/rules/eslint/suggestions.js +180 -178
  18. package/rules/eslint-comments/best-practices.js +9 -9
  19. package/rules/eslint-comments/index.js +43 -8
  20. package/rules/eslint-comments/stylistic-issues.js +16 -16
  21. package/rules/import/helpful-warnings.js +11 -11
  22. package/rules/import/index.js +12 -10
  23. package/rules/import/module-systems.js +11 -11
  24. package/rules/import/static-analysis.js +27 -27
  25. package/rules/import/style-guide.js +34 -34
  26. package/rules/jest/index.js +53 -78
  27. package/rules/jest/typescript-eslint.js +6 -6
  28. package/rules/jest-dom/index.js +40 -4
  29. package/rules/jsdoc/index.js +42 -4
  30. package/rules/n/index.js +40 -4
  31. package/rules/prefer-arrow/index.js +40 -4
  32. package/rules/promise/index.js +54 -7
  33. package/rules/rxjs/index.js +79 -44
  34. package/rules/security/index.js +40 -4
  35. package/rules/simple-import-sort/index.js +41 -4
  36. package/rules/stylistic/js/index.js +40 -4
  37. package/rules/stylistic/jsx/index.js +41 -5
  38. package/rules/stylistic/plus/index.js +40 -4
  39. package/rules/stylistic/ts/index.js +40 -4
  40. package/rules/testing-library/index.js +40 -4
  41. package/rules/typescript-eslint/extension-rules.js +114 -114
  42. package/rules/typescript-eslint/index.js +43 -8
  43. package/rules/typescript-eslint/supported-rules.js +315 -314
  44. package/rules/unicorn/index.js +40 -4
  45. package/rxjs.js +58 -0
  46. package/testing-library.js +11 -0
  47. package/rules/sonarjs/bug-detection.js +0 -15
  48. package/rules/sonarjs/code-smell-detection.js +0 -27
  49. package/rules/sonarjs/index.js +0 -10
@@ -1,14 +1,50 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- 'rxjs',
5
- ],
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
+ },
6
42
  rules: {
7
- 'rxjs/ban-observables': 'error',
8
- 'rxjs/ban-operators': ['error', {
43
+ '@smarttools/rxjs/ban-observables': 'error',
44
+ '@smarttools/rxjs/ban-operators': ['error', {
9
45
  tap: false,
10
46
  }],
11
- 'rxjs/finnish': ['error', {
47
+ '@smarttools/rxjs/finnish': ['error', {
12
48
  functions: true,
13
49
  methods: true,
14
50
  names: {},
@@ -18,44 +54,43 @@ module.exports = {
18
54
  types: {},
19
55
  variables: true,
20
56
  }],
21
- 'rxjs/just': 'off',
22
- 'rxjs/no-async-subscribe': 'error',
23
- 'rxjs/no-compat': 'error',
24
- 'rxjs/no-connectable': 'error',
25
- 'rxjs/no-create': 'error',
26
- 'rxjs/no-cyclic-action': 'error',
27
- 'rxjs/no-explicit-generics': 'off',
28
- 'rxjs/no-exposed-subjects': 'error',
29
- 'rxjs/no-finnish': 'off',
30
- 'rxjs/no-ignored-error': 'error',
31
- 'rxjs/no-ignored-notifier': 'error',
32
- 'rxjs/no-ignored-observable': 'error',
33
- 'rxjs/no-ignored-replay-buffer': 'error',
34
- 'rxjs/no-ignored-subscribe': 'error',
35
- 'rxjs/no-ignored-subscription': 'error',
36
- 'rxjs/no-ignored-takewhile-value': 'error',
37
- 'rxjs/no-implicit-any-catch': ['off', {
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', {
38
74
  allowExplicitAny: false,
39
75
  }],
40
- 'rxjs/no-index': 'error',
41
- 'rxjs/no-internal': 'warn',
42
- 'rxjs/no-nested-subscribe': 'error',
43
- 'rxjs/no-redundant-notify': 'error',
44
- 'rxjs/no-sharereplay': 'off',
45
- 'rxjs/no-subclass': 'error',
46
- 'rxjs/no-subject-unsubscribe': 'error',
47
- 'rxjs/no-subject-value': 'error',
48
- 'rxjs/no-subscribe-handlers': 'off',
49
- 'rxjs/no-tap': 'off',
50
- 'rxjs/no-topromise': 'error',
51
- 'rxjs/no-unbound-methods': 'error',
52
- 'rxjs/no-unsafe-catch': 'error',
53
- 'rxjs/no-unsafe-first': 'error',
54
- 'rxjs/no-unsafe-subject-next': 'error',
55
- 'rxjs/no-unsafe-switchmap': 'error',
56
- 'rxjs/no-unsafe-takeuntil': 'error',
57
- 'rxjs/prefer-observer': 'off',
58
- 'rxjs/suffix-subjects': 'off',
59
- 'rxjs/throw-error': 'error',
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',
60
95
  },
61
96
  };
@@ -1,8 +1,44 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- 'security',
5
- ],
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
+ },
6
42
  rules: {
7
43
  'security/detect-bidi-characters': 'error',
8
44
  'security/detect-buffer-noassert': 'error',
@@ -1,9 +1,46 @@
1
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"));
2
38
  const imports_1 = require("./rules/imports");
3
- module.exports = {
4
- plugins: [
5
- 'simple-import-sort',
6
- ],
39
+ exports.simpleImportSortConfig = {
40
+ files: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx'],
41
+ plugins: {
42
+ 'simple-import-sort': eslintPluginSimpleImportSort,
43
+ },
7
44
  rules: {
8
45
  'simple-import-sort/exports': 'warn',
9
46
  'simple-import-sort/imports': ['warn', (0, imports_1.simpleImportSortImports)()],
@@ -1,8 +1,44 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- '@stylistic/js',
5
- ],
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.stylisticJsConfig = void 0;
37
+ const eslintPluginStylisticJs = __importStar(require("@stylistic/eslint-plugin-js"));
38
+ exports.stylisticJsConfig = {
39
+ plugins: {
40
+ '@stylistic/js': eslintPluginStylisticJs,
41
+ },
6
42
  rules: {
7
43
  '@stylistic/js/array-bracket-newline': ['warn', 'consistent'],
8
44
  '@stylistic/js/array-bracket-spacing': ['warn', 'never'],
@@ -1,8 +1,44 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- '@stylistic/jsx',
5
- ],
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.stylisticJsxConfig = void 0;
37
+ const eslintPluginStylisticJsx = __importStar(require("@stylistic/eslint-plugin-jsx"));
38
+ exports.stylisticJsxConfig = {
39
+ plugins: {
40
+ '@stylistic/jsx': eslintPluginStylisticJsx,
41
+ },
6
42
  rules: {
7
43
  '@stylistic/jsx/jsx-child-element-spacing': 'error',
8
44
  '@stylistic/jsx/jsx-closing-bracket-location': ['warn', {
@@ -41,7 +77,7 @@ module.exports = {
41
77
  '@stylistic/jsx/jsx-one-expression-per-line': ['warn', {
42
78
  allow: 'single-child',
43
79
  }],
44
- '@stylistic/jsx/pascal-case': ['error', {
80
+ '@stylistic/jsx/jsx-pascal-case': ['error', {
45
81
  allowAllCaps: false,
46
82
  allowLeadingUnderscore: false,
47
83
  allowNamespace: false,
@@ -1,8 +1,44 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- '@stylistic/plus',
5
- ],
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.stylisticPlusConfig = void 0;
37
+ const eslintPluginStylisticPlus = __importStar(require("@stylistic/eslint-plugin-plus"));
38
+ exports.stylisticPlusConfig = {
39
+ plugins: {
40
+ '@stylistic/plus': eslintPluginStylisticPlus,
41
+ },
6
42
  rules: {
7
43
  '@stylistic/plus/curly-newline': ['warn', {
8
44
  minElements: 1,
@@ -1,8 +1,44 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- '@stylistic/ts',
5
- ],
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.stylisticTsConfig = void 0;
37
+ const eslintPluginStylisticTs = __importStar(require("@stylistic/eslint-plugin-ts"));
38
+ exports.stylisticTsConfig = {
39
+ plugins: {
40
+ '@stylistic/ts': eslintPluginStylisticTs,
41
+ },
6
42
  rules: {
7
43
  '@stylistic/js/block-spacing': 'off',
8
44
  '@stylistic/ts/block-spacing': ['warn', 'always'],
@@ -1,8 +1,44 @@
1
1
  "use strict";
2
- module.exports = {
3
- plugins: [
4
- 'testing-library',
5
- ],
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.testingLibraryConfig = void 0;
37
+ const eslintPluginTestingLibrary = __importStar(require("eslint-plugin-testing-library"));
38
+ exports.testingLibraryConfig = {
39
+ plugins: {
40
+ 'testing-library': eslintPluginTestingLibrary,
41
+ },
6
42
  rules: {
7
43
  'testing-library/await-async-events': 'off',
8
44
  'testing-library/await-async-queries': 'error',