effector/eslint-plugin

False positive trigger for `enforce-store-naming-convention`

Kelin2025 opened this issue · 0 comments

Sometimes plugin treats factories from effector-factorio as stores

Minimal reproduction code

import { combine, sample } from 'effector'
import { modelFactory } from 'effector-factorio'

export const factory = modelFactory(() => {
  sample({
    clock: combine([createStore('')]),
    fn: ([fieldType, customFieldId]) => customFieldId || fieldType,
    target: createStore(''),
  })

  return {}
})

Result:
Screenshot 2023-03-09 at 20 22 29

Parser: @typescript-eslint/parser (5.53.0)