@lipemat/js-boilerplate 8.1.0 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/helpers/config.js CHANGED
@@ -8,7 +8,7 @@ const extensions = Object.keys( packageConfig.dependencies ).filter( name => nam
8
8
  /**
9
9
  * Check to see if a local config file exists.
10
10
  *
11
- * @param {string} fileName
11
+ * @param {string} fileName
12
12
  * @param {boolean} inWorkingDirectory - Look in working directory instead of their /config directory
13
13
  *
14
14
  * @return {boolean}
@@ -89,7 +89,10 @@ const getDefaultBrowsersList = once( () => {
89
89
  }
90
90
 
91
91
  if ( browserslist( browserslist.defaults ) === browserslist() ) {
92
- return require( '@wordpress/browserslist-config' );
92
+ return require( '@wordpress/browserslist-config' ).map( range => {
93
+ // Swap out "> 1%" for "> 2%".
94
+ return '> 1%' === range ? '> 2%' : range;
95
+ } );
93
96
  }
94
97
  return false;
95
98
  } );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lipemat/js-boilerplate",
3
- "version": "8.1.0",
3
+ "version": "8.3.0",
4
4
  "description": "Dependencies and scripts for a no config JavaScript app",
5
5
  "engines": {
6
6
  "node": ">=14.17.6"
@@ -37,7 +37,7 @@
37
37
  "@babel/preset-typescript": "^7.12.7",
38
38
  "@hot-loader/react-dom": "^17.0.1",
39
39
  "@lipemat/css-mqpacker": "^8.0.1",
40
- "@lipemat/eslint-config": "^1.1.1",
40
+ "@lipemat/eslint-config": "^2.0.1",
41
41
  "@lipemat/postcss-loader": "^3.1.2",
42
42
  "@lipemat/webpack-cleanup-plugin": "^1.0.0",
43
43
  "@types/lipemat__js-boilerplate": "lipemat/types-js-boilerplate#semver:^1.3.0",
@@ -86,5 +86,5 @@
86
86
  "url": "https://github.com/lipemat/js-boilerplate/issues"
87
87
  },
88
88
  "homepage": "https://github.com/lipemat/js-boilerplate#readme",
89
- "packageManager": "yarn@3.1.1"
89
+ "packageManager": "yarn@3.2.0"
90
90
  }
package/scripts/lint.js CHANGED
@@ -26,6 +26,10 @@ const packageConfig = require( '../helpers/package-config' );
26
26
 
27
27
  // 5. Output it.
28
28
  console.log( resultText );
29
+ if ( '' === resultText ) {
30
+ console.log( '>> Linted JS files without errors.' );
31
+ console.log( '-----------------------------------' );
32
+ }
29
33
  }() ).catch( error => {
30
34
  process.exitCode = 1;
31
35
  console.error( error );