smaranjitghose / doc2pen

An open source project aimed at making your student life easier!
https://doc2pen.smaranjitghose.com
Creative Commons Zero v1.0 Universal
381 stars 403 forks source link

Prettier formatting doesnt follow eslint rules #1019

Closed ashuvssut closed 3 years ago

ashuvssut commented 3 years ago

create .prettierrc.js and put suitable rules for prettier from the official documentation keeping the new eslint config rules in mind

also add a new config rule "react/jsx-filename-extension": [1, { "allow": "as-needed" }], for eslint to set rule to put jsx file extension wherever JSX code is present