Closed evidolob closed 4 years ago
Yeah, we recently switched from tslint to eslint thats why theres so many. I agree, we should add this in. I'm currently re-doing the tests to massively improve them so I can fix up any eslint errors in that folder
@JPinkney Is any reason to use custom rules for eslint? We can consider to use @typescript-eslint/eslint-recommended
and @typescript-eslint/recommended
with some modifications. They are pretty good and commonly used for TS projects.
I'm fine with using @typescript-eslint/recommended if other projects are using it too
Yes, that recommended by typescript-eslint.
@JPinkney Another question is two or four space indentation? It is more common for JS/TS projects to use two, but most people from Java/C# world prefers four. A few links:
WDYT?
I think we should probably go with what the JS/TS community uses, so probably 2
Now we have
eslint errors/warnings.
Need to fail build if PR doesn't not follow codestyle.