Skip to content

Releases: humanmade/coding-standards

1.2.0

13 Sep 11:53
7a272bc
Compare
Choose a tag to compare

What's Changed

  • Add new Isset sniff by @tfrommen in #236
  • Update custom escaping functions for clean_html by @rmccue in #264
  • Require spaces in template strings by @tfrommen in #256
  • Ignore "use" within "class" in OrderSniff by @kadamwhite in #271
  • Add dealerdirect/phpcodesniffer-composer-installer to allow-plugins in composer.json by @ntwb in #284
  • Update PHPCS to support PHP 8+ by @johnbillion in #282

New Contributors

Full Changelog: v1.1.3...v1.2.0

1.1.3

13 Sep 11:42
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.2...v1.1.3

1.1.2

13 Sep 11:41
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.1...v1.1.2

v1.1.1

08 Dec 15:49
Compare
Choose a tag to compare
  • Added ESLint eslint-plugin-import plugin to enforce consistent ordering of import statements in JavaScript module files #219, #84

  • Added ESLint eslint-plugin-jsdoc plugin #218

  • Added ESLint eslint-plugin-sort-destructure-keys plugin #218

  • Make JSX property sorting case-insensitive #217

  • Support 'relation' element in meta query sniff #232

1.0.0

30 Jul 16:02
Compare
Choose a tag to compare

Added:

  • Added WordPress-Docs by default in PHPCS #177
  • Added ESLint rule for requiring docblocks #209
  • Added ESLint rule for JSX boolean values #183
  • Added ESLint rule for sorting JSX props #195
  • Added ESLInt Rules of Hooks ruleset #197
  • Allow $namespace.php in function files #99
  • Added Lerna for publishing packages #175

Updated:

  • Adjust Stylelint class and ID selector patterns #199
  • Updated WPCS to 2.2.1 #151
  • Updated VIPCS to 2.0.0 #151
  • Updated DealerDirect to 0.6 #151
  • Fixed FunctionCallSignature inconsistency in phpcbf #200
  • Allow for multiple variable assignments #201
  • Allow for theme filenames when sniffing filename #202
  • Updated .editorconfig for YAML & Markdown files #175

Changed:

  • Formatted package.json files with tabs #175
  • Moved ESLint .editorconfig to project root #175
  • Renamed root readme.md to README.md #175
  • Updated composer.json description #175
  • Updated package.json files meta #175

Removed:

  • Remove <file>, <basepath> and testVersion from ruleset #187, #198

0.8.0

29 Jan 17:05
f8ae2b6
Compare
Choose a tag to compare

Added:

  • Added PHPCS Rule to Detect Consecutive Newlines #168
  • Enforce semicolons in JS #169
  • Added WordPress.Security.EscapeOutput PHPCS rule #166
  • Added PHPCompatibilityWP standard to PHPCS #81
  • Disallowed usage of !important in CSS #164
  • Enforced consistent curly newlines in jsx #172
  • Added eslint-plugin-sort-destructure-keys package #179

Updated

  • Bumped PHPCS to v3.5 from v3.4 #173
  • Bumped stylelint-config-wordpress package to v15 from v13 #165
  • Ignore stylelint at-rule line break for if/else/elseif #170
  • Restricted fixture tests to load only custom HM sniffs #163

0.7.0

05 Jun 15:37
da7bb6d
Compare
Choose a tag to compare

Added:

  • Made PHPCompatibilityWP available via Composer #146

Changed:

  • Exclude load.php from NamespaceDirectoryNameSniff #131
  • Allow json_encode / json_decode function usage #97
  • Fix NamespaceDirectoryNameUnitTest parsing the wrong namespace directory length #140
  • Updated location of stylelint package to reflect correct NPM name #137
  • Bumped VIPCS dependency to 1.0.0 #135

0.6.0

02 Apr 19:53
d294a78
Compare
Choose a tag to compare

Summation:

  • Updated PHPCS to v3.4 #88
  • Updated WPCS to 1.2.0 #82
  • Updated eslint to 5.10 and associated deps #101

Added:

  • Stylelint configuration #45
  • Added VIP PHPCS standards dependency #122

Changed:

  • Use ecmaversion 2018 #87
  • Require space in curly braces for React JSX children #121
  • Allow multiple declaration in use statement #78
  • Exclude the tests dir from the NamespaceExclusionTest #112
  • Set composer library type to phpcodesniffer-standard #116

Removed:

  • Allow trigger_error #98
  • Remove assignment of equals rule #96
  • Remove href-no-hash rule exclusion #114

0.5.0

02 Apr 22:50
Compare
Choose a tag to compare
  • Update ESLint config peer dependencies #65
  • Add ESLint config test script with example fixtures #42

0.4.2

02 Apr 22:51
Compare
Choose a tag to compare
  • Remove support for ESLint-via-phpcs #54
  • Ignore array item alignment rule #49
  • Ignore line length when checking array alignment #57
  • Adjust object rules for destructuring #59