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.
root
is now./
url
is nowhttps://localhost
theme_pat
h is now/
regenerate_revison
is 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-spacing
rule. - Allow no space before
async
declarationspace-before-function-paren
. - Improve
@typescript-eslint/type-annotation-spacing
configuration to enforce some TypeScript spaces around argument types. - Change
arrow-parens
rule toas-needed
instead ofalways
.
We’ve locked eslint-plugin-react
to version 7.19.* for now because 7.20.0 has false positives.
Miscellanious
- Removed
browserslist
configuration 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-group
and corresponding@types
. - No longer regenerates the
.revision
file unless declared inpackage.json.regenerate_revision
. - JEST supports snapshot testing of mounted components.
- Fixed ordering of
eval-cheap-module-source-map
.