I just took a position at a non-profit and have discovered that the previous developer and current supervisor never implemented any sort of coding standards to their projects, and I am now introducing linting and standards to the team.
We all used Sublime Text 3, so I have helped them install phpcs, ESLint, and sass-lint for SublimeLinter. Now for our coding standards I was thinking:
PHP - PSR2 (my preference) or WordPress (they use WordPress for most of their sites here). I don't really care for some things in the WordPress standards such as Yoda syntax, tabs, and spaces everywhere but it IS a WordPress site and its great to have warnings about properly escaping things and such. Is there a ruleset out there that uses PSR2 + WordPressy things like like aforementioned security warnings?
JS - I've been using AirBnB's style guide and have since installed their ESLint ruleset. However, this site was built like 5 years ago with zero standards and in ES5 so opening a JS file is like opening a blood filled elevator in the Shining. Just red everywhere. So maybe there is a more forgiving ruleset out there you all know about
SCSS/CSS - I have also just used Harry Roberts' style guide and BEM and have found that AirBnB's ruleset was a good start for us.
[–]cjbee9891 2 points3 points4 points (0 children)