@ashstack/lint 0.10.2 → 0.10.4

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.
@@ -10,7 +10,7 @@ export declare const TEST_FILES: string[];
10
10
  * `no-unsafe-type-assertion`, …): they only report when oxlint runs with
11
11
  * `--type-aware` and the `oxlint-tsgolint` peer installed.
12
12
  *
13
- * @see [every rule `core()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#core)
13
+ * @see [every rule `core()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/entries/core.md#core)
14
14
  */
15
15
  declare const core: (options?: CoreOptions) => OxlintConfig;
16
16
  export { core };
@@ -1 +1 @@
1
- const e=(t)=>new URL(t,import.meta.url).href;export const coreRegistry=[{meta:{name:"@ashstack/core"},url:e("../core/rules/core/index.js"),rules:{"no-comments":{},"no-naming-convention":{},"no-packed-condition":{},"max-lines":{},"max-complexity":{}}},{meta:{name:"@ashstack/zod"},url:e("../core/rules/zod/index.js"),option:"zod",packages:["zod"],rules:{"prefer-enum":{}}}],reactRegistry=[{meta:{name:"@ashstack/react"},url:e("../react/rules/react/index.js"),rules:{"no-unlabeled-icon-button":{},"no-svg-without-title":{},"hoist-intl":{},"prefer-design-system":{defaultOff:!0},"components-tsx-only":{defaultOff:!0}}},{meta:{name:"@ashstack/query"},url:e("../react/rules/query/index.js"),option:"query",packages:["@tanstack/react-query"],rules:{"no-inline-keys":{},"no-deprecated-filters":{},"require-destructured-hooks":{},"no-fetch-in-query-fn":{},"next-page-param-undefined":{}}},{meta:{name:"@ashstack/zustand"},url:e("../react/rules/zustand/index.js"),option:"zustand",packages:["zustand"],rules:{"require-selector":{}}},{meta:{name:"@ashstack/i18n"},url:e("../react/rules/i18n/index.js"),option:"i18n",packages:["i18next","react-i18next","@lingui/core","react-intl","use-intl","next-intl","expo-localization"],rules:{"no-bare-text":{},"no-bare-attrs":{},"no-bare-toast":{}}},{meta:{name:"@ashstack/stylex"},url:e("../react/rules/stylex/index.js"),option:"stylex",packages:["@stylexjs/stylex"],rules:{"inline-props":{},"no-conflicting-props":{},"no-duplicate-styles":{},"require-tokens":{},"use-sx-prop":{}}},{meta:{name:"@ashstack/tailwind"},url:e("../react/rules/tailwind/index.js"),option:"tailwind",packages:["tailwindcss"],rules:{"prefer-cn":{},"use-logical-classes":{}}},{meta:{name:"@ashstack/tanstack-router"},url:e("../react/rules/tanstack-router/index.js"),option:"tanstackRouter",packages:["@tanstack/react-router"],rules:{"require-selector":{},"no-search-casts":{}}}],reactNativeRegistry=[{meta:{name:"@ashstack/react-native"},url:e("../react-native/rules/react-native/index.js"),restrictedImports:{paths:[{name:"react",importNames:["forwardRef"],message:"Accept `ref` as a regular prop and delete the `forwardRef` wrapper — React 19 passes `ref` like any other prop."},{name:"react",importNames:["useContext"],message:"Call `use(Context)` instead of `useContext(Context)`; React 19 replaces the hook with it."}],patterns:[{group:["expo-linear-gradient","react-native-linear-gradient"],message:"Apply the gradient through the `experimental_backgroundImage` style property instead of a gradient component."}]},rules:{"no-keyboard-will-events":{},"no-scroll-position-state":{},"no-conditional-style-array":{},"no-leaked-render":{},"no-rn-image-network-source":{},"no-redundant-view-nesting":{},"no-rn-namespace-import":{},"no-unlabeled-icon-pressable":{},"hoist-stateless-function":{},"no-manual-memo":{},"no-dynamic-import":{}}},{meta:{name:"@ashstack/unistyles"},url:e("../react-native/rules/unistyles/index.js"),option:"unistyles",packages:["react-native-unistyles"],restrictedImports:{paths:[{name:"react-native",importNames:["StyleSheet"],message:"Import `StyleSheet` from `react-native-unistyles` instead of `react-native`."},{name:"react-native",importNames:["useWindowDimensions","Dimensions"],message:"Read screen size from `rt.screen` inside `StyleSheet.create`, or `UnistylesRuntime.screen` outside it, instead of the `Dimensions` APIs."},{name:"react-native",importNames:["SafeAreaView"],message:'Set `contentInsetAdjustmentBehavior="automatic"` on the scroll view, or apply `rt.insets` from `react-native-unistyles`, instead of `SafeAreaView`.'},{name:"react-native-safe-area-context",importNames:["useSafeAreaInsets","useSafeAreaFrame","SafeAreaView"],message:"Read safe-area values from `rt.insets`, or `UnistylesRuntime.insets` outside a stylesheet, in `react-native-unistyles`."}]},rules:{"animated-theme":{},"content-container":{},"in-sheet":{},insets:{},"no-hardcoded-color":{},"no-hardcoded-spacing":{},"no-margin":{},"no-paramless-dynamic-function":{},"no-style-spread":{},"no-unused-styles":{},"rtl-style-call":{},"theme-screen-component":{},"theme-style-attr":{}}},{meta:{name:"@ashstack/legend-list"},url:e("../react-native/rules/legend-list/index.js"),option:"legendList",packages:["@legendapp/list"],restrictedImports:{paths:[{name:"react-native",importNames:["FlatList","SectionList","VirtualizedList"],message:"Render this list with `LegendList` from `@legendapp/list/react-native`; a `ScrollView` plus `map` is fine for fewer than 20 static items."},{name:"@shopify/flash-list",message:"Import `LegendList` from `@legendapp/list/react-native` — Legend List replaced FlashList in this stack."}],patterns:[{group:["@legendapp/list"],message:"Import from the platform entrypoint `@legendapp/list/react-native`, not the package root."}]},rules:{"required-props":{},"no-index-key-extractor":{},"no-remount-key":{},"no-inline-render-item-props":{},"no-mixed-children":{},"no-flex-in-content-container":{},"typed-items-need-item-type":{},"no-scrollview-map":{},"no-unsupported-props":{}}},{meta:{name:"@ashstack/legend-state"},url:e("../react-native/rules/legend-state/index.js"),option:"legendState",packages:["@legendapp/state"],restrictedImports:{paths:[{name:"@legendapp/state/react",importNames:["use$","useSelector"],message:"Use `useValue` from `@legendapp/state/react`; `use$` and `useSelector` are deprecated."}]},rules:{"no-assignment":{},naming:{},"no-nested-observable":{},"no-react-mirror":{},"no-untracked-get-in-jsx":{},"no-peek-in-selector":{},"no-object-selector":{},"no-observable-in-component":{}}},{meta:{name:"@ashstack/reanimated"},url:e("../react-native/rules/reanimated/index.js"),option:"reanimated",packages:["react-native-reanimated"],restrictedImports:{paths:[{name:"react-native",importNames:["Animated"],message:"Use `react-native-reanimated` instead of React Native's `Animated` API."},{name:"react-native-reanimated",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."},{name:"react-native-worklets",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."}]},rules:{"animated-reaction-safety":{},"animated-style-needs-animated-component":{},"animated-updater-purity":{},"gpu-properties-only":{},"hoist-layout-animation-builder":{},"interpolate-needs-clamp":{},"no-shared-value-dot-value":{},"no-react-state-from-continuous-worklet":{},"prefer-lazy-shared-value-initializer":{},"schedule-on-rn-scope":{},"shared-value-usage":{}}},{meta:{name:"@ashstack/turbo-image"},url:e("../react-native/rules/turbo-image/index.js"),option:"turboImage",packages:["react-native-turbo-image"],rules:{"require-resize":{},"require-cache-policy":{}}},{meta:{name:"@ashstack/skia"},url:e("../react-native/rules/skia/index.js"),option:"skia",packages:["@shopify/react-native-skia"],restrictedImports:{paths:[{name:"@shopify/react-native-skia",importNames:["usePathValue","usePathInterpolation"],message:"Keep one stable `SkPath` buffer and mutate it inside `useDerivedValue`, with consumers reading the driving shared value."}]},rules:{"canvas-opaque":{}}},{meta:{name:"@ashstack/keyboard"},url:e("../react-native/rules/keyboard/index.js"),option:"keyboard",packages:["react-native-keyboard-controller"],restrictedImports:{paths:[{name:"react-native",importNames:["KeyboardAvoidingView"],message:"Import `KeyboardAvoidingView` from `react-native-keyboard-controller` — same props, tracked per frame. For a scrolling form, its `KeyboardAwareScrollView`."}]},rules:{}}];
1
+ const e=(t)=>new URL(t,import.meta.url).href;export const coreRegistry=[{meta:{name:"@ashstack/core"},url:e("../core/rules/core/index.js"),rules:{"no-comments":{},"no-naming-convention":{},"no-packed-condition":{},"max-lines":{},"max-complexity":{}}},{meta:{name:"@ashstack/zod"},url:e("../core/rules/zod/index.js"),option:"zod",packages:["zod"],rules:{"prefer-enum":{}}}],reactRegistry=[{meta:{name:"@ashstack/react"},url:e("../react/rules/react/index.js"),rules:{"no-unlabeled-icon-button":{},"no-svg-without-title":{},"hoist-intl":{},"prefer-design-system":{defaultOff:!0},"components-tsx-only":{defaultOff:!0}}},{meta:{name:"@ashstack/query"},url:e("../react/rules/query/index.js"),option:"query",packages:["@tanstack/react-query"],rules:{"no-inline-keys":{},"no-deprecated-filters":{},"require-destructured-hooks":{},"no-fetch-in-query-fn":{},"next-page-param-undefined":{}}},{meta:{name:"@ashstack/zustand"},url:e("../react/rules/zustand/index.js"),option:"zustand",packages:["zustand"],rules:{"require-selector":{}}},{meta:{name:"@ashstack/i18n"},url:e("../react/rules/i18n/index.js"),option:"i18n",packages:["i18next","react-i18next","@lingui/core","react-intl","use-intl","next-intl","expo-localization"],rules:{"no-bare-text":{},"no-bare-attrs":{},"no-bare-toast":{}}},{meta:{name:"@ashstack/stylex"},url:e("../react/rules/stylex/index.js"),option:"stylex",packages:["@stylexjs/stylex"],rules:{"inline-props":{},"no-conflicting-props":{},"no-duplicate-styles":{},"require-tokens":{},"spread-props":{}}},{meta:{name:"@ashstack/tailwind"},url:e("../react/rules/tailwind/index.js"),option:"tailwind",packages:["tailwindcss"],rules:{"prefer-cn":{},"use-logical-classes":{}}},{meta:{name:"@ashstack/tanstack-router"},url:e("../react/rules/tanstack-router/index.js"),option:"tanstackRouter",packages:["@tanstack/react-router"],rules:{"require-selector":{},"no-search-casts":{}}}],reactNativeRegistry=[{meta:{name:"@ashstack/react-native"},url:e("../react-native/rules/react-native/index.js"),restrictedImports:{paths:[{name:"react",importNames:["forwardRef"],message:"Accept `ref` as a regular prop and delete the `forwardRef` wrapper — React 19 passes `ref` like any other prop."},{name:"react",importNames:["useContext"],message:"Call `use(Context)` instead of `useContext(Context)`; React 19 replaces the hook with it."}],patterns:[{group:["expo-linear-gradient","react-native-linear-gradient"],message:"Apply the gradient through the `experimental_backgroundImage` style property instead of a gradient component."}]},rules:{"no-keyboard-will-events":{},"no-scroll-position-state":{},"no-conditional-style-array":{},"no-leaked-render":{},"no-rn-image-network-source":{},"no-redundant-view-nesting":{},"no-rn-namespace-import":{},"no-unlabeled-icon-pressable":{},"hoist-stateless-function":{},"no-manual-memo":{},"no-dynamic-import":{}}},{meta:{name:"@ashstack/unistyles"},url:e("../react-native/rules/unistyles/index.js"),option:"unistyles",packages:["react-native-unistyles"],restrictedImports:{paths:[{name:"react-native",importNames:["StyleSheet"],message:"Import `StyleSheet` from `react-native-unistyles` instead of `react-native`."},{name:"react-native",importNames:["useWindowDimensions","Dimensions"],message:"Read screen size from `rt.screen` inside `StyleSheet.create`, or `UnistylesRuntime.screen` outside it, instead of the `Dimensions` APIs."},{name:"react-native",importNames:["SafeAreaView"],message:'Set `contentInsetAdjustmentBehavior="automatic"` on the scroll view, or apply `rt.insets` from `react-native-unistyles`, instead of `SafeAreaView`.'},{name:"react-native-safe-area-context",importNames:["useSafeAreaInsets","useSafeAreaFrame","SafeAreaView"],message:"Read safe-area values from `rt.insets`, or `UnistylesRuntime.insets` outside a stylesheet, in `react-native-unistyles`."}]},rules:{"animated-theme":{},"content-container":{},"in-sheet":{},insets:{},"no-hardcoded-color":{},"no-hardcoded-spacing":{},"no-margin":{},"no-paramless-dynamic-function":{},"no-style-spread":{},"no-unused-styles":{},"rtl-style-call":{},"theme-screen-component":{},"theme-style-attr":{}}},{meta:{name:"@ashstack/legend-list"},url:e("../react-native/rules/legend-list/index.js"),option:"legendList",packages:["@legendapp/list"],restrictedImports:{paths:[{name:"react-native",importNames:["FlatList","SectionList","VirtualizedList"],message:"Render this list with `LegendList` from `@legendapp/list/react-native`; a `ScrollView` plus `map` is fine for fewer than 20 static items."},{name:"@shopify/flash-list",message:"Import `LegendList` from `@legendapp/list/react-native` — Legend List replaced FlashList in this stack."}],patterns:[{group:["@legendapp/list"],message:"Import from the platform entrypoint `@legendapp/list/react-native`, not the package root."}]},rules:{"required-props":{},"no-index-key-extractor":{},"no-remount-key":{},"no-inline-render-item-props":{},"no-mixed-children":{},"no-flex-in-content-container":{},"typed-items-need-item-type":{},"no-scrollview-map":{},"no-unsupported-props":{}}},{meta:{name:"@ashstack/legend-state"},url:e("../react-native/rules/legend-state/index.js"),option:"legendState",packages:["@legendapp/state"],restrictedImports:{paths:[{name:"@legendapp/state/react",importNames:["use$","useSelector"],message:"Use `useValue` from `@legendapp/state/react`; `use$` and `useSelector` are deprecated."}]},rules:{"no-assignment":{},naming:{},"no-nested-observable":{},"no-react-mirror":{},"no-untracked-get-in-jsx":{},"no-peek-in-selector":{},"no-object-selector":{},"no-observable-in-component":{}}},{meta:{name:"@ashstack/reanimated"},url:e("../react-native/rules/reanimated/index.js"),option:"reanimated",packages:["react-native-reanimated"],restrictedImports:{paths:[{name:"react-native",importNames:["Animated"],message:"Use `react-native-reanimated` instead of React Native's `Animated` API."},{name:"react-native-reanimated",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."},{name:"react-native-worklets",importNames:["runOnJS","runOnUI"],message:"Use `scheduleOnRN` and `scheduleOnUI` from `react-native-worklets`; `runOnJS` and `runOnUI` are deprecated."}]},rules:{"animated-reaction-safety":{},"animated-style-needs-animated-component":{},"animated-updater-purity":{},"gpu-properties-only":{},"hoist-layout-animation-builder":{},"interpolate-needs-clamp":{},"no-shared-value-dot-value":{},"no-react-state-from-continuous-worklet":{},"prefer-lazy-shared-value-initializer":{},"schedule-on-rn-scope":{},"shared-value-usage":{}}},{meta:{name:"@ashstack/turbo-image"},url:e("../react-native/rules/turbo-image/index.js"),option:"turboImage",packages:["react-native-turbo-image"],rules:{"require-resize":{},"require-cache-policy":{}}},{meta:{name:"@ashstack/skia"},url:e("../react-native/rules/skia/index.js"),option:"skia",packages:["@shopify/react-native-skia"],restrictedImports:{paths:[{name:"@shopify/react-native-skia",importNames:["usePathValue","usePathInterpolation"],message:"Keep one stable `SkPath` buffer and mutate it inside `useDerivedValue`, with consumers reading the driving shared value."}]},rules:{"canvas-opaque":{}}},{meta:{name:"@ashstack/keyboard"},url:e("../react-native/rules/keyboard/index.js"),option:"keyboard",packages:["react-native-keyboard-controller"],restrictedImports:{paths:[{name:"react-native",importNames:["KeyboardAvoidingView"],message:"Import `KeyboardAvoidingView` from `react-native-keyboard-controller` — same props, tracked per frame. For a scrolling form, its `KeyboardAwareScrollView`."}]},rules:{}}];
@@ -10,7 +10,7 @@ declare module "oxlint" {
10
10
  *
11
11
  * **Default: on.**
12
12
  *
13
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackcoreno-comments
13
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/core.md#ashstackcoreno-comments
14
14
  */
15
15
  "@ashstack/core/no-comments"?: RuleSetting<[
16
16
  {
@@ -24,7 +24,7 @@ declare module "oxlint" {
24
24
  *
25
25
  * **Default: on.**
26
26
  *
27
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackcoreno-naming-convention
27
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/core.md#ashstackcoreno-naming-convention
28
28
  */
29
29
  "@ashstack/core/no-naming-convention"?: RuleSetting;
30
30
  /**
@@ -32,7 +32,7 @@ declare module "oxlint" {
32
32
  *
33
33
  * **Default: on.**
34
34
  *
35
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackcoreno-packed-condition
35
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/core.md#ashstackcoreno-packed-condition
36
36
  */
37
37
  "@ashstack/core/no-packed-condition"?: RuleSetting<[number]>;
38
38
  /**
@@ -40,7 +40,7 @@ declare module "oxlint" {
40
40
  *
41
41
  * **Default: on.**
42
42
  *
43
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackcoremax-lines
43
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/core.md#ashstackcoremax-lines
44
44
  */
45
45
  "@ashstack/core/max-lines"?: RuleSetting<[number]>;
46
46
  /**
@@ -48,7 +48,7 @@ declare module "oxlint" {
48
48
  *
49
49
  * **Default: on.**
50
50
  *
51
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackcoremax-complexity
51
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/core.md#ashstackcoremax-complexity
52
52
  */
53
53
  "@ashstack/core/max-complexity"?: RuleSetting<[number]>;
54
54
  /**
@@ -56,7 +56,7 @@ declare module "oxlint" {
56
56
  *
57
57
  * **Default: on**, when `zod` is a dependency.
58
58
  *
59
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackzodprefer-enum
59
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/zod.md#ashstackzodprefer-enum
60
60
  */
61
61
  "@ashstack/zod/prefer-enum"?: RuleSetting;
62
62
  }
@@ -10,7 +10,7 @@ declare module "oxlint" {
10
10
  *
11
11
  * **Default: on.**
12
12
  *
13
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-keyboard-will-events
13
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-keyboard-will-events
14
14
  */
15
15
  "@ashstack/react-native/no-keyboard-will-events"?: RuleSetting;
16
16
  /**
@@ -18,7 +18,7 @@ declare module "oxlint" {
18
18
  *
19
19
  * **Default: on.**
20
20
  *
21
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-scroll-position-state
21
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-scroll-position-state
22
22
  */
23
23
  "@ashstack/react-native/no-scroll-position-state"?: RuleSetting;
24
24
  /**
@@ -26,7 +26,7 @@ declare module "oxlint" {
26
26
  *
27
27
  * **Default: on.**
28
28
  *
29
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-conditional-style-array
29
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-conditional-style-array
30
30
  */
31
31
  "@ashstack/react-native/no-conditional-style-array"?: RuleSetting;
32
32
  /**
@@ -34,7 +34,7 @@ declare module "oxlint" {
34
34
  *
35
35
  * **Default: on.**
36
36
  *
37
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-leaked-render
37
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-leaked-render
38
38
  */
39
39
  "@ashstack/react-native/no-leaked-render"?: RuleSetting;
40
40
  /**
@@ -42,7 +42,7 @@ declare module "oxlint" {
42
42
  *
43
43
  * **Default: on.**
44
44
  *
45
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-rn-image-network-source
45
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-rn-image-network-source
46
46
  */
47
47
  "@ashstack/react-native/no-rn-image-network-source"?: RuleSetting;
48
48
  /**
@@ -50,7 +50,7 @@ declare module "oxlint" {
50
50
  *
51
51
  * **Default: on.**
52
52
  *
53
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-redundant-view-nesting
53
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-redundant-view-nesting
54
54
  */
55
55
  "@ashstack/react-native/no-redundant-view-nesting"?: RuleSetting;
56
56
  /**
@@ -58,7 +58,7 @@ declare module "oxlint" {
58
58
  *
59
59
  * **Default: on.**
60
60
  *
61
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-rn-namespace-import
61
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-rn-namespace-import
62
62
  */
63
63
  "@ashstack/react-native/no-rn-namespace-import"?: RuleSetting;
64
64
  /**
@@ -66,7 +66,7 @@ declare module "oxlint" {
66
66
  *
67
67
  * **Default: on.**
68
68
  *
69
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-unlabeled-icon-pressable
69
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-unlabeled-icon-pressable
70
70
  */
71
71
  "@ashstack/react-native/no-unlabeled-icon-pressable"?: RuleSetting;
72
72
  /**
@@ -74,7 +74,7 @@ declare module "oxlint" {
74
74
  *
75
75
  * **Default: on.**
76
76
  *
77
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativehoist-stateless-function
77
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativehoist-stateless-function
78
78
  */
79
79
  "@ashstack/react-native/hoist-stateless-function"?: RuleSetting;
80
80
  /**
@@ -82,7 +82,7 @@ declare module "oxlint" {
82
82
  *
83
83
  * **Default: on.**
84
84
  *
85
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-manual-memo
85
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-manual-memo
86
86
  */
87
87
  "@ashstack/react-native/no-manual-memo"?: RuleSetting;
88
88
  /**
@@ -90,7 +90,7 @@ declare module "oxlint" {
90
90
  *
91
91
  * **Default: on.**
92
92
  *
93
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreact-nativeno-dynamic-import
93
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react-native.md#ashstackreact-nativeno-dynamic-import
94
94
  */
95
95
  "@ashstack/react-native/no-dynamic-import"?: RuleSetting;
96
96
  /**
@@ -98,7 +98,7 @@ declare module "oxlint" {
98
98
  *
99
99
  * **Default: on**, when `react-native-unistyles` is a dependency.
100
100
  *
101
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesanimated-theme
101
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesanimated-theme
102
102
  */
103
103
  "@ashstack/unistyles/animated-theme"?: RuleSetting;
104
104
  /**
@@ -106,7 +106,7 @@ declare module "oxlint" {
106
106
  *
107
107
  * **Default: on**, when `react-native-unistyles` is a dependency.
108
108
  *
109
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylescontent-container
109
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylescontent-container
110
110
  */
111
111
  "@ashstack/unistyles/content-container"?: RuleSetting;
112
112
  /**
@@ -114,7 +114,7 @@ declare module "oxlint" {
114
114
  *
115
115
  * **Default: on**, when `react-native-unistyles` is a dependency.
116
116
  *
117
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesin-sheet
117
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesin-sheet
118
118
  */
119
119
  "@ashstack/unistyles/in-sheet"?: RuleSetting;
120
120
  /**
@@ -122,7 +122,7 @@ declare module "oxlint" {
122
122
  *
123
123
  * **Default: on**, when `react-native-unistyles` is a dependency.
124
124
  *
125
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesinsets
125
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesinsets
126
126
  */
127
127
  "@ashstack/unistyles/insets"?: RuleSetting;
128
128
  /**
@@ -130,7 +130,7 @@ declare module "oxlint" {
130
130
  *
131
131
  * **Default: on**, when `react-native-unistyles` is a dependency.
132
132
  *
133
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesno-hardcoded-color
133
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesno-hardcoded-color
134
134
  */
135
135
  "@ashstack/unistyles/no-hardcoded-color"?: RuleSetting;
136
136
  /**
@@ -138,7 +138,7 @@ declare module "oxlint" {
138
138
  *
139
139
  * **Default: on**, when `react-native-unistyles` is a dependency.
140
140
  *
141
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesno-hardcoded-spacing
141
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesno-hardcoded-spacing
142
142
  */
143
143
  "@ashstack/unistyles/no-hardcoded-spacing"?: RuleSetting;
144
144
  /**
@@ -146,7 +146,7 @@ declare module "oxlint" {
146
146
  *
147
147
  * **Default: on**, when `react-native-unistyles` is a dependency.
148
148
  *
149
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesno-margin
149
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesno-margin
150
150
  */
151
151
  "@ashstack/unistyles/no-margin"?: RuleSetting;
152
152
  /**
@@ -154,7 +154,7 @@ declare module "oxlint" {
154
154
  *
155
155
  * **Default: on**, when `react-native-unistyles` is a dependency.
156
156
  *
157
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesno-paramless-dynamic-function
157
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesno-paramless-dynamic-function
158
158
  */
159
159
  "@ashstack/unistyles/no-paramless-dynamic-function"?: RuleSetting;
160
160
  /**
@@ -162,7 +162,7 @@ declare module "oxlint" {
162
162
  *
163
163
  * **Default: on**, when `react-native-unistyles` is a dependency.
164
164
  *
165
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesno-style-spread
165
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesno-style-spread
166
166
  */
167
167
  "@ashstack/unistyles/no-style-spread"?: RuleSetting;
168
168
  /**
@@ -170,7 +170,7 @@ declare module "oxlint" {
170
170
  *
171
171
  * **Default: on**, when `react-native-unistyles` is a dependency.
172
172
  *
173
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesno-unused-styles
173
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesno-unused-styles
174
174
  */
175
175
  "@ashstack/unistyles/no-unused-styles"?: RuleSetting;
176
176
  /**
@@ -178,7 +178,7 @@ declare module "oxlint" {
178
178
  *
179
179
  * **Default: on**, when `react-native-unistyles` is a dependency.
180
180
  *
181
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylesrtl-style-call
181
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylesrtl-style-call
182
182
  */
183
183
  "@ashstack/unistyles/rtl-style-call"?: RuleSetting;
184
184
  /**
@@ -186,7 +186,7 @@ declare module "oxlint" {
186
186
  *
187
187
  * **Default: on**, when `react-native-unistyles` is a dependency.
188
188
  *
189
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylestheme-screen-component
189
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylestheme-screen-component
190
190
  */
191
191
  "@ashstack/unistyles/theme-screen-component"?: RuleSetting;
192
192
  /**
@@ -194,7 +194,7 @@ declare module "oxlint" {
194
194
  *
195
195
  * **Default: on**, when `react-native-unistyles` is a dependency.
196
196
  *
197
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistylestheme-style-attr
197
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistylestheme-style-attr
198
198
  */
199
199
  "@ashstack/unistyles/theme-style-attr"?: RuleSetting;
200
200
  /**
@@ -202,7 +202,7 @@ declare module "oxlint" {
202
202
  *
203
203
  * **Default: on**, when `@legendapp/list` is a dependency.
204
204
  *
205
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listrequired-props
205
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listrequired-props
206
206
  */
207
207
  "@ashstack/legend-list/required-props"?: RuleSetting;
208
208
  /**
@@ -210,7 +210,7 @@ declare module "oxlint" {
210
210
  *
211
211
  * **Default: on**, when `@legendapp/list` is a dependency.
212
212
  *
213
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-index-key-extractor
213
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-index-key-extractor
214
214
  */
215
215
  "@ashstack/legend-list/no-index-key-extractor"?: RuleSetting;
216
216
  /**
@@ -218,7 +218,7 @@ declare module "oxlint" {
218
218
  *
219
219
  * **Default: on**, when `@legendapp/list` is a dependency.
220
220
  *
221
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-remount-key
221
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-remount-key
222
222
  */
223
223
  "@ashstack/legend-list/no-remount-key"?: RuleSetting;
224
224
  /**
@@ -226,7 +226,7 @@ declare module "oxlint" {
226
226
  *
227
227
  * **Default: on**, when `@legendapp/list` is a dependency.
228
228
  *
229
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-inline-render-item-props
229
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-inline-render-item-props
230
230
  */
231
231
  "@ashstack/legend-list/no-inline-render-item-props"?: RuleSetting;
232
232
  /**
@@ -234,7 +234,7 @@ declare module "oxlint" {
234
234
  *
235
235
  * **Default: on**, when `@legendapp/list` is a dependency.
236
236
  *
237
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-mixed-children
237
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-mixed-children
238
238
  */
239
239
  "@ashstack/legend-list/no-mixed-children"?: RuleSetting;
240
240
  /**
@@ -242,7 +242,7 @@ declare module "oxlint" {
242
242
  *
243
243
  * **Default: on**, when `@legendapp/list` is a dependency.
244
244
  *
245
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-flex-in-content-container
245
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-flex-in-content-container
246
246
  */
247
247
  "@ashstack/legend-list/no-flex-in-content-container"?: RuleSetting;
248
248
  /**
@@ -250,7 +250,7 @@ declare module "oxlint" {
250
250
  *
251
251
  * **Default: on**, when `@legendapp/list` is a dependency.
252
252
  *
253
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listtyped-items-need-item-type
253
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listtyped-items-need-item-type
254
254
  */
255
255
  "@ashstack/legend-list/typed-items-need-item-type"?: RuleSetting;
256
256
  /**
@@ -258,7 +258,7 @@ declare module "oxlint" {
258
258
  *
259
259
  * **Default: on**, when `@legendapp/list` is a dependency.
260
260
  *
261
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-scrollview-map
261
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-scrollview-map
262
262
  */
263
263
  "@ashstack/legend-list/no-scrollview-map"?: RuleSetting;
264
264
  /**
@@ -266,7 +266,7 @@ declare module "oxlint" {
266
266
  *
267
267
  * **Default: on**, when `@legendapp/list` is a dependency.
268
268
  *
269
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-listno-unsupported-props
269
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-listno-unsupported-props
270
270
  */
271
271
  "@ashstack/legend-list/no-unsupported-props"?: RuleSetting;
272
272
  /**
@@ -274,7 +274,7 @@ declare module "oxlint" {
274
274
  *
275
275
  * **Default: on**, when `@legendapp/state` is a dependency.
276
276
  *
277
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-assignment
277
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-assignment
278
278
  */
279
279
  "@ashstack/legend-state/no-assignment"?: RuleSetting;
280
280
  /**
@@ -282,7 +282,7 @@ declare module "oxlint" {
282
282
  *
283
283
  * **Default: on**, when `@legendapp/state` is a dependency.
284
284
  *
285
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-statenaming
285
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-statenaming
286
286
  */
287
287
  "@ashstack/legend-state/naming"?: RuleSetting;
288
288
  /**
@@ -290,7 +290,7 @@ declare module "oxlint" {
290
290
  *
291
291
  * **Default: on**, when `@legendapp/state` is a dependency.
292
292
  *
293
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-nested-observable
293
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-nested-observable
294
294
  */
295
295
  "@ashstack/legend-state/no-nested-observable"?: RuleSetting;
296
296
  /**
@@ -298,7 +298,7 @@ declare module "oxlint" {
298
298
  *
299
299
  * **Default: on**, when `@legendapp/state` is a dependency.
300
300
  *
301
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-react-mirror
301
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-react-mirror
302
302
  */
303
303
  "@ashstack/legend-state/no-react-mirror"?: RuleSetting;
304
304
  /**
@@ -306,7 +306,7 @@ declare module "oxlint" {
306
306
  *
307
307
  * **Default: on**, when `@legendapp/state` is a dependency.
308
308
  *
309
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-untracked-get-in-jsx
309
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-untracked-get-in-jsx
310
310
  */
311
311
  "@ashstack/legend-state/no-untracked-get-in-jsx"?: RuleSetting;
312
312
  /**
@@ -314,7 +314,7 @@ declare module "oxlint" {
314
314
  *
315
315
  * **Default: on**, when `@legendapp/state` is a dependency.
316
316
  *
317
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-peek-in-selector
317
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-peek-in-selector
318
318
  */
319
319
  "@ashstack/legend-state/no-peek-in-selector"?: RuleSetting;
320
320
  /**
@@ -322,7 +322,7 @@ declare module "oxlint" {
322
322
  *
323
323
  * **Default: on**, when `@legendapp/state` is a dependency.
324
324
  *
325
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-object-selector
325
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-object-selector
326
326
  */
327
327
  "@ashstack/legend-state/no-object-selector"?: RuleSetting;
328
328
  /**
@@ -330,7 +330,7 @@ declare module "oxlint" {
330
330
  *
331
331
  * **Default: on**, when `@legendapp/state` is a dependency.
332
332
  *
333
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-stateno-observable-in-component
333
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-stateno-observable-in-component
334
334
  */
335
335
  "@ashstack/legend-state/no-observable-in-component"?: RuleSetting;
336
336
  /**
@@ -338,7 +338,7 @@ declare module "oxlint" {
338
338
  *
339
339
  * **Default: on**, when `react-native-reanimated` is a dependency.
340
340
  *
341
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedanimated-reaction-safety
341
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedanimated-reaction-safety
342
342
  */
343
343
  "@ashstack/reanimated/animated-reaction-safety"?: RuleSetting;
344
344
  /**
@@ -346,7 +346,7 @@ declare module "oxlint" {
346
346
  *
347
347
  * **Default: on**, when `react-native-reanimated` is a dependency.
348
348
  *
349
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedanimated-style-needs-animated-component
349
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedanimated-style-needs-animated-component
350
350
  */
351
351
  "@ashstack/reanimated/animated-style-needs-animated-component"?: RuleSetting;
352
352
  /**
@@ -354,7 +354,7 @@ declare module "oxlint" {
354
354
  *
355
355
  * **Default: on**, when `react-native-reanimated` is a dependency.
356
356
  *
357
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedanimated-updater-purity
357
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedanimated-updater-purity
358
358
  */
359
359
  "@ashstack/reanimated/animated-updater-purity"?: RuleSetting;
360
360
  /**
@@ -362,7 +362,7 @@ declare module "oxlint" {
362
362
  *
363
363
  * **Default: on**, when `react-native-reanimated` is a dependency.
364
364
  *
365
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedgpu-properties-only
365
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedgpu-properties-only
366
366
  */
367
367
  "@ashstack/reanimated/gpu-properties-only"?: RuleSetting;
368
368
  /**
@@ -370,7 +370,7 @@ declare module "oxlint" {
370
370
  *
371
371
  * **Default: on**, when `react-native-reanimated` is a dependency.
372
372
  *
373
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedhoist-layout-animation-builder
373
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedhoist-layout-animation-builder
374
374
  */
375
375
  "@ashstack/reanimated/hoist-layout-animation-builder"?: RuleSetting;
376
376
  /**
@@ -378,7 +378,7 @@ declare module "oxlint" {
378
378
  *
379
379
  * **Default: on**, when `react-native-reanimated` is a dependency.
380
380
  *
381
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedinterpolate-needs-clamp
381
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedinterpolate-needs-clamp
382
382
  */
383
383
  "@ashstack/reanimated/interpolate-needs-clamp"?: RuleSetting;
384
384
  /**
@@ -386,7 +386,7 @@ declare module "oxlint" {
386
386
  *
387
387
  * **Default: on**, when `react-native-reanimated` is a dependency.
388
388
  *
389
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedno-shared-value-dot-value
389
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedno-shared-value-dot-value
390
390
  */
391
391
  "@ashstack/reanimated/no-shared-value-dot-value"?: RuleSetting;
392
392
  /**
@@ -394,7 +394,7 @@ declare module "oxlint" {
394
394
  *
395
395
  * **Default: on**, when `react-native-reanimated` is a dependency.
396
396
  *
397
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedno-react-state-from-continuous-worklet
397
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedno-react-state-from-continuous-worklet
398
398
  */
399
399
  "@ashstack/reanimated/no-react-state-from-continuous-worklet"?: RuleSetting;
400
400
  /**
@@ -402,7 +402,7 @@ declare module "oxlint" {
402
402
  *
403
403
  * **Default: on**, when `react-native-reanimated` is a dependency.
404
404
  *
405
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedprefer-lazy-shared-value-initializer
405
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedprefer-lazy-shared-value-initializer
406
406
  */
407
407
  "@ashstack/reanimated/prefer-lazy-shared-value-initializer"?: RuleSetting;
408
408
  /**
@@ -410,7 +410,7 @@ declare module "oxlint" {
410
410
  *
411
411
  * **Default: on**, when `react-native-reanimated` is a dependency.
412
412
  *
413
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedschedule-on-rn-scope
413
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedschedule-on-rn-scope
414
414
  */
415
415
  "@ashstack/reanimated/schedule-on-rn-scope"?: RuleSetting;
416
416
  /**
@@ -418,7 +418,7 @@ declare module "oxlint" {
418
418
  *
419
419
  * **Default: on**, when `react-native-reanimated` is a dependency.
420
420
  *
421
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimatedshared-value-usage
421
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimatedshared-value-usage
422
422
  */
423
423
  "@ashstack/reanimated/shared-value-usage"?: RuleSetting;
424
424
  /**
@@ -426,7 +426,7 @@ declare module "oxlint" {
426
426
  *
427
427
  * **Default: on**, when `react-native-turbo-image` is a dependency.
428
428
  *
429
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackturbo-imagerequire-resize
429
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/turbo-image.md#ashstackturbo-imagerequire-resize
430
430
  */
431
431
  "@ashstack/turbo-image/require-resize"?: RuleSetting;
432
432
  /**
@@ -434,7 +434,7 @@ declare module "oxlint" {
434
434
  *
435
435
  * **Default: on**, when `react-native-turbo-image` is a dependency.
436
436
  *
437
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackturbo-imagerequire-cache-policy
437
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/turbo-image.md#ashstackturbo-imagerequire-cache-policy
438
438
  */
439
439
  "@ashstack/turbo-image/require-cache-policy"?: RuleSetting;
440
440
  /**
@@ -442,7 +442,7 @@ declare module "oxlint" {
442
442
  *
443
443
  * **Default: on**, when `@shopify/react-native-skia` is a dependency.
444
444
  *
445
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackskiacanvas-opaque
445
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/skia.md#ashstackskiacanvas-opaque
446
446
  */
447
447
  "@ashstack/skia/canvas-opaque"?: RuleSetting;
448
448
  }
@@ -2,7 +2,7 @@ import type { AllowWarnDeny } from "oxlint";
2
2
  /** A severity, or a severity followed by as many of the rule's options as you want to set. */
3
3
  type RuleSetting<Options extends unknown[] = []> = AllowWarnDeny | [AllowWarnDeny, ...Partial<Options>];
4
4
  /** Every rule id `react()` adds on top of the entry below it. */
5
- export type ReactRuleId = "@ashstack/react/no-unlabeled-icon-button" | "@ashstack/react/no-svg-without-title" | "@ashstack/react/hoist-intl" | "@ashstack/react/prefer-design-system" | "@ashstack/react/components-tsx-only" | "@ashstack/query/no-inline-keys" | "@ashstack/query/no-deprecated-filters" | "@ashstack/query/require-destructured-hooks" | "@ashstack/query/no-fetch-in-query-fn" | "@ashstack/query/next-page-param-undefined" | "@ashstack/zustand/require-selector" | "@ashstack/i18n/no-bare-text" | "@ashstack/i18n/no-bare-attrs" | "@ashstack/i18n/no-bare-toast" | "@ashstack/stylex/inline-props" | "@ashstack/stylex/no-conflicting-props" | "@ashstack/stylex/no-duplicate-styles" | "@ashstack/stylex/require-tokens" | "@ashstack/stylex/use-sx-prop" | "@ashstack/tailwind/prefer-cn" | "@ashstack/tailwind/use-logical-classes" | "@ashstack/tanstack-router/require-selector" | "@ashstack/tanstack-router/no-search-casts" | "@ashstack/effects/no-derived-state" | "@ashstack/effects/no-chain-state-updates" | "@ashstack/effects/no-event-handler" | "@ashstack/effects/no-adjust-state-on-prop-change" | "@ashstack/effects/no-reset-all-state-on-prop-change" | "@ashstack/effects/no-pass-live-state-to-parent" | "@ashstack/effects/no-pass-data-to-parent" | "@ashstack/effects/no-external-store-subscription" | "@ashstack/effects/no-initialize-state";
5
+ export type ReactRuleId = "@ashstack/react/no-unlabeled-icon-button" | "@ashstack/react/no-svg-without-title" | "@ashstack/react/hoist-intl" | "@ashstack/react/prefer-design-system" | "@ashstack/react/components-tsx-only" | "@ashstack/query/no-inline-keys" | "@ashstack/query/no-deprecated-filters" | "@ashstack/query/require-destructured-hooks" | "@ashstack/query/no-fetch-in-query-fn" | "@ashstack/query/next-page-param-undefined" | "@ashstack/zustand/require-selector" | "@ashstack/i18n/no-bare-text" | "@ashstack/i18n/no-bare-attrs" | "@ashstack/i18n/no-bare-toast" | "@ashstack/stylex/inline-props" | "@ashstack/stylex/no-conflicting-props" | "@ashstack/stylex/no-duplicate-styles" | "@ashstack/stylex/require-tokens" | "@ashstack/stylex/spread-props" | "@ashstack/tailwind/prefer-cn" | "@ashstack/tailwind/use-logical-classes" | "@ashstack/tanstack-router/require-selector" | "@ashstack/tanstack-router/no-search-casts" | "@ashstack/effects/no-derived-state" | "@ashstack/effects/no-chain-state-updates" | "@ashstack/effects/no-event-handler" | "@ashstack/effects/no-adjust-state-on-prop-change" | "@ashstack/effects/no-reset-all-state-on-prop-change" | "@ashstack/effects/no-pass-live-state-to-parent" | "@ashstack/effects/no-pass-data-to-parent" | "@ashstack/effects/no-external-store-subscription" | "@ashstack/effects/no-initialize-state";
6
6
  declare module "oxlint" {
7
7
  interface DummyRuleMap {
8
8
  /**
@@ -10,7 +10,7 @@ declare module "oxlint" {
10
10
  *
11
11
  * **Default: on.**
12
12
  *
13
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreactno-unlabeled-icon-button
13
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react.md#ashstackreactno-unlabeled-icon-button
14
14
  */
15
15
  "@ashstack/react/no-unlabeled-icon-button"?: RuleSetting;
16
16
  /**
@@ -18,7 +18,7 @@ declare module "oxlint" {
18
18
  *
19
19
  * **Default: on.**
20
20
  *
21
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreactno-svg-without-title
21
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react.md#ashstackreactno-svg-without-title
22
22
  */
23
23
  "@ashstack/react/no-svg-without-title"?: RuleSetting;
24
24
  /**
@@ -26,7 +26,7 @@ declare module "oxlint" {
26
26
  *
27
27
  * **Default: on.**
28
28
  *
29
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreacthoist-intl
29
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react.md#ashstackreacthoist-intl
30
30
  */
31
31
  "@ashstack/react/hoist-intl"?: RuleSetting;
32
32
  /**
@@ -34,7 +34,7 @@ declare module "oxlint" {
34
34
  *
35
35
  * **Default: off.** Turn it on by id in your `rules` block.
36
36
  *
37
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreactprefer-design-system
37
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react.md#ashstackreactprefer-design-system
38
38
  */
39
39
  "@ashstack/react/prefer-design-system"?: RuleSetting<[
40
40
  {
@@ -54,7 +54,7 @@ declare module "oxlint" {
54
54
  *
55
55
  * **Default: off.** Turn it on by id in your `rules` block.
56
56
  *
57
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreactcomponents-tsx-only
57
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/react.md#ashstackreactcomponents-tsx-only
58
58
  */
59
59
  "@ashstack/react/components-tsx-only"?: RuleSetting<[{
60
60
  dir?: string;
@@ -64,7 +64,7 @@ declare module "oxlint" {
64
64
  *
65
65
  * **Default: on**, when `@tanstack/react-query` is a dependency.
66
66
  *
67
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackqueryno-inline-keys
67
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/query.md#ashstackqueryno-inline-keys
68
68
  */
69
69
  "@ashstack/query/no-inline-keys"?: RuleSetting;
70
70
  /**
@@ -72,7 +72,7 @@ declare module "oxlint" {
72
72
  *
73
73
  * **Default: on**, when `@tanstack/react-query` is a dependency.
74
74
  *
75
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackqueryno-deprecated-filters
75
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/query.md#ashstackqueryno-deprecated-filters
76
76
  */
77
77
  "@ashstack/query/no-deprecated-filters"?: RuleSetting;
78
78
  /**
@@ -80,7 +80,7 @@ declare module "oxlint" {
80
80
  *
81
81
  * **Default: on**, when `@tanstack/react-query` is a dependency.
82
82
  *
83
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackqueryrequire-destructured-hooks
83
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/query.md#ashstackqueryrequire-destructured-hooks
84
84
  */
85
85
  "@ashstack/query/require-destructured-hooks"?: RuleSetting;
86
86
  /**
@@ -88,7 +88,7 @@ declare module "oxlint" {
88
88
  *
89
89
  * **Default: on**, when `@tanstack/react-query` is a dependency.
90
90
  *
91
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackqueryno-fetch-in-query-fn
91
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/query.md#ashstackqueryno-fetch-in-query-fn
92
92
  */
93
93
  "@ashstack/query/no-fetch-in-query-fn"?: RuleSetting;
94
94
  /**
@@ -96,7 +96,7 @@ declare module "oxlint" {
96
96
  *
97
97
  * **Default: on**, when `@tanstack/react-query` is a dependency.
98
98
  *
99
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackquerynext-page-param-undefined
99
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/query.md#ashstackquerynext-page-param-undefined
100
100
  */
101
101
  "@ashstack/query/next-page-param-undefined"?: RuleSetting;
102
102
  /**
@@ -104,7 +104,7 @@ declare module "oxlint" {
104
104
  *
105
105
  * **Default: on**, when `zustand` is a dependency.
106
106
  *
107
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackzustandrequire-selector
107
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/zustand.md#ashstackzustandrequire-selector
108
108
  */
109
109
  "@ashstack/zustand/require-selector"?: RuleSetting;
110
110
  /**
@@ -112,7 +112,7 @@ declare module "oxlint" {
112
112
  *
113
113
  * **Default: on**, when `i18next`, `react-i18next`, `@lingui/core`, `react-intl`, `use-intl`, `next-intl` or `expo-localization` is a dependency.
114
114
  *
115
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacki18nno-bare-text
115
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/i18n.md#ashstacki18nno-bare-text
116
116
  */
117
117
  "@ashstack/i18n/no-bare-text"?: RuleSetting;
118
118
  /**
@@ -120,7 +120,7 @@ declare module "oxlint" {
120
120
  *
121
121
  * **Default: on**, when `i18next`, `react-i18next`, `@lingui/core`, `react-intl`, `use-intl`, `next-intl` or `expo-localization` is a dependency.
122
122
  *
123
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacki18nno-bare-attrs
123
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/i18n.md#ashstacki18nno-bare-attrs
124
124
  */
125
125
  "@ashstack/i18n/no-bare-attrs"?: RuleSetting<[{
126
126
  attributes?: Array<string>;
@@ -130,15 +130,15 @@ declare module "oxlint" {
130
130
  *
131
131
  * **Default: on**, when `i18next`, `react-i18next`, `@lingui/core`, `react-intl`, `use-intl`, `next-intl` or `expo-localization` is a dependency.
132
132
  *
133
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacki18nno-bare-toast
133
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/i18n.md#ashstacki18nno-bare-toast
134
134
  */
135
135
  "@ashstack/i18n/no-bare-toast"?: RuleSetting;
136
136
  /**
137
- * Use `stylex.props(...)` as JSX props or return/store its result.
137
+ * Spread `stylex.props(...)` in JSX or return its full result; do not store it.
138
138
  *
139
139
  * **Default: on**, when `@stylexjs/stylex` is a dependency.
140
140
  *
141
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexinline-props
141
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/stylex.md#ashstackstylexinline-props
142
142
  */
143
143
  "@ashstack/stylex/inline-props"?: RuleSetting;
144
144
  /**
@@ -146,7 +146,7 @@ declare module "oxlint" {
146
146
  *
147
147
  * **Default: on**, when `@stylexjs/stylex` is a dependency.
148
148
  *
149
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexno-conflicting-props
149
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/stylex.md#ashstackstylexno-conflicting-props
150
150
  */
151
151
  "@ashstack/stylex/no-conflicting-props"?: RuleSetting;
152
152
  /**
@@ -154,7 +154,7 @@ declare module "oxlint" {
154
154
  *
155
155
  * **Default: on**, when `@stylexjs/stylex` is a dependency.
156
156
  *
157
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexno-duplicate-styles
157
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/stylex.md#ashstackstylexno-duplicate-styles
158
158
  */
159
159
  "@ashstack/stylex/no-duplicate-styles"?: RuleSetting;
160
160
  /**
@@ -162,7 +162,7 @@ declare module "oxlint" {
162
162
  *
163
163
  * **Default: on**, when `@stylexjs/stylex` is a dependency.
164
164
  *
165
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexrequire-tokens
165
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/stylex.md#ashstackstylexrequire-tokens
166
166
  */
167
167
  "@ashstack/stylex/require-tokens"?: RuleSetting<[
168
168
  {
@@ -172,19 +172,19 @@ declare module "oxlint" {
172
172
  }
173
173
  ]>;
174
174
  /**
175
- * Name StyleX override props `sx` or `<slot>Sx`.
175
+ * Spread complete `stylex.props(...)` results to style custom components.
176
176
  *
177
177
  * **Default: on**, when `@stylexjs/stylex` is a dependency.
178
178
  *
179
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylexuse-sx-prop
179
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/stylex.md#ashstackstylexspread-props
180
180
  */
181
- "@ashstack/stylex/use-sx-prop"?: RuleSetting;
181
+ "@ashstack/stylex/spread-props"?: RuleSetting;
182
182
  /**
183
183
  * Require a dynamic class value to go through `cn(...)` before it reaches a `class`, `className` or `*ClassName` prop. Reports both where the value reaches the prop and where a variable named after classes is declared.
184
184
  *
185
185
  * **Default: on**, when `tailwindcss` is a dependency.
186
186
  *
187
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktailwindprefer-cn
187
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/tailwind.md#ashstacktailwindprefer-cn
188
188
  */
189
189
  "@ashstack/tailwind/prefer-cn"?: RuleSetting;
190
190
  /**
@@ -192,7 +192,7 @@ declare module "oxlint" {
192
192
  *
193
193
  * **Default: on**, when `tailwindcss` is a dependency.
194
194
  *
195
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktailwinduse-logical-classes
195
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/tailwind.md#ashstacktailwinduse-logical-classes
196
196
  */
197
197
  "@ashstack/tailwind/use-logical-classes"?: RuleSetting;
198
198
  /**
@@ -200,7 +200,7 @@ declare module "oxlint" {
200
200
  *
201
201
  * **Default: on**, when `@tanstack/react-router` is a dependency.
202
202
  *
203
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktanstack-routerrequire-selector
203
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/tanstack-router.md#ashstacktanstack-routerrequire-selector
204
204
  */
205
205
  "@ashstack/tanstack-router/require-selector"?: RuleSetting;
206
206
  /**
@@ -208,7 +208,7 @@ declare module "oxlint" {
208
208
  *
209
209
  * **Default: on**, when `@tanstack/react-router` is a dependency.
210
210
  *
211
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktanstack-routerno-search-casts
211
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/tanstack-router.md#ashstacktanstack-routerno-search-casts
212
212
  */
213
213
  "@ashstack/tanstack-router/no-search-casts"?: RuleSetting;
214
214
  /**
@@ -216,7 +216,7 @@ declare module "oxlint" {
216
216
  *
217
217
  * **Default: on.**
218
218
  *
219
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-derived-state
219
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-derived-state
220
220
  */
221
221
  "@ashstack/effects/no-derived-state"?: RuleSetting;
222
222
  /**
@@ -224,7 +224,7 @@ declare module "oxlint" {
224
224
  *
225
225
  * **Default: on.**
226
226
  *
227
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-chain-state-updates
227
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-chain-state-updates
228
228
  */
229
229
  "@ashstack/effects/no-chain-state-updates"?: RuleSetting;
230
230
  /**
@@ -232,7 +232,7 @@ declare module "oxlint" {
232
232
  *
233
233
  * **Default: on.**
234
234
  *
235
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-event-handler
235
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-event-handler
236
236
  */
237
237
  "@ashstack/effects/no-event-handler"?: RuleSetting;
238
238
  /**
@@ -240,7 +240,7 @@ declare module "oxlint" {
240
240
  *
241
241
  * **Default: on.**
242
242
  *
243
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-adjust-state-on-prop-change
243
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-adjust-state-on-prop-change
244
244
  */
245
245
  "@ashstack/effects/no-adjust-state-on-prop-change"?: RuleSetting;
246
246
  /**
@@ -248,7 +248,7 @@ declare module "oxlint" {
248
248
  *
249
249
  * **Default: on.**
250
250
  *
251
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-reset-all-state-on-prop-change
251
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-reset-all-state-on-prop-change
252
252
  */
253
253
  "@ashstack/effects/no-reset-all-state-on-prop-change"?: RuleSetting;
254
254
  /**
@@ -256,7 +256,7 @@ declare module "oxlint" {
256
256
  *
257
257
  * **Default: on.**
258
258
  *
259
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-pass-live-state-to-parent
259
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-pass-live-state-to-parent
260
260
  */
261
261
  "@ashstack/effects/no-pass-live-state-to-parent"?: RuleSetting;
262
262
  /**
@@ -264,7 +264,7 @@ declare module "oxlint" {
264
264
  *
265
265
  * **Default: on.**
266
266
  *
267
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-pass-data-to-parent
267
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-pass-data-to-parent
268
268
  */
269
269
  "@ashstack/effects/no-pass-data-to-parent"?: RuleSetting;
270
270
  /**
@@ -272,7 +272,7 @@ declare module "oxlint" {
272
272
  *
273
273
  * **Default: on.**
274
274
  *
275
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-external-store-subscription
275
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-external-store-subscription
276
276
  */
277
277
  "@ashstack/effects/no-external-store-subscription"?: RuleSetting;
278
278
  /**
@@ -280,7 +280,7 @@ declare module "oxlint" {
280
280
  *
281
281
  * **Default: on.**
282
282
  *
283
- * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackeffectsno-initialize-state
283
+ * @see https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/effects.md#ashstackeffectsno-initialize-state
284
284
  */
285
285
  "@ashstack/effects/no-initialize-state"?: RuleSetting;
286
286
  }
@@ -98,27 +98,27 @@ export interface BanGroup {
98
98
  restrictedImports: RestrictedImports;
99
99
  }
100
100
  export type CoreOptions = {
101
- /** [`@ashstack/zod/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackzod) — detected from `zod` */
101
+ /** [`@ashstack/zod/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/zod.md#ashstackzod) — detected from `zod` */
102
102
  zod?: boolean;
103
103
  };
104
104
  export type ReactOptions = CoreOptions & {
105
105
  /**
106
106
  * Is the React Compiler on? Defaults to `true` — every other React setting here assumes it.
107
- * Set `false` and the four [`react-perf/` inline-prop rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#react)
107
+ * Set `false` and the four [`react-perf/` inline-prop rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/entries/react.md#react)
108
108
  * come back on, since without the compiler a fresh object, array, function or element in a prop really does re-render the child.
109
109
  */
110
110
  reactCompiler?: boolean;
111
- /** [`@ashstack/query/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackquery) — detected from `@tanstack/react-query` */
111
+ /** [`@ashstack/query/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/query.md#ashstackquery) — detected from `@tanstack/react-query` */
112
112
  query?: boolean;
113
- /** [`@ashstack/zustand/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackzustand) — detected from `zustand` */
113
+ /** [`@ashstack/zustand/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/zustand.md#ashstackzustand) — detected from `zustand` */
114
114
  zustand?: boolean;
115
- /** [`@ashstack/i18n/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacki18n) — detected from i18next/lingui/react-intl/use-intl/next-intl/expo-localization */
115
+ /** [`@ashstack/i18n/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/i18n.md#ashstacki18n) — detected from i18next/lingui/react-intl/use-intl/next-intl/expo-localization */
116
116
  i18n?: boolean;
117
- /** [`@ashstack/stylex/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackstylex) — detected from `@stylexjs/stylex` */
117
+ /** [`@ashstack/stylex/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/stylex.md#ashstackstylex) — detected from `@stylexjs/stylex` */
118
118
  stylex?: boolean;
119
- /** [`@ashstack/tailwind/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktailwind) — detected from `tailwindcss` */
119
+ /** [`@ashstack/tailwind/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/tailwind.md#ashstacktailwind) — detected from `tailwindcss` */
120
120
  tailwind?: boolean;
121
- /** [`@ashstack/tanstack-router/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacktanstack-router) — detected from `@tanstack/react-router` */
121
+ /** [`@ashstack/tanstack-router/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/tanstack-router.md#ashstacktanstack-router) — detected from `@tanstack/react-router` */
122
122
  tanstackRouter?: boolean;
123
123
  };
124
124
  /**
@@ -127,19 +127,19 @@ export type ReactOptions = CoreOptions & {
127
127
  * by name in your `rules` block.
128
128
  */
129
129
  export type ReactNativeOptions = ReactOptions & {
130
- /** [`@ashstack/unistyles/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackunistyles) + StyleSheet/Dimensions/SafeArea import bans — `react-native-unistyles` */
130
+ /** [`@ashstack/unistyles/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/unistyles.md#ashstackunistyles) + StyleSheet/Dimensions/SafeArea import bans — `react-native-unistyles` */
131
131
  unistyles?: boolean;
132
- /** [`@ashstack/legend-list/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-list) + FlatList/FlashList bans — `@legendapp/list` */
132
+ /** [`@ashstack/legend-list/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-list.md#ashstacklegend-list) + FlatList/FlashList bans — `@legendapp/list` */
133
133
  legendList?: boolean;
134
- /** [`@ashstack/legend-state/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstacklegend-state) + use$/useSelector ban — `@legendapp/state` */
134
+ /** [`@ashstack/legend-state/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/legend-state.md#ashstacklegend-state) + use$/useSelector ban — `@legendapp/state` */
135
135
  legendState?: boolean;
136
- /** [`@ashstack/reanimated/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackreanimated) + Animated/runOnJS bans — `react-native-reanimated` */
136
+ /** [`@ashstack/reanimated/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/reanimated.md#ashstackreanimated) + Animated/runOnJS bans — `react-native-reanimated` */
137
137
  reanimated?: boolean;
138
- /** [`@ashstack/turbo-image/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackturbo-image) — `react-native-turbo-image` */
138
+ /** [`@ashstack/turbo-image/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/turbo-image.md#ashstackturbo-image) — `react-native-turbo-image` */
139
139
  turboImage?: boolean;
140
- /** [`@ashstack/skia/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackskia) — `@shopify/react-native-skia` */
140
+ /** [`@ashstack/skia/` rules](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/skia.md#ashstackskia) — `@shopify/react-native-skia` */
141
141
  skia?: boolean;
142
- /** [`@ashstack/keyboard` import bans](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#ashstackkeyboard) — `react-native-keyboard-controller` */
142
+ /** [`@ashstack/keyboard` import bans](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/keyboard.md#ashstackkeyboard) — `react-native-keyboard-controller` */
143
143
  keyboard?: boolean;
144
144
  };
145
145
  /** The config object an entry returns: oxlint's own shape, so `defineConfig({ extends: [core()] })` typechecks. */
@@ -20,7 +20,7 @@ export declare const COMPONENT_MAX_COMPLEXITY = 10;
20
20
  * diagnostics, you-might-not-need-an-effect, and the auto-detected library
21
21
  * modules (query, zustand, i18n, StyleX).
22
22
  *
23
- * @see [every rule `react()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#react)
23
+ * @see [every rule `react()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/entries/react.md#react)
24
24
  */
25
25
  declare const react: (options?: ReactOptions) => OxlintConfig;
26
26
  export { react };
@@ -1 +1 @@
1
- import{defineModule as e}from"../../../lib/module.js";import{inlineProps as o}from"./inline-props.js";import{noConflictingProps as r}from"./no-conflicting-props.js";import{noDuplicateStyles as t}from"./no-duplicate-styles.js";import{requireTokens as s}from"./require-tokens.js";import{useSxProp as i}from"./use-sx-prop.js";export default e({meta:{name:"@ashstack/stylex"},url:import.meta.url,packages:["@stylexjs/stylex"],option:"stylex",docsWhen:"auto-enabled by `react()` when `@stylexjs/stylex` is a dependency",rules:{"inline-props":o,"no-conflicting-props":r,"no-duplicate-styles":t,"require-tokens":s,"use-sx-prop":i}});
1
+ import{defineModule as e}from"../../../lib/module.js";import{inlineProps as o}from"./inline-props.js";import{noConflictingProps as r}from"./no-conflicting-props.js";import{noDuplicateStyles as t}from"./no-duplicate-styles.js";import{requireTokens as s}from"./require-tokens.js";import{spreadProps as p}from"./spread-props.js";export default e({meta:{name:"@ashstack/stylex"},url:import.meta.url,packages:["@stylexjs/stylex"],option:"stylex",docsWhen:"auto-enabled by `react()` when `@stylexjs/stylex` is a dependency",rules:{"inline-props":o,"no-conflicting-props":r,"no-duplicate-styles":t,"require-tokens":s,"spread-props":p}});
@@ -1 +1 @@
1
- import{problem as o}from"../../../lib/ast.js";import{collectImports as n,isStylexCall as p}from"./imports.js";const s="Use `stylex.props(...)` as JSX props or return/store its result.";export const inlineProps=o(s,{createOnce(t){const r={namespaces:new Set,named:new Set};return{before(){r.namespaces.clear();r.named.clear();return t.sourceCode.text.includes("stylex")},Program(e){n(e.body,"props",r)},CallExpression(e){if(!p(t,e,"props",r))return;if(["JSXSpreadAttribute","VariableDeclarator","ReturnStatement","ArrowFunctionExpression"].includes(e.parent.type))return;t.report({node:e,message:s})}}}});
1
+ import{problem as n}from"../../../lib/ast.js";import{collectImports as o,isStylexCall as p}from"./imports.js";const s="Spread `stylex.props(...)` in JSX or return its full result; do not store it.";export const inlineProps=n(s,{createOnce(t){const r={namespaces:new Set,named:new Set};return{before(){r.namespaces.clear();r.named.clear();return t.sourceCode.text.includes("stylex")},Program(e){o(e.body,"props",r)},CallExpression(e){if(!p(t,e,"props",r))return;if(["JSXSpreadAttribute","ReturnStatement","ArrowFunctionExpression"].includes(e.parent.type))return;t.report({node:e,message:s})}}}});
@@ -0,0 +1 @@
1
+ import{attributeName as x,problem as z}from"../../../lib/ast.js";import{collectImports as c,isImportedBinding as g,isStylexCall as S}from"./imports.js";const b=(s,a)=>{if(a.type!=="Identifier")return null;let i=s.sourceCode.getScope(a);while(i){const l=i.set.get(a.name);if(l){const o=l.defs.find((f)=>f.node.type==="VariableDeclarator")?.node;return o?.type==="VariableDeclarator"?o.init??null:null}i=i.upper}return null};export const spreadProps=z("Spread complete `stylex.props(...)` results to style custom components.",{meta:{hasSuggestions:!0},createOnce(s){const a={namespaces:new Set,named:new Set},i={namespaces:new Set,named:new Set},l={namespaces:new Set,named:new Set},o=new Set,f=(e)=>{if(e.type==="TSTypeReference"){const t=e.typeName;if(t.type==="Identifier")return a.named.has(t.name)&&g(s,t);return t.type==="TSQualifiedName"&&t.left.type==="Identifier"&&a.namespaces.has(t.left.name)&&(t.right.name==="StyleXStyles"||t.right.name==="StyleXStylesWithout")&&g(s,t.left)}if(e.type==="TSUnionType"||e.type==="TSIntersectionType")return e.types.some(f);if(e.type==="TSParenthesizedType")return f(e.typeAnnotation);return!1},n=(e,t=!1)=>{if(e.type==="Identifier"){const r=b(s,e);if(r===null||o.has(r))return!1;o.add(r);return n(r,t)}if(e.type==="MemberExpression"){const r=b(s,e.object);if(r!==null&&S(s,r,"create",l))return!0;return n(e.object,t)}if(e.type==="CallExpression")return S(s,e,"props",i)||n(e.callee,t)||t&&e.arguments.some((r)=>n(r,!0));return T(e,t)},T=(e,t)=>{if(e.type==="ArrayExpression")return e.elements.some((r)=>r!==null&&n(r,t));if(e.type==="ObjectExpression")return e.properties.some((r)=>r.type==="Property"&&n(r.value,t));if(e.type==="ConditionalExpression")return n(e.consequent,t)||n(e.alternate,t);if(e.type==="LogicalExpression")return n(e.left,t)||n(e.right,t);if(e.type==="BinaryExpression")return n(e.left,t)||n(e.right,t);if(e.type==="TemplateLiteral")return e.expressions.some((r)=>n(r,t));if(e.type==="SpreadElement")return n(e.argument,t);if(e.type==="ChainExpression")return n(e.expression,t);if(e.type==="TSAsExpression"||e.type==="TSSatisfiesExpression"||e.type==="TSNonNullExpression")return n(e.expression,t);return!1},m=(e)=>{if(e.type==="ArrayExpression")return e.elements.every((r)=>r===null||m(r));if(e.type==="LogicalExpression"&&e.operator==="&&")return m(e.right);if(e.type==="ConditionalExpression")return m(e.consequent)&&m(e.alternate);if(e.type==="Literal")return e.value===null||e.value===!1;if(e.type==="CallExpression")return m(e.callee);if(e.type!=="MemberExpression")return!1;const t=b(s,e.object);return t!==null&&S(s,t,"create",l)},E=(e,t)=>{let r=s.sourceCode.getScope(e);while(r){const y=r.set.get(t);if(y)return y.defs.some((u)=>{if(u.type!=="ImportBinding")return!1;const p=u.node;return p.parent?.type==="ImportDeclaration"&&p.parent.importKind!=="type"&&(p.type!=="ImportSpecifier"||p.importKind!=="type")});r=r.upper}return!1},h=(e)=>{for(const t of i.namespaces)if(E(e,t))return`${t}.props`;for(const t of i.named)if(E(e,t))return t;return null},X=(e,t,r,y)=>{if(/^[a-z][a-zA-Z0-9]*Sx$/.test(y)||e.type!=="JSXOpeningElement")return null;if(e.attributes.some((p)=>p!==t&&(p.type==="JSXSpreadAttribute"||["className","style"].includes(x(p)))))return null;if(r.type==="MemberExpression"&&!r.computed&&r.property.type==="Identifier"){const{object:p,property:I}=r;if(p.type==="CallExpression"&&["className","style"].includes(I.name)&&S(s,p,"props",i))return s.sourceCode.getText(p)}const u=h(t);return u&&m(r)?`${u}(${s.sourceCode.getText(r)})`:null};return{before(){a.namespaces.clear();a.named.clear();i.namespaces.clear();i.named.clear();l.namespaces.clear();l.named.clear();o.clear();return s.sourceCode.text.includes("stylex")},Program(e){c(e.body,"StyleXStyles",a);c(e.body,"StyleXStylesWithout",a);c(e.body,"props",i);c(e.body,"create",l)},TSPropertySignature(e){if(a.named.size===0&&a.namespaces.size===0)return;if(e.computed||!e.typeAnnotation||!f(e.typeAnnotation.typeAnnotation))return;s.report({node:e.key,message:"Spread `stylex.props(...)` at the call site instead of defining a StyleX style prop."})},JSXOpeningElement(e){if(e.name.type==="JSXIdentifier"&&!/^[A-Z]/.test(e.name.name))return;if(!l.namespaces.size&&!l.named.size&&!i.namespaces.size&&!i.named.size)return;for(const t of e.attributes){if(t.type==="JSXSpreadAttribute")continue;o.clear();const r=x(t);if(t.value?.type!=="JSXExpressionContainer")continue;const y=t.value.expression;if(!n(y,r==="className"))continue;const u=X(e,t,y,r);s.report({node:t,message:`Spread \`stylex.props(...)\` on this component instead of passing a StyleX style as \`${r}\`.`,suggest:u===null?void 0:[{desc:"Spread complete StyleX props",fix:(p)=>p.replaceText(t,`{...${u}}`)}]})}}}}});
@@ -6,7 +6,7 @@ export declare const banGroups: BanGroup[];
6
6
  * turboImage, skia, keyboard) auto-detected from your dependencies. Your
7
7
  * `rules` block always overrides.
8
8
  *
9
- * @see [every rule `react-native()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/RULES.md#react-native)
9
+ * @see [every rule `react-native()` sets](https://github.com/AlshehriAli0/ashStack/blob/main/packages/lint/rules/entries/react-native.md#react-native)
10
10
  */
11
11
  declare const reactNative: (options?: ReactNativeOptions) => OxlintConfig;
12
12
  export { reactNative };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashstack/lint",
3
- "version": "0.10.2",
3
+ "version": "0.10.4",
4
4
  "description": "ashStack shared oxlint configuration and custom rules. Entries: core, react, react-native, with per-library rule groups auto-detected from your dependencies. Consume from oxlint.config.mts.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1 +0,0 @@
1
- import{problem as p}from"../../../lib/ast.js";import{collectImports as a,isImportedBinding as y}from"./imports.js";const l=/^[a-z][a-zA-Z0-9]*Sx$/;export const useSxProp=p("Name StyleX override props `sx` or `<slot>Sx`.",{createOnce(s){const r={namespaces:new Set,named:new Set},n=(e)=>{if(e.type==="TSTypeReference"){const t=e.typeName;if(t.type==="Identifier")return r.named.has(t.name)&&y(s,t);return t.type==="TSQualifiedName"&&t.left.type==="Identifier"&&r.namespaces.has(t.left.name)&&(t.right.name==="StyleXStyles"||t.right.name==="StyleXStylesWithout")&&y(s,t.left)}if(e.type==="TSUnionType"||e.type==="TSIntersectionType")return e.types.some(n);if(e.type==="TSParenthesizedType")return n(e.typeAnnotation);return!1};return{before(){r.namespaces.clear();r.named.clear();return s.sourceCode.text.includes("StyleXStyles")},Program(e){a(e.body,"StyleXStyles",r);a(e.body,"StyleXStylesWithout",r)},TSPropertySignature(e){if(r.named.size===0&&r.namespaces.size===0)return;if(e.computed||!e.typeAnnotation||!n(e.typeAnnotation.typeAnnotation))return;let t=null;if(e.key.type==="Identifier")t=e.key.name;if(e.key.type==="Literal"&&typeof e.key.value==="string")t=e.key.value;if(t===null||t==="sx"||l.test(t))return;const i=t.startsWith("style")?"sx":`${t.replace(/Style$/,"")}Sx`;s.report({node:e.key,message:`Rename \`${t}\` to \`${i}\` for a StyleX override prop.`})}}}});