Skip to content
Advertisement

Tag: store

Trying to get a value from a custom store Svelte

i want to ask something, i have a custom store like i will explaying the scenario, im creating a script for a fivem server and im using svelte, i create a store that get a Vehicle with some properties like Name, Last Name, Plate and bla bla, i create the setData(Vehicle) and pass a set(Vehicle) then in another method i

ESLint ES6 Redux global-required Unexpected require();

I have this problem with ESLint and can’t soulve on my own, those stores are separated for each enviroement as you can see on the screenshot, how could I fix that to make ESLint happy and I to learn a new thing? Answer It’s because you’re requiring in branched code: http://eslint.org/docs/rules/global-require. If you don’t want to change your code, just

Advertisement