@perfective/eslint-config 0.28.0 → 0.29.1

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 (56) hide show
  1. package/README.adoc +29 -31
  2. package/README.md +24 -4
  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.d.ts +1 -0
  8. package/cypress.js +58 -0
  9. package/index.d.ts +1734 -0
  10. package/index.js +2 -35
  11. package/jest-dom.d.ts +1 -0
  12. package/jest-dom.js +11 -0
  13. package/jest.d.ts +1 -0
  14. package/jest.js +24 -0
  15. package/package.json +49 -17
  16. package/rules/array-func/index.d.ts +14 -0
  17. package/rules/cypress/index.d.ts +21 -0
  18. package/rules/cypress/index.js +4 -1
  19. package/rules/eslint/index.d.ts +339 -0
  20. package/rules/eslint/layout-formatting.d.ts +64 -0
  21. package/rules/eslint/possible-problems.d.ts +96 -0
  22. package/rules/eslint/possible-problems.js +10 -2
  23. package/rules/eslint/suggestions.d.ts +181 -0
  24. package/rules/eslint/suggestions.js +3 -1
  25. package/rules/eslint-comments/best-practices.d.ts +8 -0
  26. package/rules/eslint-comments/index.d.ts +21 -0
  27. package/rules/eslint-comments/stylistic-issues.d.ts +9 -0
  28. package/rules/import/helpful-warnings.d.ts +10 -0
  29. package/rules/import/index.d.ts +78 -0
  30. package/rules/import/module-systems.d.ts +10 -0
  31. package/rules/import/static-analysis.d.ts +26 -0
  32. package/rules/import/style-guide.d.ts +33 -0
  33. package/rules/jest/index.d.ts +124 -0
  34. package/rules/jest/typescript-eslint.d.ts +5 -0
  35. package/rules/jest-dom/index.d.ts +32 -0
  36. package/rules/jsdoc/index.d.ts +134 -0
  37. package/rules/n/index.d.ts +66 -0
  38. package/rules/prefer-arrow/index.d.ts +14 -0
  39. package/rules/promise/index.d.ts +35 -0
  40. package/rules/rxjs/index.d.ts +60 -0
  41. package/rules/rxjs/index.js +41 -42
  42. package/rules/security/index.d.ts +22 -0
  43. package/rules/simple-import-sort/index.d.ts +10 -0
  44. package/rules/stylistic/js/index.d.ts +197 -0
  45. package/rules/stylistic/jsx/index.d.ts +81 -0
  46. package/rules/stylistic/plus/index.d.ts +14 -0
  47. package/rules/stylistic/ts/index.d.ts +135 -0
  48. package/rules/testing-library/index.d.ts +62 -0
  49. package/rules/typescript-eslint/extension-rules.d.ts +113 -0
  50. package/rules/typescript-eslint/index.d.ts +369 -0
  51. package/rules/typescript-eslint/supported-rules.d.ts +253 -0
  52. package/rules/unicorn/index.d.ts +178 -0
  53. package/rxjs.d.ts +1 -0
  54. package/rxjs.js +58 -0
  55. package/testing-library.d.ts +1 -0
  56. package/testing-library.js +11 -0
@@ -0,0 +1,124 @@
1
+ export declare const jestConfig: {
2
+ plugins: {
3
+ jest: {
4
+ meta: {
5
+ name: string;
6
+ version: string;
7
+ };
8
+ environments: {
9
+ globals: {
10
+ globals: {
11
+ [key: string]: boolean;
12
+ };
13
+ };
14
+ };
15
+ configs: {
16
+ all: import("eslint").Linter.LegacyConfig;
17
+ recommended: import("eslint").Linter.LegacyConfig;
18
+ style: import("eslint").Linter.LegacyConfig;
19
+ "flat/all": import("eslint").Linter.FlatConfig;
20
+ "flat/recommended": import("eslint").Linter.FlatConfig;
21
+ "flat/style": import("eslint").Linter.FlatConfig;
22
+ };
23
+ rules: {
24
+ [key: string]: import("eslint").Rule.RuleModule;
25
+ };
26
+ };
27
+ };
28
+ languageOptions: {
29
+ globals: {
30
+ [key: string]: boolean;
31
+ };
32
+ };
33
+ rules: {
34
+ 'jest/consistent-test-it': (string | {
35
+ fn: string;
36
+ withinDescribe: string;
37
+ })[];
38
+ 'jest/expect-expect': (string | {
39
+ assertFunctionNames: string[];
40
+ additionalTestBlockFunctions: never[];
41
+ })[];
42
+ 'jest/max-expects': (string | {
43
+ max: number;
44
+ })[];
45
+ 'jest/max-nested-describe': (string | {
46
+ max: number;
47
+ })[];
48
+ 'jest/no-alias-methods': string;
49
+ 'jest/no-commented-out-tests': string;
50
+ 'jest/no-conditional-expect': string;
51
+ 'jest/no-conditional-in-test': string;
52
+ 'jest/no-confusing-set-timeout': string;
53
+ 'jest/no-deprecated-functions': string;
54
+ 'jest/no-disabled-tests': string;
55
+ 'jest/no-done-callback': string;
56
+ 'jest/no-duplicate-hooks': string;
57
+ 'jest/no-export': string;
58
+ 'jest/no-focused-tests': string;
59
+ 'jest/no-hooks': string;
60
+ 'jest/no-identical-title': string;
61
+ 'jest/no-interpolation-in-snapshots': string;
62
+ 'jest/no-jasmine-globals': string;
63
+ 'jest/no-large-snapshots': string;
64
+ 'jest/no-mocks-import': string;
65
+ 'jest/no-restricted-jest-methods': string;
66
+ 'jest/no-restricted-matchers': (string | {
67
+ toBeFalsy: string;
68
+ toBeTruthy: string;
69
+ toMatchSnapshot: string;
70
+ toThrowErrorMatchingSnapshot: string;
71
+ })[];
72
+ 'jest/no-standalone-expect': string;
73
+ 'jest/no-test-prefixes': string;
74
+ 'jest/no-test-return-statement': string;
75
+ 'jest/no-untyped-mock-factory': string;
76
+ 'jest/padding-around-after-all-blocks': string;
77
+ 'jest/padding-around-after-each-blocks': string;
78
+ 'jest/padding-around-all': string;
79
+ 'jest/padding-around-before-all-blocks': string;
80
+ 'jest/padding-around-before-each-blocks': string;
81
+ 'jest/padding-around-describe-blocks': string;
82
+ 'jest/padding-around-expect-groups': string;
83
+ 'jest/padding-around-test-blocks': string;
84
+ 'jest/prefer-called-with': string;
85
+ 'jest/prefer-comparison-matcher': string;
86
+ 'jest/prefer-each': string;
87
+ 'jest/prefer-equality-matcher': string;
88
+ 'jest/prefer-expect-assertions': string;
89
+ 'jest/prefer-expect-resolves': string;
90
+ 'jest/prefer-hooks-in-order': string;
91
+ 'jest/prefer-hooks-on-top': string;
92
+ 'jest/prefer-importing-jest-globals': string;
93
+ 'jest/prefer-jest-mocked': string;
94
+ 'jest/prefer-lowercase-title': (string | {
95
+ allowedPrefixes: never[];
96
+ ignore: never[];
97
+ ignoreTopLevelDescribe: boolean;
98
+ })[];
99
+ 'jest/prefer-mock-promise-shorthand': string;
100
+ 'jest/prefer-snapshot-hint': string[];
101
+ 'jest/prefer-spy-on': string;
102
+ 'jest/prefer-strict-equal': string;
103
+ 'jest/prefer-to-be': string;
104
+ 'jest/prefer-to-contain': string;
105
+ 'jest/prefer-to-have-length': string;
106
+ 'jest/prefer-todo': string;
107
+ 'jest/require-hook': (string | {
108
+ allowedFunctionCalls: never[];
109
+ })[];
110
+ 'jest/require-to-throw-message': string;
111
+ 'jest/require-top-level-describe': string;
112
+ 'jest/valid-describe-callback': string;
113
+ 'jest/valid-expect-in-promise': string;
114
+ 'jest/valid-expect': string;
115
+ 'jest/valid-title': (string | {
116
+ ignoreTypeOfDescribeName: boolean;
117
+ ignoreTypeOfTestName: boolean;
118
+ ignoreSpaces: boolean;
119
+ })[];
120
+ 'jest/unbound-method': (string | {
121
+ ignoreStatic: boolean;
122
+ })[];
123
+ };
124
+ };
@@ -0,0 +1,5 @@
1
+ export declare const typescriptEslintJestRules: {
2
+ 'jest/unbound-method': (string | {
3
+ ignoreStatic: boolean;
4
+ })[];
5
+ };
@@ -0,0 +1,32 @@
1
+ export declare const jestDomConfig: {
2
+ plugins: {
3
+ 'jest-dom': {
4
+ meta: {
5
+ name: string;
6
+ version: string;
7
+ };
8
+ configs: {
9
+ all: import("eslint").Linter.LegacyConfig;
10
+ recommended: import("eslint").Linter.LegacyConfig;
11
+ "flat/all": import("eslint").Linter.FlatConfig;
12
+ "flat/recommended": import("eslint").Linter.FlatConfig;
13
+ };
14
+ rules: {
15
+ [key: string]: import("eslint").Rule.RuleModule;
16
+ };
17
+ };
18
+ };
19
+ rules: {
20
+ 'jest-dom/prefer-checked': string;
21
+ 'jest-dom/prefer-empty': string;
22
+ 'jest-dom/prefer-enabled-disabled': string;
23
+ 'jest-dom/prefer-focus': string;
24
+ 'jest-dom/prefer-in-document': string;
25
+ 'jest-dom/prefer-required': string;
26
+ 'jest-dom/prefer-to-have-attribute': string;
27
+ 'jest-dom/prefer-to-have-class': string;
28
+ 'jest-dom/prefer-to-have-style': string;
29
+ 'jest-dom/prefer-to-have-text-content': string;
30
+ 'jest-dom/prefer-to-have-value': string;
31
+ };
32
+ };
@@ -0,0 +1,134 @@
1
+ export declare const jsdocConfig: {
2
+ plugins: {
3
+ jsdoc: {
4
+ rules: Record<string, import("eslint").Rule.RuleModule> | undefined;
5
+ };
6
+ };
7
+ settings: {
8
+ jsdoc: {
9
+ tagNamePreference: {
10
+ augments: {
11
+ message: string;
12
+ replacement: string;
13
+ };
14
+ todo: {
15
+ message: string;
16
+ };
17
+ fires: {
18
+ replacement: string;
19
+ };
20
+ };
21
+ ignoreReplacesDocs: boolean;
22
+ overrideReplacesDocs: boolean;
23
+ augmentsExtendsReplacesDocs: boolean;
24
+ implementsReplacesDoc: boolean;
25
+ };
26
+ };
27
+ rules: {
28
+ 'jsdoc/check-access': string;
29
+ 'jsdoc/check-alignment': string;
30
+ 'jsdoc/check-examples': string;
31
+ 'jsdoc/check-indentation': string;
32
+ 'jsdoc/check-line-alignment': string[];
33
+ 'jsdoc/check-param-names': (string | {
34
+ allowExtraTrailingParamDocs: boolean;
35
+ checkDestructured: boolean;
36
+ checkRestProperty: boolean;
37
+ disableExtraPropertyReporting: boolean;
38
+ disableMissingParamChecks: boolean;
39
+ enableFixer: boolean;
40
+ useDefaultObjectProperties: boolean;
41
+ })[];
42
+ 'jsdoc/check-property-names': (string | {
43
+ enableFixer: boolean;
44
+ })[];
45
+ 'jsdoc/check-syntax': string;
46
+ 'jsdoc/check-tag-names': (string | {
47
+ definedTags: string[];
48
+ jsxTags: boolean;
49
+ })[];
50
+ 'jsdoc/check-template-names': string;
51
+ 'jsdoc/check-types': (string | {
52
+ noDefaults: boolean;
53
+ })[];
54
+ 'jsdoc/check-values': string;
55
+ 'jsdoc/convert-to-jsdoc-comments': string;
56
+ 'jsdoc/empty-tags': (string | {
57
+ tags: string[];
58
+ })[];
59
+ 'jsdoc/implements-on-classes': string;
60
+ 'jsdoc/imports-as-dependencies': string;
61
+ 'jsdoc/lines-before-block': string;
62
+ 'jsdoc/match-description': string;
63
+ 'jsdoc/match-name': string;
64
+ 'jsdoc/multiline-blocks': (string | {
65
+ noZeroLineText: boolean;
66
+ noFinalLineText: boolean;
67
+ noSingleLineBlocks: boolean;
68
+ singleLineTags: string[];
69
+ noMultilineBlocks: boolean;
70
+ multilineTags: string[];
71
+ allowMultipleTags: boolean;
72
+ })[];
73
+ 'jsdoc/no-bad-blocks': (string | {
74
+ ignore: string[];
75
+ preventAllMultiAsteriskBlocks: boolean;
76
+ })[];
77
+ 'jsdoc/no-blank-blocks': string;
78
+ 'jsdoc/no-blank-block-descriptions': string;
79
+ 'jsdoc/no-defaults': string;
80
+ 'jsdoc/no-missing-syntax': string;
81
+ 'jsdoc/no-multi-asterisks': (string | {
82
+ allowWhitespace: boolean;
83
+ preventAtMiddleLines: boolean;
84
+ preventAtEnd: boolean;
85
+ })[];
86
+ 'jsdoc/no-restricted-syntax': string;
87
+ 'jsdoc/no-types': string;
88
+ 'jsdoc/no-undefined-types': string;
89
+ 'jsdoc/require-asterisk-prefix': string[];
90
+ 'jsdoc/require-description': (string | {
91
+ exemptedBy: string[];
92
+ })[];
93
+ 'jsdoc/require-description-complete-sentence': string;
94
+ 'jsdoc/require-example': string;
95
+ 'jsdoc/require-file-overview': string;
96
+ 'jsdoc/require-hyphen-before-param-description': string[];
97
+ 'jsdoc/require-jsdoc': string;
98
+ 'jsdoc/require-param': string;
99
+ 'jsdoc/require-param-description': string;
100
+ 'jsdoc/require-param-name': string;
101
+ 'jsdoc/require-param-type': string;
102
+ 'jsdoc/require-property': string;
103
+ 'jsdoc/require-property-description': string;
104
+ 'jsdoc/require-property-name': string;
105
+ 'jsdoc/require-property-type': string;
106
+ 'jsdoc/require-returns': string;
107
+ 'jsdoc/require-returns-check': string;
108
+ 'jsdoc/require-returns-description': string;
109
+ 'jsdoc/require-returns-type': string;
110
+ 'jsdoc/require-template': (string | {
111
+ requireSeparateTemplates: boolean;
112
+ })[];
113
+ 'jsdoc/require-throws': string;
114
+ 'jsdoc/require-yields': string;
115
+ 'jsdoc/require-yields-check': string;
116
+ 'jsdoc/sort-tags': (string | {
117
+ tagSequence: {
118
+ tags: string[];
119
+ }[];
120
+ alphabetizeExtras: boolean;
121
+ linesBetween: number;
122
+ reportTagGroupSpacing: boolean;
123
+ reportIntraTagGroupSpacing: boolean;
124
+ })[];
125
+ 'jsdoc/tag-lines': (string | {
126
+ count: number;
127
+ startLines: number;
128
+ endLines: number;
129
+ applyToEndTag: boolean;
130
+ tags: {};
131
+ })[];
132
+ 'jsdoc/valid-types': string;
133
+ };
134
+ };
@@ -0,0 +1,66 @@
1
+ import * as eslintPluginN from 'eslint-plugin-n';
2
+ export declare const nConfig: {
3
+ plugins: {
4
+ n: import("eslint").ESLint.Plugin & {
5
+ configs: eslintPluginN.Configs;
6
+ };
7
+ };
8
+ rules: {
9
+ 'n/callback-return': (string | string[])[];
10
+ 'n/exports-style': (string | {
11
+ allowBatchAssign: boolean;
12
+ })[];
13
+ 'n/file-extension-in-import': string;
14
+ 'n/global-require': string;
15
+ 'n/handle-callback-err': string;
16
+ 'n/hashbang': string;
17
+ 'n/no-callback-literal': string;
18
+ 'n/no-deprecated-api': string;
19
+ 'n/no-exports-assign': string;
20
+ 'n/no-extraneous-import': string;
21
+ 'n/no-extraneous-require': string;
22
+ 'n/no-hide-core-modules': string;
23
+ 'n/no-missing-import': string;
24
+ 'n/no-missing-require': string;
25
+ 'n/no-mixed-requires': string;
26
+ 'n/no-new-require': string;
27
+ 'n/no-path-concat': string;
28
+ 'n/no-process-env': string;
29
+ 'n/no-process-exit': string;
30
+ 'n/no-restricted-import': string;
31
+ 'n/no-restricted-require': string;
32
+ 'n/no-sync': (string | {
33
+ allowAtRootLevel: boolean;
34
+ })[];
35
+ 'n/no-unpublished-bin': string;
36
+ 'n/no-unpublished-import': (string | {
37
+ ignorePrivate: boolean;
38
+ })[];
39
+ 'n/no-unpublished-require': (string | {
40
+ allowModules: never[];
41
+ ignorePrivate: boolean;
42
+ tryExtensions: string[];
43
+ })[];
44
+ 'n/no-unsupported-features/es-builtins': (string | {
45
+ version: string;
46
+ ignores: never[];
47
+ })[];
48
+ 'n/no-unsupported-features/es-syntax': string;
49
+ 'n/no-unsupported-features/node-builtins': (string | {
50
+ version: string;
51
+ ignores: never[];
52
+ })[];
53
+ 'n/prefer-global/buffer': string[];
54
+ 'n/prefer-global/console': string[];
55
+ 'n/prefer-global/process': string[];
56
+ 'n/prefer-global/text-decoder': string[];
57
+ 'n/prefer-global/text-encoder': string[];
58
+ 'n/prefer-global/url': string[];
59
+ 'n/prefer-global/url-search-params': string[];
60
+ 'n/prefer-node-protocol': string;
61
+ 'n/prefer-promises/dns': string;
62
+ 'n/prefer-promises/fs': string;
63
+ 'n/process-exit-as-throw': string;
64
+ 'n/shebang': string;
65
+ };
66
+ };
@@ -0,0 +1,14 @@
1
+ import * as eslintPluginPreferArrow from 'eslint-plugin-prefer-arrow';
2
+ export declare const preferArrowConfig: {
3
+ plugins: {
4
+ 'prefer-arrow': typeof eslintPluginPreferArrow;
5
+ };
6
+ rules: {
7
+ 'prefer-arrow/prefer-arrow-functions': (string | {
8
+ allowStandaloneDeclarations: boolean;
9
+ classPropertiesAllowed: boolean;
10
+ disallowPrototype: boolean;
11
+ singleReturnOnly: boolean;
12
+ })[];
13
+ };
14
+ };
@@ -0,0 +1,35 @@
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
+ };
@@ -0,0 +1,60 @@
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
+ };
@@ -34,17 +34,17 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.rxjsConfig = void 0;
37
- const eslintPluginRxjs = __importStar(require("eslint-plugin-rxjs"));
37
+ const eslintPluginRxjs = __importStar(require("@smarttools/eslint-plugin-rxjs"));
38
38
  exports.rxjsConfig = {
39
39
  plugins: {
40
- rxjs: eslintPluginRxjs,
40
+ '@smarttools/rxjs': eslintPluginRxjs,
41
41
  },
42
42
  rules: {
43
- 'rxjs/ban-observables': 'error',
44
- 'rxjs/ban-operators': ['error', {
43
+ '@smarttools/rxjs/ban-observables': 'error',
44
+ '@smarttools/rxjs/ban-operators': ['error', {
45
45
  tap: false,
46
46
  }],
47
- 'rxjs/finnish': ['error', {
47
+ '@smarttools/rxjs/finnish': ['error', {
48
48
  functions: true,
49
49
  methods: true,
50
50
  names: {},
@@ -54,44 +54,43 @@ exports.rxjsConfig = {
54
54
  types: {},
55
55
  variables: true,
56
56
  }],
57
- 'rxjs/just': 'off',
58
- 'rxjs/no-async-subscribe': 'error',
59
- 'rxjs/no-compat': 'error',
60
- 'rxjs/no-connectable': 'error',
61
- 'rxjs/no-create': 'error',
62
- 'rxjs/no-cyclic-action': 'error',
63
- 'rxjs/no-explicit-generics': 'off',
64
- 'rxjs/no-exposed-subjects': 'error',
65
- 'rxjs/no-finnish': 'off',
66
- 'rxjs/no-ignored-error': 'error',
67
- 'rxjs/no-ignored-notifier': 'error',
68
- 'rxjs/no-ignored-observable': 'error',
69
- 'rxjs/no-ignored-replay-buffer': 'error',
70
- 'rxjs/no-ignored-subscribe': 'error',
71
- 'rxjs/no-ignored-subscription': 'error',
72
- 'rxjs/no-ignored-takewhile-value': 'error',
73
- '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', {
74
74
  allowExplicitAny: false,
75
75
  }],
76
- 'rxjs/no-index': 'error',
77
- 'rxjs/no-internal': 'warn',
78
- 'rxjs/no-nested-subscribe': 'error',
79
- 'rxjs/no-redundant-notify': 'error',
80
- 'rxjs/no-sharereplay': 'off',
81
- 'rxjs/no-subclass': 'error',
82
- 'rxjs/no-subject-unsubscribe': 'error',
83
- 'rxjs/no-subject-value': 'error',
84
- 'rxjs/no-subscribe-handlers': 'off',
85
- 'rxjs/no-tap': 'off',
86
- 'rxjs/no-topromise': 'error',
87
- 'rxjs/no-unbound-methods': 'error',
88
- 'rxjs/no-unsafe-catch': 'error',
89
- 'rxjs/no-unsafe-first': 'error',
90
- 'rxjs/no-unsafe-subject-next': 'error',
91
- 'rxjs/no-unsafe-switchmap': 'error',
92
- 'rxjs/no-unsafe-takeuntil': 'error',
93
- 'rxjs/prefer-observer': 'off',
94
- 'rxjs/suffix-subjects': 'off',
95
- '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',
96
95
  },
97
96
  };
@@ -0,0 +1,22 @@
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
+ };
@@ -0,0 +1,10 @@
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
+ };