@xylabs/eslint-config-flat 8.3.0 → 8.4.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.
- package/README.md +13 -7
- package/dist/neutral/core/index.d.ts.map +1 -1
- package/dist/neutral/index.d.ts +7 -3
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +510 -129
- package/dist/neutral/index.mjs.map +4 -4
- package/dist/neutral/tiers/conflicts.d.ts +2 -0
- package/dist/neutral/tiers/conflicts.d.ts.map +1 -1
- package/dist/neutral/tiers/index.d.ts +1 -1
- package/dist/neutral/tiers/opinionated.d.ts +6 -0
- package/dist/neutral/tiers/opinionated.d.ts.map +1 -1
- package/dist/neutral/tiers/plugin-rules.d.ts.map +1 -1
- package/dist/neutral/tiers/recommendedConfig.d.ts.map +1 -1
- package/dist/neutral/tiers/rule-catalog/index.d.ts +13 -0
- package/dist/neutral/tiers/rule-catalog/index.d.ts.map +1 -0
- package/dist/neutral/tiers/rule-catalog/managed-rules.d.ts +4 -0
- package/dist/neutral/tiers/rule-catalog/managed-rules.d.ts.map +1 -0
- package/dist/neutral/tiers/rule-catalog/type-checked-rules.d.ts +5 -0
- package/dist/neutral/tiers/rule-catalog/type-checked-rules.d.ts.map +1 -0
- package/dist/neutral/tiers/rule-catalog/types.d.ts +20 -0
- package/dist/neutral/tiers/rule-catalog/types.d.ts.map +1 -0
- package/dist/neutral/tiers/tier-builder.d.ts +6 -0
- package/dist/neutral/tiers/tier-builder.d.ts.map +1 -0
- package/dist/neutral/unicorn/index.d.ts +13 -4
- package/dist/neutral/unicorn/index.d.ts.map +1 -1
- package/dist/node/core/index.d.ts.map +1 -1
- package/dist/node/index.d.ts +7 -3
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.mjs +510 -129
- package/dist/node/index.mjs.map +4 -4
- package/dist/node/tiers/conflicts.d.ts +2 -0
- package/dist/node/tiers/conflicts.d.ts.map +1 -1
- package/dist/node/tiers/index.d.ts +1 -1
- package/dist/node/tiers/opinionated.d.ts +6 -0
- package/dist/node/tiers/opinionated.d.ts.map +1 -1
- package/dist/node/tiers/plugin-rules.d.ts.map +1 -1
- package/dist/node/tiers/recommendedConfig.d.ts.map +1 -1
- package/dist/node/tiers/rule-catalog/index.d.ts +13 -0
- package/dist/node/tiers/rule-catalog/index.d.ts.map +1 -0
- package/dist/node/tiers/rule-catalog/managed-rules.d.ts +4 -0
- package/dist/node/tiers/rule-catalog/managed-rules.d.ts.map +1 -0
- package/dist/node/tiers/rule-catalog/type-checked-rules.d.ts +5 -0
- package/dist/node/tiers/rule-catalog/type-checked-rules.d.ts.map +1 -0
- package/dist/node/tiers/rule-catalog/types.d.ts +20 -0
- package/dist/node/tiers/rule-catalog/types.d.ts.map +1 -0
- package/dist/node/tiers/tier-builder.d.ts +6 -0
- package/dist/node/tiers/tier-builder.d.ts.map +1 -0
- package/dist/node/unicorn/index.d.ts +13 -4
- package/dist/node/unicorn/index.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tier-builder.d.ts","sourceRoot":"","sources":["../../../src/tiers/tier-builder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAwBpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AAiFtD,kGAAkG;AAClG,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAoB,CAAA;AAE7D,wBAAgB,eAAe,CAAC,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,CASvF"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
/** Rules enabled by unicorn/recommended but not unicorn/unopinionated (`meta.docs.recommended === true`). */
|
|
3
|
+
export declare const unicornOpinionatedRules: string[];
|
|
4
|
+
export declare const unicornV66MigrationQueue: readonly ["unicorn/class-reference-in-static-methods", "unicorn/comment-content", "unicorn/consistent-export-decorator-position", "unicorn/consistent-optional-chaining", "unicorn/explicit-timer-delay", "unicorn/no-array-reverse", "unicorn/no-array-sort", "unicorn/no-break-in-nested-loop", "unicorn/no-computed-property-existence-check", "unicorn/no-confusing-array-with", "unicorn/no-declarations-before-early-exit", "unicorn/no-duplicate-loops", "unicorn/no-error-property-assignment", "unicorn/no-for-each", "unicorn/no-global-object-property-assignment", "unicorn/no-incorrect-template-string-interpolation", "unicorn/no-invalid-argument-count", "unicorn/no-mismatched-map-key", "unicorn/no-negated-array-predicate", "unicorn/no-negated-comparison", "unicorn/no-object-methods-with-collections", "unicorn/no-optional-chaining-on-undeclared-variable", "unicorn/no-redundant-comparison", "unicorn/no-return-array-push", "unicorn/no-subtraction-comparison", "unicorn/no-top-level-side-effects", "unicorn/no-undeclared-class-members", "unicorn/no-unnecessary-global-this", "unicorn/no-unnecessary-splice", "unicorn/no-unreadable-new-expression", "unicorn/no-unreadable-object-destructuring", "unicorn/no-unsafe-buffer-conversion", "unicorn/no-unsafe-property-key", "unicorn/no-unsafe-string-replacement", "unicorn/no-useless-boolean-cast", "unicorn/no-useless-concat", "unicorn/no-useless-else", "unicorn/no-useless-recursion", "unicorn/no-useless-template-literals", "unicorn/prefer-add-event-listener-options", "unicorn/prefer-array-from-map", "unicorn/prefer-await", "unicorn/prefer-direct-iteration", "unicorn/prefer-early-return", "unicorn/prefer-global-number-constants", "unicorn/prefer-identifier-import-export-specifiers", "unicorn/prefer-iterable-in-constructor", "unicorn/prefer-iterator-to-array", "unicorn/prefer-location-assign", "unicorn/prefer-minimal-ternary", "unicorn/prefer-number-coercion", "unicorn/prefer-number-is-safe-integer", "unicorn/prefer-object-define-properties", "unicorn/prefer-object-destructuring-defaults", "unicorn/prefer-object-iterable-methods", "unicorn/prefer-path2d", "unicorn/prefer-private-class-fields", "unicorn/prefer-scoped-selector", "unicorn/prefer-short-arrow-method", "unicorn/prefer-simple-sort-comparator", "unicorn/prefer-single-array-predicate", "unicorn/prefer-single-object-destructuring", "unicorn/prefer-smaller-scope", "unicorn/prefer-type-literal-last", "unicorn/prefer-uint8array-base64", "unicorn/prefer-unicode-code-point-escapes", "unicorn/prefer-url-href", "unicorn/require-proxy-trap-boolean-return"];
|
|
5
|
+
/** Unicorn rules XY keeps disabled at every tier (including opinionated preset layers). */
|
|
6
|
+
export declare const unicornGloballyDisabledRules: readonly ["unicorn/consistent-boolean-name", "unicorn/require-array-sort-compare"];
|
|
7
|
+
export declare const unicornV67MigrationQueue: readonly ["unicorn/logical-assignment-operators", "unicorn/no-array-splice", "unicorn/no-non-function-verb-prefix", "unicorn/no-top-level-assignment-in-function", "unicorn/no-uncalled-method", "unicorn/no-unreadable-for-of-expression", "unicorn/no-useless-coercion", "unicorn/no-useless-continue", "unicorn/no-useless-override", "unicorn/operator-assignment", "unicorn/prefer-array-slice", "unicorn/prefer-else-if", "unicorn/prefer-has-check", "unicorn/prefer-map-from-entries"];
|
|
8
|
+
export declare const unicornV69MigrationQueue: readonly ["unicorn/consistent-conditional-object-spread", "unicorn/consistent-tuple-labels", "unicorn/default-export-style", "unicorn/no-accidental-bitwise-operator", "unicorn/no-array-concat-in-loop", "unicorn/no-array-sort-for-min-max", "unicorn/no-boolean-sort-comparator", "unicorn/no-chained-comparison", "unicorn/no-collection-bracket-access", "unicorn/no-constant-zero-expression", "unicorn/no-double-comparison", "unicorn/no-duplicate-if-branches", "unicorn/no-duplicate-logical-operands", "unicorn/no-impossible-length-comparison", "unicorn/no-invalid-character-comparison", "unicorn/no-invalid-well-known-symbol-methods", "unicorn/no-late-event-control", "unicorn/no-loop-iterable-mutation", "unicorn/no-misrefactored-assignment", "unicorn/no-nonstandard-builtin-properties", "unicorn/no-selector-as-dom-name", "unicorn/no-unnecessary-boolean-comparison", "unicorn/no-useless-compound-assignment", "unicorn/no-useless-delete-check", "unicorn/no-useless-logical-operand", "unicorn/no-xor-as-exponentiation", "unicorn/prefer-abort-signal-timeout", "unicorn/prefer-aggregate-error", "unicorn/prefer-array-from-async", "unicorn/prefer-array-iterable-methods", "unicorn/prefer-boolean-return", "unicorn/prefer-continue", "unicorn/prefer-dom-node-replace-children", "unicorn/prefer-flat-math-min-max", "unicorn/prefer-hoisting-branch-code", "unicorn/prefer-math-constants", "unicorn/prefer-observer-apis", "unicorn/prefer-promise-try", "unicorn/prefer-promise-with-resolvers", "unicorn/prefer-set-methods", "unicorn/prefer-single-replace", "unicorn/prefer-toggle-attribute", "unicorn/prefer-unary-minus", "unicorn/prefer-url-can-parse", "unicorn/prefer-url-search-parameters", "unicorn/prefer-while-loop-condition"];
|
|
9
|
+
/** Opinionated rules introduced at tier 3; v67/v69 migration rules stay tier 4. */
|
|
10
|
+
export declare function unicornOpinionatedRulesForTier(tier: 3 | 4): readonly string[];
|
|
11
|
+
export declare function unicornOpinionatedRuleEntries(severity: 'error' | 'warn', tier?: 3 | 4): NonNullable<Linter.Config['rules']>;
|
|
12
|
+
export declare function isUnicornMigrationQueueRule(rule: string): boolean;
|
|
4
13
|
/** @deprecated Use `unicornV67MigrationQueue` instead. */
|
|
5
|
-
export declare const unicornExperimentalMigrationQueue: readonly ["unicorn/
|
|
14
|
+
export declare const unicornExperimentalMigrationQueue: readonly ["unicorn/logical-assignment-operators", "unicorn/no-array-splice", "unicorn/no-non-function-verb-prefix", "unicorn/no-top-level-assignment-in-function", "unicorn/no-uncalled-method", "unicorn/no-unreadable-for-of-expression", "unicorn/no-useless-coercion", "unicorn/no-useless-continue", "unicorn/no-useless-override", "unicorn/operator-assignment", "unicorn/prefer-array-slice", "unicorn/prefer-else-if", "unicorn/prefer-has-check", "unicorn/prefer-map-from-entries"];
|
|
6
15
|
/** @deprecated Use `unicornV66MigrationQueue` instead. */
|
|
7
|
-
export declare const unicornV66NewRules: readonly ["unicorn/class-reference-in-static-methods", "unicorn/comment-content", "unicorn/consistent-export-decorator-position", "unicorn/consistent-optional-chaining", "unicorn/explicit-timer-delay", "unicorn/no-array-reverse", "unicorn/no-array-sort", "unicorn/no-break-in-nested-loop", "unicorn/no-computed-property-existence-check", "unicorn/no-confusing-array-with", "unicorn/no-declarations-before-early-exit", "unicorn/no-duplicate-loops", "unicorn/no-error-property-assignment", "unicorn/no-for-each", "unicorn/no-global-object-property-assignment", "unicorn/no-incorrect-template-string-interpolation", "unicorn/no-invalid-argument-count", "unicorn/no-mismatched-map-key", "unicorn/no-negated-array-predicate", "unicorn/no-negated-comparison", "unicorn/no-object-methods-with-collections", "unicorn/no-optional-chaining-on-undeclared-variable", "unicorn/no-redundant-comparison", "unicorn/no-return-array-push", "unicorn/no-subtraction-comparison", "unicorn/no-top-level-side-effects", "unicorn/no-undeclared-class-members", "unicorn/no-unnecessary-global-this", "unicorn/no-unnecessary-splice", "unicorn/no-unreadable-new-expression", "unicorn/no-unreadable-object-destructuring", "unicorn/no-unsafe-buffer-conversion", "unicorn/no-unsafe-property-key", "unicorn/no-unsafe-string-replacement", "unicorn/no-useless-boolean-cast", "unicorn/no-useless-concat", "unicorn/no-useless-else", "unicorn/no-useless-recursion", "unicorn/no-useless-template-literals", "unicorn/prefer-add-event-listener-options", "unicorn/prefer-array-from-map", "unicorn/prefer-await", "unicorn/prefer-direct-iteration", "unicorn/prefer-early-return", "unicorn/prefer-global-number-constants", "unicorn/prefer-identifier-import-export-specifiers", "unicorn/prefer-iterable-in-constructor", "unicorn/prefer-iterator-to-array", "unicorn/prefer-location-assign", "unicorn/prefer-minimal-ternary", "unicorn/prefer-number-coercion", "unicorn/prefer-number-is-safe-integer", "unicorn/prefer-object-define-properties", "unicorn/prefer-object-destructuring-defaults", "unicorn/prefer-object-iterable-methods", "unicorn/prefer-path2d", "unicorn/prefer-private-class-fields", "unicorn/prefer-scoped-selector", "unicorn/prefer-short-arrow-method", "unicorn/prefer-simple-sort-comparator", "unicorn/prefer-single-array-predicate", "unicorn/prefer-single-object-destructuring", "unicorn/prefer-smaller-scope", "unicorn/prefer-type-literal-last", "unicorn/prefer-uint8array-base64", "unicorn/prefer-unicode-code-point-escapes", "unicorn/prefer-url-href", "unicorn/require-
|
|
16
|
+
export declare const unicornV66NewRules: readonly ["unicorn/class-reference-in-static-methods", "unicorn/comment-content", "unicorn/consistent-export-decorator-position", "unicorn/consistent-optional-chaining", "unicorn/explicit-timer-delay", "unicorn/no-array-reverse", "unicorn/no-array-sort", "unicorn/no-break-in-nested-loop", "unicorn/no-computed-property-existence-check", "unicorn/no-confusing-array-with", "unicorn/no-declarations-before-early-exit", "unicorn/no-duplicate-loops", "unicorn/no-error-property-assignment", "unicorn/no-for-each", "unicorn/no-global-object-property-assignment", "unicorn/no-incorrect-template-string-interpolation", "unicorn/no-invalid-argument-count", "unicorn/no-mismatched-map-key", "unicorn/no-negated-array-predicate", "unicorn/no-negated-comparison", "unicorn/no-object-methods-with-collections", "unicorn/no-optional-chaining-on-undeclared-variable", "unicorn/no-redundant-comparison", "unicorn/no-return-array-push", "unicorn/no-subtraction-comparison", "unicorn/no-top-level-side-effects", "unicorn/no-undeclared-class-members", "unicorn/no-unnecessary-global-this", "unicorn/no-unnecessary-splice", "unicorn/no-unreadable-new-expression", "unicorn/no-unreadable-object-destructuring", "unicorn/no-unsafe-buffer-conversion", "unicorn/no-unsafe-property-key", "unicorn/no-unsafe-string-replacement", "unicorn/no-useless-boolean-cast", "unicorn/no-useless-concat", "unicorn/no-useless-else", "unicorn/no-useless-recursion", "unicorn/no-useless-template-literals", "unicorn/prefer-add-event-listener-options", "unicorn/prefer-array-from-map", "unicorn/prefer-await", "unicorn/prefer-direct-iteration", "unicorn/prefer-early-return", "unicorn/prefer-global-number-constants", "unicorn/prefer-identifier-import-export-specifiers", "unicorn/prefer-iterable-in-constructor", "unicorn/prefer-iterator-to-array", "unicorn/prefer-location-assign", "unicorn/prefer-minimal-ternary", "unicorn/prefer-number-coercion", "unicorn/prefer-number-is-safe-integer", "unicorn/prefer-object-define-properties", "unicorn/prefer-object-destructuring-defaults", "unicorn/prefer-object-iterable-methods", "unicorn/prefer-path2d", "unicorn/prefer-private-class-fields", "unicorn/prefer-scoped-selector", "unicorn/prefer-short-arrow-method", "unicorn/prefer-simple-sort-comparator", "unicorn/prefer-single-array-predicate", "unicorn/prefer-single-object-destructuring", "unicorn/prefer-smaller-scope", "unicorn/prefer-type-literal-last", "unicorn/prefer-uint8array-base64", "unicorn/prefer-unicode-code-point-escapes", "unicorn/prefer-url-href", "unicorn/require-proxy-trap-boolean-return"];
|
|
8
17
|
export declare const unicornConfig: Linter.Config;
|
|
9
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/unicorn/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AAS5C,6GAA6G;AAC7G,eAAO,MAAM,uBAAuB,UAGT,CAAA;AAG3B,eAAO,MAAM,wBAAwB,2gFAqE3B,CAAA;AAEV,2FAA2F;AAC3F,eAAO,MAAM,4BAA4B,oFAG/B,CAAA;AAKV,eAAO,MAAM,wBAAwB,geAe3B,CAAA;AAGV,eAAO,MAAM,wBAAwB,yrDA+C3B,CAAA;AAqBV,mFAAmF;AACnF,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS,MAAM,EAAE,CAE7E;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,OAAO,GAAG,MAAM,EAC1B,IAAI,GAAE,CAAC,GAAG,CAAK,GACd,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAErC;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEjE;AAED,0DAA0D;AAC1D,eAAO,MAAM,iCAAiC,geAA2B,CAAA;AAEzE,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,2gFAA2B,CAAA;AAS1D,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MA0BlC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xylabs/eslint-config-flat",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.4.1",
|
|
5
5
|
"description": "ESLint Config used throughout XY Labs TypeScript/JavaScript libraries and react projects",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"xylabs",
|
|
@@ -48,26 +48,26 @@
|
|
|
48
48
|
"@eslint/json": "~2.0.0",
|
|
49
49
|
"@eslint/markdown": "^8.0.2",
|
|
50
50
|
"@stylistic/eslint-plugin": "~5.10.0",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
52
|
-
"@typescript-eslint/parser": "^8.
|
|
53
|
-
"eslint-plugin-import-x": "~4.
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
52
|
+
"@typescript-eslint/parser": "^8.62.0",
|
|
53
|
+
"eslint-plugin-import-x": "~4.17.0",
|
|
54
54
|
"eslint-plugin-simple-import-sort": "~13.0.0",
|
|
55
|
-
"eslint-plugin-unicorn": "~
|
|
55
|
+
"eslint-plugin-unicorn": "~69.0.0",
|
|
56
56
|
"eslint-plugin-workspaces": "~0.12.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@types/node": "^
|
|
59
|
+
"@types/node": "^26.0.1",
|
|
60
60
|
"@vitest/coverage-v8": "~4.1.9",
|
|
61
61
|
"acorn": "^8.17.0",
|
|
62
|
-
"browserslist": "4.28.
|
|
62
|
+
"browserslist": "4.28.4",
|
|
63
63
|
"cosmiconfig": "~9.0.2",
|
|
64
64
|
"eslint": "^10.5.0",
|
|
65
65
|
"eslint-import-resolver-typescript": "^4.4.5",
|
|
66
66
|
"typescript": "^6.0.3",
|
|
67
|
-
"vite": "^8.0
|
|
67
|
+
"vite": "^8.1.0",
|
|
68
68
|
"vitest": "~4.1.9",
|
|
69
|
-
"@xylabs/toolchain": "~8.
|
|
70
|
-
"@xylabs/tsconfig": "~8.
|
|
69
|
+
"@xylabs/toolchain": "~8.4.1",
|
|
70
|
+
"@xylabs/tsconfig": "~8.4.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"browserslist": ">= 4.21.0",
|