Version 5.7 of @lipemat/js-boilerplate is now available and ready for use. This version focused on improving default configurations, TypeScript 4, and ESLint improvements.
Default Configurations
Various package.json requirements have now been replaced with sensible defaults.
rootis now./urlis nowhttps://localhosttheme_path is now/regenerate_revisonis nowfalse
JEST will now use the url value as its testURL which fixes the CORS issue when making requests from Jsdom.
TypeScript 4
The boilerplate now uses TypeScript 4+ for all Webpack handling.
Fork TS Checker Webpack Plugin has also been updated to version 6. The basic formatter has been selected within the webpack.dev configuration. If you prefer the new, more robust formatter you may change this via an config override.
ESLint Improvements
The included eslint.config.js has been improved to add some additional strict formatting options:
- No space in
template-curly-spacingrule. - Allow no space before
asyncdeclarationspace-before-function-paren. - Improve
@typescript-eslint/type-annotation-spacingconfiguration to enforce some TypeScript spaces around argument types. - Change
arrow-parensrule toas-neededinstead ofalways.
We’ve locked eslint-plugin-react to version 7.19.* for now because 7.20.0 has false positives.
Miscellanious
- Removed
browserslistconfiguration in favor of defaults. - Automatically maps the project and output URL to ones provided in
package.json. - Fixed https Webpack dev server defaults.
- Bundled
react-transition-groupand corresponding@types. - No longer regenerates the
.revisionfile unless declared inpackage.json.regenerate_revision. - JEST supports snapshot testing of mounted components.
- Fixed ordering of
eval-cheap-module-source-map.