Jed

Results 153 comments of Jed

Try `import configureStore from "@jedmao/redux-mock-store;` (installation required).

I have it working with Jest [here](https://github.com/jedmao/tsx/blob/22c9a8d9301eb22936f79babe3f07cd1b6cd9513/package.json#L144), FWIW.

I cleaned this up in my TypeScript fork with a circular default prop. See [the relevant tests](https://github.com/jedmao/redux-mock-store/blob/b2e2c29286f7e4a9e0433adebb0ca9724f13d882/src/index.test.ts#L12-L22). See also: https://github.com/dmitry-zaets/redux-mock-store/issues/148#issuecomment-510758916

You can't do that w/o parsing the file into a language-specific syntax tree. [CodePainter](https://www.npmjs.com/package/codepainter) does this for JavaScript.

@slang800 this issue should be closed as a `wontfix`. There's no way to do it w/o knowledge of the language being formatted.

It sounds like the nature of the tool to me, because you can have many `.editorconfig` files in a project. I don't see any way to fix it. Might be...

Yeah. That sounds fixable. The issue should be opened there.

[eclint](https://www.npmjs.com/package/eclint) does this currently.

Same problem in Node v0.10.32, almost a year and a half after this issue was reported.

I just published [eclint](https://www.npmjs.com/package/eclint) and it reports line numbers for everything but charset and final newline, which wouldn't really make sense.