Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add eslint & eslint-plugin-compat (#54)
## Description of the change This PR adds eslint configuration for fixing browser compatibility errors. However this doesn't detect array methods such as `toSorted` #53 amilajack/eslint-plugin-compat#258 (comment). I've also tried to add https://github.com/azu/eslint-plugin-typescript-compat for detecting the methods. But no luck. 😩 - Add eslint config for the project - Add `eslint-plugin-compat` for browser compatibilities - Add to `package.json` ``` "browserslist": [ "chrome 64", "edge 79", "firefox 67", "opera 51", "safari 12" ] ``` I've disabled the recommended rules as there quite a lot of error and we can tackle them in another PR. <img width="461" alt="Screenshot 2024-02-28 at 17 09 56" src="https://github.com/saasquatch/bunshi/assets/17547035/9be59f4c-f58b-4552-a868-532f579d3466"> --------- Co-authored-by: Logan Volkers <[email protected]>
- Loading branch information