Patashu / break_eternity.js

A Javascript numerical library to represent numbers as large as 10^^1e308 and as small as 10^-10^^1e308. Sequel to break_infinity.js, designed for incremental games.
MIT License
121 stars 44 forks source link

Update lint tooling #79

Closed mcpower closed 2 years ago

mcpower commented 2 years ago

This PR updates the lint tooling and provides two commands to check (npm run lint) and fix (npm run fix) lint errors. As Prettier runs on almost every file in the repository, this PR doesn't include formatting the whole repo with prettier (by running npm run fix).

Additionally, it adds some VS Code configuration files so VS Code users can get automatic formatting with Prettier on save, and eslint errors in their editor.

@bbugh (author of e566d963f37cfed8390480eecdbd28467698be1d) - FYI. This removes eslint-plugin-prettier as prettier has its own way of fixing files - and having it enabled causes annoying lint errors when editing files before saving.

Patashu commented 2 years ago

Looks like this is marked as a draft - anything else you wanted to do first?

mcpower commented 2 years ago

Yep - will need to rebase this on top of HEAD as #78 is now submitted.

Will make this ready for review once I do that.