@rslint/core 0.5.2 → 0.5.4-canary.1781059600

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 (71) hide show
  1. package/bin/rslint.cjs +21 -4
  2. package/dist/0~engine.js +406 -0
  3. package/dist/34.js +33 -0
  4. package/dist/browser.d.ts +52 -39
  5. package/dist/browser.js +42 -74
  6. package/dist/cli.d.ts +3 -2
  7. package/dist/cli.js +1051 -93
  8. package/dist/config-loader.d.ts +45 -14
  9. package/dist/config-loader.js +95 -59
  10. package/dist/eslint-plugin/612.js +43 -0
  11. package/dist/eslint-plugin/index.d.ts +892 -0
  12. package/dist/eslint-plugin/index.js +26692 -0
  13. package/dist/eslint-plugin/lint-worker.js +26225 -0
  14. package/dist/eslint-plugin/types.d.ts +23 -0
  15. package/dist/eslint-plugin/types.js +1 -0
  16. package/dist/index.d.ts +626 -19
  17. package/dist/index.js +598 -15
  18. package/dist/service.d.ts +360 -30
  19. package/dist/service.js +19 -34
  20. package/package.json +27 -11
  21. package/dist/browser.d.ts.map +0 -1
  22. package/dist/cli.d.ts.map +0 -1
  23. package/dist/config-loader.d.ts.map +0 -1
  24. package/dist/configs/import.d.ts +0 -6
  25. package/dist/configs/import.d.ts.map +0 -1
  26. package/dist/configs/import.js +0 -7
  27. package/dist/configs/index.d.ts +0 -16
  28. package/dist/configs/index.d.ts.map +0 -1
  29. package/dist/configs/index.js +0 -32
  30. package/dist/configs/javascript.d.ts +0 -6
  31. package/dist/configs/javascript.d.ts.map +0 -1
  32. package/dist/configs/javascript.js +0 -72
  33. package/dist/configs/jest.d.ts +0 -7
  34. package/dist/configs/jest.d.ts.map +0 -1
  35. package/dist/configs/jest.js +0 -35
  36. package/dist/configs/promise.d.ts +0 -6
  37. package/dist/configs/promise.d.ts.map +0 -1
  38. package/dist/configs/promise.js +0 -20
  39. package/dist/configs/react-hooks.d.ts +0 -6
  40. package/dist/configs/react-hooks.d.ts.map +0 -1
  41. package/dist/configs/react-hooks.js +0 -24
  42. package/dist/configs/react.d.ts +0 -6
  43. package/dist/configs/react.d.ts.map +0 -1
  44. package/dist/configs/react.js +0 -31
  45. package/dist/configs/typescript.d.ts +0 -8
  46. package/dist/configs/typescript.d.ts.map +0 -1
  47. package/dist/configs/typescript.js +0 -119
  48. package/dist/configs/unicorn.d.ts +0 -8
  49. package/dist/configs/unicorn.d.ts.map +0 -1
  50. package/dist/configs/unicorn.js +0 -161
  51. package/dist/define-config.d.ts +0 -109
  52. package/dist/define-config.d.ts.map +0 -1
  53. package/dist/define-config.js +0 -6
  54. package/dist/index.d.ts.map +0 -1
  55. package/dist/node.d.ts +0 -31
  56. package/dist/node.d.ts.map +0 -1
  57. package/dist/node.js +0 -116
  58. package/dist/service.d.ts.map +0 -1
  59. package/dist/tsconfig.build.tsbuildinfo +0 -1
  60. package/dist/types.d.ts +0 -342
  61. package/dist/types.d.ts.map +0 -1
  62. package/dist/types.js +0 -1
  63. package/dist/utils/args.d.ts +0 -19
  64. package/dist/utils/args.d.ts.map +0 -1
  65. package/dist/utils/args.js +0 -101
  66. package/dist/utils/config-discovery.d.ts +0 -47
  67. package/dist/utils/config-discovery.d.ts.map +0 -1
  68. package/dist/utils/config-discovery.js +0 -238
  69. package/dist/worker.d.ts +0 -2
  70. package/dist/worker.d.ts.map +0 -1
  71. package/dist/worker.js +0 -114
@@ -1,72 +0,0 @@
1
- // Aligned with official eslint:recommended (@eslint/js@10.x).
2
- // Rules commented out with "not implemented" are in the official preset but not yet available.
3
- const recommended = {
4
- files: ['**/*.js', '**/*.jsx', '**/*.mjs', '**/*.cjs'],
5
- rules: {
6
- 'constructor-super': 'error',
7
- 'no-control-regex': 'error',
8
- 'no-delete-var': 'error',
9
- 'no-dupe-class-members': 'error',
10
- 'no-dupe-else-if': 'error',
11
- 'no-empty-character-class': 'error',
12
- // 'no-empty-static-block': 'error', // not implemented
13
- 'no-ex-assign': 'error',
14
- 'no-extra-boolean-cast': 'error',
15
- 'no-fallthrough': 'error',
16
- 'no-func-assign': 'error',
17
- 'no-global-assign': 'error',
18
- 'no-import-assign': 'error',
19
- 'no-invalid-regexp': 'error',
20
- // 'no-irregular-whitespace': 'error', // not implemented
21
- 'no-misleading-character-class': 'error',
22
- // 'no-new-native-nonconstructor': 'error', // not implemented
23
- // 'no-nonoctal-decimal-escape': 'error', // not implemented
24
- 'no-obj-calls': 'error',
25
- 'no-octal': 'error',
26
- 'no-prototype-builtins': 'error',
27
- // 'no-redeclare': 'error', // not implemented
28
- 'no-regex-spaces': 'error',
29
- 'no-self-assign': 'error',
30
- 'no-setter-return': 'error',
31
- 'no-shadow-restricted-names': 'error',
32
- 'no-this-before-super': 'error',
33
- 'no-undef': 'error',
34
- // 'no-unexpected-multiline': 'error', // not implemented
35
- 'no-unreachable': 'error',
36
- 'no-unsafe-finally': 'error',
37
- 'no-unsafe-negation': 'error',
38
- 'no-unsafe-optional-chaining': 'error',
39
- // 'no-unused-labels': 'error', // not implemented
40
- // 'no-unused-private-class-members': 'error', // not implemented
41
- // 'no-unused-vars': 'error', // not implemented
42
- // 'no-unassigned-vars': 'error', // not implemented
43
- // 'no-useless-assignment': 'error', // not implemented
44
- // 'no-useless-backreference': 'error', // not implemented
45
- 'no-useless-catch': 'error',
46
- // 'no-useless-escape': 'error', // not implemented
47
- 'no-with': 'error',
48
- // 'preserve-caught-error': 'error', // not implemented
49
- 'require-yield': 'error',
50
- 'use-isnan': 'error',
51
- 'valid-typeof': 'error',
52
- 'for-direction': 'error',
53
- 'getter-return': 'error',
54
- 'no-async-promise-executor': 'error',
55
- 'no-case-declarations': 'error',
56
- 'no-class-assign': 'error',
57
- 'no-compare-neg-zero': 'error',
58
- 'no-cond-assign': 'error',
59
- 'no-const-assign': 'error',
60
- 'no-constant-binary-expression': 'error',
61
- 'no-constant-condition': 'error',
62
- 'no-debugger': 'error',
63
- 'no-dupe-args': 'error',
64
- 'no-dupe-keys': 'error',
65
- 'no-duplicate-case': 'error',
66
- 'no-empty': 'error',
67
- 'no-empty-pattern': 'error',
68
- 'no-loss-of-precision': 'error',
69
- 'no-sparse-arrays': 'error',
70
- },
71
- };
72
- export { recommended };
@@ -1,7 +0,0 @@
1
- import type { RslintConfigEntry } from '../define-config.js';
2
- // Aligned with official eslint-plugin-jest@29.x recommended.
3
- // Rules commented out with "not implemented" are in the official preset but not yet available.
4
- declare const recommended: RslintConfigEntry;
5
- declare const style: RslintConfigEntry;
6
- export { recommended, style };
7
- //# sourceMappingURL=jest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.d.ts","sourceRoot":"","sources":["../../src/configs/jest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,6DAA6D;AAC7D,+FAA+F;AAC/F,QAAA,MAAM,WAAW,EAAE,iBAuBlB,CAAC;AAEF,QAAA,MAAM,KAAK,EAAE,iBAOZ,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC"}
@@ -1,35 +0,0 @@
1
- // Aligned with official eslint-plugin-jest@29.x recommended.
2
- // Rules commented out with "not implemented" are in the official preset but not yet available.
3
- const recommended = {
4
- plugins: ['jest'],
5
- rules: {
6
- // 'jest/expect-expect': 'warn', // not implemented
7
- 'jest/no-alias-methods': 'error',
8
- // 'jest/no-commented-out-tests': 'warn', // not implemented
9
- // 'jest/no-conditional-expect': 'error', // not implemented
10
- 'jest/no-deprecated-functions': 'error',
11
- 'jest/no-disabled-tests': 'warn',
12
- 'jest/no-done-callback': 'error',
13
- // 'jest/no-export': 'error', // not implemented
14
- 'jest/no-focused-tests': 'error',
15
- // 'jest/no-identical-title': 'error', // not implemented
16
- // 'jest/no-interpolation-in-snapshots': 'error', // not implemented
17
- // 'jest/no-jasmine-globals': 'error', // not implemented
18
- 'jest/no-mocks-import': 'error',
19
- // 'jest/no-standalone-expect': 'error', // not implemented
20
- 'jest/no-test-prefixes': 'error',
21
- 'jest/valid-describe-callback': 'error',
22
- // 'jest/valid-expect': 'error', // not implemented
23
- // 'jest/valid-expect-in-promise': 'error', // not implemented
24
- // 'jest/valid-title': 'error', // not implemented
25
- },
26
- };
27
- const style = {
28
- plugins: ['jest'],
29
- rules: {
30
- // 'jest/prefer-to-be': 'error', // not implemented
31
- 'jest/prefer-to-contain': 'error',
32
- 'jest/prefer-to-have-length': 'error',
33
- },
34
- };
35
- export { recommended, style };
@@ -1,6 +0,0 @@
1
- import type { RslintConfigEntry } from '../define-config.js';
2
- // Aligned with official eslint-plugin-promise@7.x recommended.
3
- // Rules commented out with "not implemented" are in the official preset but not yet available.
4
- declare const recommended: RslintConfigEntry;
5
- export { recommended };
6
- //# sourceMappingURL=promise.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"promise.d.ts","sourceRoot":"","sources":["../../src/configs/promise.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,+DAA+D;AAC/D,+FAA+F;AAC/F,QAAA,MAAM,WAAW,EAAE,iBAgBlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,20 +0,0 @@
1
- // Aligned with official eslint-plugin-promise@7.x recommended.
2
- // Rules commented out with "not implemented" are in the official preset but not yet available.
3
- const recommended = {
4
- plugins: ['promise'],
5
- rules: {
6
- // 'promise/always-return': 'error', // not implemented
7
- // 'promise/no-return-wrap': 'error', // not implemented
8
- 'promise/param-names': 'error',
9
- // 'promise/catch-or-return': 'error', // not implemented
10
- // 'promise/no-native': 'off', // not implemented
11
- // 'promise/no-nesting': 'warn', // not implemented
12
- // 'promise/no-promise-in-callback': 'warn', // not implemented
13
- // 'promise/no-callback-in-promise': 'warn', // not implemented
14
- // 'promise/avoid-new': 'off', // not implemented
15
- // 'promise/no-new-statics': 'error', // not implemented
16
- // 'promise/no-return-in-finally': 'warn', // not implemented
17
- // 'promise/valid-params': 'warn', // not implemented
18
- },
19
- };
20
- export { recommended };
@@ -1,6 +0,0 @@
1
- import type { RslintConfigEntry } from '../define-config.js';
2
- // Aligned with official eslint-plugin-react-hooks@7.x recommended.
3
- // Rules commented out with "not implemented" are in the official preset but not yet available.
4
- declare const recommended: RslintConfigEntry;
5
- export { recommended };
6
- //# sourceMappingURL=react-hooks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/configs/react-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,mEAAmE;AACnE,+FAA+F;AAC/F,QAAA,MAAM,WAAW,EAAE,iBAoBlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,24 +0,0 @@
1
- // Aligned with official eslint-plugin-react-hooks@7.x recommended.
2
- // Rules commented out with "not implemented" are in the official preset but not yet available.
3
- const recommended = {
4
- plugins: ['react-hooks'],
5
- rules: {
6
- 'react-hooks/rules-of-hooks': 'error',
7
- 'react-hooks/exhaustive-deps': 'warn',
8
- // 'react-hooks/config': 'error', // not implemented
9
- // 'react-hooks/error-boundaries': 'error', // not implemented
10
- // 'react-hooks/gating': 'error', // not implemented
11
- // 'react-hooks/globals': 'error', // not implemented
12
- // 'react-hooks/immutability': 'error', // not implemented
13
- // 'react-hooks/incompatible-library': 'warn', // not implemented
14
- // 'react-hooks/preserve-manual-memoization': 'error', // not implemented
15
- // 'react-hooks/purity': 'error', // not implemented
16
- // 'react-hooks/refs': 'error', // not implemented
17
- // 'react-hooks/set-state-in-effect': 'error', // not implemented
18
- // 'react-hooks/set-state-in-render': 'error', // not implemented
19
- // 'react-hooks/static-components': 'error', // not implemented
20
- // 'react-hooks/unsupported-syntax': 'warn', // not implemented
21
- // 'react-hooks/use-memo': 'error', // not implemented
22
- },
23
- };
24
- export { recommended };
@@ -1,6 +0,0 @@
1
- import type { RslintConfigEntry } from '../define-config.js';
2
- // Aligned with official eslint-plugin-react@7.x recommended.
3
- // Rules commented out with "not implemented" are in the official preset but not yet available.
4
- declare const recommended: RslintConfigEntry;
5
- export { recommended };
6
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/configs/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,6DAA6D;AAC7D,+FAA+F;AAC/F,QAAA,MAAM,WAAW,EAAE,iBA2BlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,31 +0,0 @@
1
- // Aligned with official eslint-plugin-react@7.x recommended.
2
- // Rules commented out with "not implemented" are in the official preset but not yet available.
3
- const recommended = {
4
- files: ['**/*.jsx', '**/*.tsx'],
5
- plugins: ['react'],
6
- rules: {
7
- // 'react/display-name': 'error', // not implemented
8
- 'react/jsx-key': 'error',
9
- 'react/jsx-no-comment-textnodes': 'error',
10
- 'react/jsx-no-duplicate-props': 'error',
11
- 'react/jsx-no-target-blank': 'error',
12
- 'react/jsx-no-undef': 'error',
13
- 'react/jsx-uses-react': 'error',
14
- 'react/jsx-uses-vars': 'error',
15
- 'react/no-children-prop': 'error',
16
- 'react/no-danger-with-children': 'error',
17
- 'react/no-deprecated': 'error',
18
- 'react/no-direct-mutation-state': 'error',
19
- 'react/no-find-dom-node': 'error',
20
- 'react/no-is-mounted': 'error',
21
- 'react/no-render-return-value': 'error',
22
- 'react/no-string-refs': 'error',
23
- 'react/no-unescaped-entities': 'error',
24
- 'react/no-unknown-property': 'error',
25
- 'react/no-unsafe': 'off',
26
- // 'react/prop-types': 'error', // not implemented
27
- 'react/react-in-jsx-scope': 'error',
28
- 'react/require-render-return': 'error',
29
- },
30
- };
31
- export { recommended };
@@ -1,8 +0,0 @@
1
- import type { RslintConfigEntry } from '../define-config.js';
2
- // Aligned with official @typescript-eslint/recommended.
3
- // Includes the eslint-recommended override layer (disables core rules handled by TS,
4
- // enables TS-beneficial rules).
5
- // Rules commented out with "not implemented" are in the official preset but not yet available.
6
- declare const recommended: RslintConfigEntry;
7
- export { recommended };
8
- //# sourceMappingURL=typescript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/configs/typescript.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,wDAAwD;AACxD,qFAAqF;AACrF,gCAAgC;AAChC,+FAA+F;AAC/F,QAAA,MAAM,WAAW,EAAE,iBAoHlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,119 +0,0 @@
1
- // Aligned with official @typescript-eslint/recommended.
2
- // Includes the eslint-recommended override layer (disables core rules handled by TS,
3
- // enables TS-beneficial rules).
4
- // Rules commented out with "not implemented" are in the official preset but not yet available.
5
- const recommended = {
6
- files: ['**/*.ts', '**/*.tsx', '**/*.mts', '**/*.cts'],
7
- plugins: ['@typescript-eslint'],
8
- languageOptions: {
9
- parserOptions: {
10
- projectService: true,
11
- },
12
- },
13
- rules: {
14
- // --- Core ESLint rules (eslint:recommended) ---
15
- // Rules handled by TypeScript are turned off per the official
16
- // typescript-eslint eslint-recommended override.
17
- 'constructor-super': 'off',
18
- 'getter-return': 'off',
19
- 'no-class-assign': 'off',
20
- 'no-const-assign': 'off',
21
- 'no-dupe-args': 'off',
22
- 'no-dupe-class-members': 'off',
23
- 'no-dupe-keys': 'off',
24
- 'no-func-assign': 'off',
25
- 'no-import-assign': 'off',
26
- 'no-new-native-nonconstructor': 'off',
27
- 'no-new-symbol': 'off',
28
- 'no-obj-calls': 'off',
29
- 'no-redeclare': 'off',
30
- 'no-setter-return': 'off',
31
- 'no-this-before-super': 'off',
32
- 'no-undef': 'off',
33
- 'no-unreachable': 'off',
34
- 'no-unsafe-negation': 'off',
35
- 'no-with': 'off',
36
- // TS-beneficial rules enabled by eslint-recommended override
37
- 'no-var': 'error',
38
- 'prefer-const': 'error',
39
- 'prefer-rest-params': 'error',
40
- 'prefer-spread': 'error',
41
- // Remaining eslint:recommended rules (not turned off by TS)
42
- // 'no-control-regex': 'error', // not implemented
43
- 'no-delete-var': 'error',
44
- // 'no-dupe-else-if': 'error', // not implemented
45
- 'no-empty-character-class': 'error',
46
- // 'no-empty-static-block': 'error', // not implemented
47
- 'no-ex-assign': 'error',
48
- // 'no-extra-boolean-cast': 'error', // not implemented
49
- // 'no-fallthrough': 'error', // not implemented
50
- 'no-global-assign': 'error',
51
- 'no-invalid-regexp': 'error',
52
- // 'no-irregular-whitespace': 'error', // not implemented
53
- // 'no-misleading-character-class': 'error', // not implemented
54
- // 'no-nonoctal-decimal-escape': 'error', // not implemented
55
- // 'no-octal': 'error', // not implemented
56
- // 'no-prototype-builtins': 'error', // not implemented
57
- // 'no-regex-spaces': 'error', // not implemented
58
- 'no-self-assign': 'error',
59
- // 'no-shadow-restricted-names': 'error', // not implemented
60
- // 'no-unexpected-multiline': 'error', // not implemented
61
- // 'no-unsafe-finally': 'error', // not implemented
62
- // 'no-unsafe-optional-chaining': 'error', // not implemented
63
- // 'no-unused-labels': 'error', // not implemented
64
- // 'no-unused-private-class-members': 'error', // not implemented
65
- // 'no-unassigned-vars': 'error', // not implemented
66
- // 'no-useless-assignment': 'error', // not implemented
67
- // 'no-useless-backreference': 'error', // not implemented
68
- // 'no-useless-catch': 'error', // not implemented
69
- // 'no-useless-escape': 'error', // not implemented
70
- // 'preserve-caught-error': 'error', // not implemented
71
- // 'require-yield': 'error', // not implemented
72
- 'use-isnan': 'error',
73
- // 'valid-typeof': 'error', // not implemented
74
- 'for-direction': 'error',
75
- 'no-async-promise-executor': 'error',
76
- 'no-case-declarations': 'error',
77
- 'no-compare-neg-zero': 'error',
78
- 'no-cond-assign': 'error',
79
- 'no-constant-binary-expression': 'error',
80
- 'no-constant-condition': 'error',
81
- 'no-debugger': 'error',
82
- 'no-duplicate-case': 'error',
83
- 'no-empty': 'error',
84
- 'no-empty-pattern': 'error',
85
- 'no-loss-of-precision': 'error',
86
- 'no-sparse-arrays': 'error',
87
- // --- @typescript-eslint/recommended rules ---
88
- '@typescript-eslint/ban-ts-comment': 'error',
89
- 'no-array-constructor': 'off',
90
- '@typescript-eslint/no-array-constructor': 'error',
91
- '@typescript-eslint/no-duplicate-enum-values': 'error',
92
- // '@typescript-eslint/no-empty-object-type': 'error', // not implemented
93
- '@typescript-eslint/no-explicit-any': 'error',
94
- '@typescript-eslint/no-extra-non-null-assertion': 'error',
95
- '@typescript-eslint/no-misused-new': 'error',
96
- '@typescript-eslint/no-namespace': 'error',
97
- '@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
98
- '@typescript-eslint/no-require-imports': 'error',
99
- '@typescript-eslint/no-this-alias': 'error',
100
- '@typescript-eslint/no-unnecessary-type-constraint': 'error',
101
- // '@typescript-eslint/no-unsafe-declaration-merging': 'error', // not implemented
102
- // '@typescript-eslint/no-unsafe-function-type': 'error', // not implemented
103
- 'no-unused-expressions': 'off',
104
- '@typescript-eslint/no-unused-expressions': 'error',
105
- 'no-unused-vars': 'off',
106
- // Differs from typescript-eslint recommended (which uses bare 'error').
107
- // Ignoring _-prefixed vars/args is a widely adopted community convention,
108
- // so we include it in our default recommended config for better DX.
109
- '@typescript-eslint/no-unused-vars': [
110
- 'error',
111
- { varsIgnorePattern: '^_', argsIgnorePattern: '^_' },
112
- ],
113
- // '@typescript-eslint/no-wrapper-object-types': 'error', // not implemented
114
- '@typescript-eslint/prefer-as-const': 'error',
115
- '@typescript-eslint/prefer-namespace-keyword': 'error',
116
- '@typescript-eslint/triple-slash-reference': 'error',
117
- },
118
- };
119
- export { recommended };
@@ -1,8 +0,0 @@
1
- import type { RslintConfigEntry } from '../define-config.js';
2
- // Aligned with official eslint-plugin-unicorn@64.x recommended.
3
- // Rules commented out with "not implemented" are in the official preset but not yet available.
4
- // The official preset also injects `languageOptions.globals` (Array, Promise, Map, …);
5
- // rslint's config entry doesn't expose a `globals` field, so that part is omitted.
6
- declare const recommended: RslintConfigEntry;
7
- export { recommended };
8
- //# sourceMappingURL=unicorn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/configs/unicorn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAE7D,gEAAgE;AAChE,+FAA+F;AAC/F,yFAAuF;AACvF,mFAAmF;AACnF,QAAA,MAAM,WAAW,EAAE,iBA4JlB,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,161 +0,0 @@
1
- // Aligned with official eslint-plugin-unicorn@64.x recommended.
2
- // Rules commented out with "not implemented" are in the official preset but not yet available.
3
- // The official preset also injects `languageOptions.globals` (Array, Promise, Map, …);
4
- // rslint's config entry doesn't expose a `globals` field, so that part is omitted.
5
- const recommended = {
6
- plugins: ['unicorn'],
7
- rules: {
8
- // Core ESLint rules disabled by upstream once their unicorn equivalents take over.
9
- // Keep them enabled (i.e. don't override) until the unicorn replacements are implemented,
10
- // otherwise users would lose all coverage for these patterns.
11
- // 'no-negated-condition': 'off',
12
- // 'no-nested-ternary': 'off',
13
- // 'unicorn/better-regex': 'off', // not implemented
14
- // 'unicorn/catch-error-name': 'error', // not implemented
15
- // 'unicorn/consistent-assert': 'error', // not implemented
16
- // 'unicorn/consistent-date-clone': 'error', // not implemented
17
- // 'unicorn/consistent-destructuring': 'off', // not implemented
18
- // 'unicorn/consistent-empty-array-spread': 'error', // not implemented
19
- // 'unicorn/consistent-existence-index-check': 'error', // not implemented
20
- // 'unicorn/consistent-function-scoping': 'error', // not implemented
21
- // 'unicorn/consistent-template-literal-escape': 'error', // not implemented
22
- // 'unicorn/custom-error-definition': 'off', // not implemented
23
- // 'unicorn/empty-brace-spaces': 'error', // not implemented
24
- // 'unicorn/error-message': 'error', // not implemented
25
- // 'unicorn/escape-case': 'error', // not implemented
26
- // 'unicorn/expiring-todo-comments': 'error', // not implemented
27
- // 'unicorn/explicit-length-check': 'error', // not implemented
28
- 'unicorn/filename-case': 'error',
29
- // 'unicorn/import-style': 'error', // not implemented
30
- // 'unicorn/isolated-functions': 'error', // not implemented
31
- // 'unicorn/new-for-builtins': 'error', // not implemented
32
- // 'unicorn/no-abusive-eslint-disable': 'error', // not implemented
33
- // 'unicorn/no-accessor-recursion': 'error', // not implemented
34
- // 'unicorn/no-anonymous-default-export': 'error', // not implemented
35
- // 'unicorn/no-array-callback-reference': 'error', // not implemented
36
- // 'unicorn/no-array-for-each': 'error', // not implemented
37
- // 'unicorn/no-array-method-this-argument': 'error', // not implemented
38
- // 'unicorn/no-array-reduce': 'error', // not implemented
39
- // 'unicorn/no-array-reverse': 'error', // not implemented
40
- // 'unicorn/no-array-sort': 'error', // not implemented
41
- // 'unicorn/no-await-expression-member': 'error', // not implemented
42
- // 'unicorn/no-await-in-promise-methods': 'error', // not implemented
43
- // 'unicorn/no-console-spaces': 'error', // not implemented
44
- // 'unicorn/no-document-cookie': 'error', // not implemented
45
- // 'unicorn/no-empty-file': 'error', // not implemented
46
- // 'unicorn/no-for-loop': 'error', // not implemented
47
- // 'unicorn/no-hex-escape': 'error', // not implemented
48
- // 'unicorn/no-immediate-mutation': 'error', // not implemented
49
- // 'unicorn/no-instanceof-builtins': 'error', // not implemented
50
- // 'unicorn/no-invalid-fetch-options': 'error', // not implemented
51
- // 'unicorn/no-invalid-remove-event-listener': 'error', // not implemented
52
- // 'unicorn/no-keyword-prefix': 'off', // not implemented
53
- // 'unicorn/no-lonely-if': 'error', // not implemented
54
- // 'unicorn/no-magic-array-flat-depth': 'error', // not implemented
55
- // 'unicorn/no-named-default': 'error', // not implemented
56
- // 'unicorn/no-negated-condition': 'error', // not implemented
57
- // 'unicorn/no-negation-in-equality-check': 'error', // not implemented
58
- // 'unicorn/no-nested-ternary': 'error', // not implemented
59
- // 'unicorn/no-new-array': 'error', // not implemented
60
- // 'unicorn/no-new-buffer': 'error', // not implemented
61
- // 'unicorn/no-null': 'error', // not implemented
62
- // 'unicorn/no-object-as-default-parameter': 'error', // not implemented
63
- // 'unicorn/no-process-exit': 'error', // not implemented
64
- // 'unicorn/no-single-promise-in-promise-methods': 'error', // not implemented
65
- 'unicorn/no-static-only-class': 'error',
66
- // 'unicorn/no-thenable': 'error', // not implemented
67
- // 'unicorn/no-this-assignment': 'error', // not implemented
68
- // 'unicorn/no-typeof-undefined': 'error', // not implemented
69
- // 'unicorn/no-unnecessary-array-flat-depth': 'error', // not implemented
70
- // 'unicorn/no-unnecessary-array-splice-count': 'error', // not implemented
71
- // 'unicorn/no-unnecessary-await': 'error', // not implemented
72
- // 'unicorn/no-unnecessary-polyfills': 'error', // not implemented
73
- // 'unicorn/no-unnecessary-slice-end': 'error', // not implemented
74
- // 'unicorn/no-unreadable-array-destructuring': 'error', // not implemented
75
- // 'unicorn/no-unreadable-iife': 'error', // not implemented
76
- // 'unicorn/no-unused-properties': 'off', // not implemented
77
- // 'unicorn/no-useless-collection-argument': 'error', // not implemented
78
- // 'unicorn/no-useless-error-capture-stack-trace': 'error', // not implemented
79
- // 'unicorn/no-useless-fallback-in-spread': 'error', // not implemented
80
- // 'unicorn/no-useless-iterator-to-array': 'error', // not implemented
81
- // 'unicorn/no-useless-length-check': 'error', // not implemented
82
- // 'unicorn/no-useless-promise-resolve-reject': 'error', // not implemented
83
- // 'unicorn/no-useless-spread': 'error', // not implemented
84
- // 'unicorn/no-useless-switch-case': 'error', // not implemented
85
- // 'unicorn/no-useless-undefined': 'error', // not implemented
86
- // 'unicorn/no-zero-fractions': 'error', // not implemented
87
- // 'unicorn/number-literal-case': 'error', // not implemented
88
- // 'unicorn/numeric-separators-style': 'error', // not implemented
89
- // 'unicorn/prefer-add-event-listener': 'error', // not implemented
90
- // 'unicorn/prefer-array-find': 'error', // not implemented
91
- // 'unicorn/prefer-array-flat': 'error', // not implemented
92
- // 'unicorn/prefer-array-flat-map': 'error', // not implemented
93
- // 'unicorn/prefer-array-index-of': 'error', // not implemented
94
- // 'unicorn/prefer-array-some': 'error', // not implemented
95
- // 'unicorn/prefer-at': 'error', // not implemented
96
- // 'unicorn/prefer-bigint-literals': 'error', // not implemented
97
- // 'unicorn/prefer-blob-reading-methods': 'error', // not implemented
98
- // 'unicorn/prefer-class-fields': 'error', // not implemented
99
- // 'unicorn/prefer-classlist-toggle': 'error', // not implemented
100
- // 'unicorn/prefer-code-point': 'error', // not implemented
101
- // 'unicorn/prefer-date-now': 'error', // not implemented
102
- // 'unicorn/prefer-default-parameters': 'error', // not implemented
103
- // 'unicorn/prefer-dom-node-append': 'error', // not implemented
104
- // 'unicorn/prefer-dom-node-dataset': 'error', // not implemented
105
- // 'unicorn/prefer-dom-node-remove': 'error', // not implemented
106
- // 'unicorn/prefer-dom-node-text-content': 'error', // not implemented
107
- // 'unicorn/prefer-event-target': 'error', // not implemented
108
- // 'unicorn/prefer-export-from': 'error', // not implemented
109
- // 'unicorn/prefer-global-this': 'error', // not implemented
110
- // 'unicorn/prefer-import-meta-properties': 'off', // not implemented
111
- // 'unicorn/prefer-includes': 'error', // not implemented
112
- // 'unicorn/prefer-json-parse-buffer': 'off', // not implemented
113
- // 'unicorn/prefer-keyboard-event-key': 'error', // not implemented
114
- // 'unicorn/prefer-logical-operator-over-ternary': 'error', // not implemented
115
- // 'unicorn/prefer-math-min-max': 'error', // not implemented
116
- // 'unicorn/prefer-math-trunc': 'error', // not implemented
117
- // 'unicorn/prefer-modern-dom-apis': 'error', // not implemented
118
- // 'unicorn/prefer-modern-math-apis': 'error', // not implemented
119
- // 'unicorn/prefer-module': 'error', // not implemented
120
- // 'unicorn/prefer-native-coercion-functions': 'error', // not implemented
121
- // 'unicorn/prefer-negative-index': 'error', // not implemented
122
- // 'unicorn/prefer-node-protocol': 'error', // not implemented
123
- // 'unicorn/prefer-number-properties': 'error', // not implemented
124
- // 'unicorn/prefer-object-from-entries': 'error', // not implemented
125
- // 'unicorn/prefer-optional-catch-binding': 'error', // not implemented
126
- // 'unicorn/prefer-prototype-methods': 'error', // not implemented
127
- // 'unicorn/prefer-query-selector': 'error', // not implemented
128
- // 'unicorn/prefer-reflect-apply': 'error', // not implemented
129
- // 'unicorn/prefer-regexp-test': 'error', // not implemented
130
- // 'unicorn/prefer-response-static-json': 'error', // not implemented
131
- // 'unicorn/prefer-set-has': 'error', // not implemented
132
- // 'unicorn/prefer-set-size': 'error', // not implemented
133
- // 'unicorn/prefer-simple-condition-first': 'error', // not implemented
134
- // 'unicorn/prefer-single-call': 'error', // not implemented
135
- // 'unicorn/prefer-spread': 'error', // not implemented
136
- // 'unicorn/prefer-string-raw': 'error', // not implemented
137
- // 'unicorn/prefer-string-replace-all': 'error', // not implemented
138
- // 'unicorn/prefer-string-slice': 'error', // not implemented
139
- // 'unicorn/prefer-string-starts-ends-with': 'error', // not implemented
140
- // 'unicorn/prefer-string-trim-start-end': 'error', // not implemented
141
- // 'unicorn/prefer-structured-clone': 'error', // not implemented
142
- // 'unicorn/prefer-switch': 'error', // not implemented
143
- // 'unicorn/prefer-ternary': 'error', // not implemented
144
- // 'unicorn/prefer-top-level-await': 'error', // not implemented
145
- // 'unicorn/prefer-type-error': 'error', // not implemented
146
- // 'unicorn/prevent-abbreviations': 'error', // not implemented
147
- // 'unicorn/relative-url-style': 'error', // not implemented
148
- // 'unicorn/require-array-join-separator': 'error', // not implemented
149
- // 'unicorn/require-module-attributes': 'error', // not implemented
150
- // 'unicorn/require-module-specifiers': 'error', // not implemented
151
- // 'unicorn/require-number-to-fixed-digits-argument': 'error', // not implemented
152
- // 'unicorn/require-post-message-target-origin': 'off', // not implemented
153
- // 'unicorn/string-content': 'off', // not implemented
154
- // 'unicorn/switch-case-braces': 'error', // not implemented
155
- // 'unicorn/switch-case-break-position': 'error', // not implemented
156
- // 'unicorn/template-indent': 'error', // not implemented
157
- // 'unicorn/text-encoding-identifier-case': 'error', // not implemented
158
- // 'unicorn/throw-new-error': 'error', // not implemented
159
- },
160
- };
161
- export { recommended };