eslint-plugin-sonarjs 2.0.0 → 2.0.1-alpha.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.
package/lib/index.d.ts CHANGED
@@ -1,12 +1,8 @@
1
1
  import { Rule } from 'eslint';
2
2
  import type { TSESLint } from '@typescript-eslint/utils';
3
3
  import type { FlatConfig } from '@typescript-eslint/utils/ts-eslint';
4
- /**
5
- * Maps ESLint rule keys declared in the JavaScript checks to rule implementations
6
- */
7
- declare const rules: {
8
- [key: string]: Rule.RuleModule;
9
- };
4
+ export declare const pluginRules: Record<string, Rule.RuleModule>;
5
+ declare const rules: Record<string, Rule.RuleModule>;
10
6
  export declare const configs: {
11
7
  recommended: FlatConfig.Config;
12
8
  'recommended-legacy': TSESLint.ClassicConfig.Config;
@@ -17,9 +13,7 @@ export declare const meta: {
17
13
  };
18
14
  export { rules };
19
15
  declare const _default: {
20
- rules: {
21
- [key: string]: Rule.RuleModule;
22
- };
16
+ rules: Record<string, Rule.RuleModule>;
23
17
  configs: {
24
18
  recommended: FlatConfig.Config;
25
19
  'recommended-legacy': TSESLint.ClassicConfig.Config;