solana-labs / solana-program-library

A collection of Solana programs maintained by Solana Labs
https://solanalabs.com
Apache License 2.0
3.44k stars 2.02k forks source link

Suggestion: use default prettier settings #7150

Open mikemaccana opened 4 weeks ago

mikemaccana commented 4 weeks ago

I noticed the Token Extension examples look odd and thought there wasn't any linter set up, and then I saw https://github.com/solana-labs/solana-program-library/pull/7115.

Suggestion: use two spaces per prettier defaults, StandardJS, node style guide, idiomatic JS, AirBnB style guide, MDN, Google Style guide, codepen, and jsfiddle.

Not my own personal preference, but if you want people to use your examples, it's better to fit in.

buffalojoec commented 4 weeks ago

PRs welcome! Can't say for sure we'll use all of them, so maybe best to do one at a time. Regardless happy to consider better formatting.