OnPoint Plugins

  • Plugins
    • Advanced Sidebar Menu
    • Go Live Update Urls
  • About
    • Services
    • Showcase
  • Blog
  • Contact
  • Support
  • Log In

Js-Boilerplate Version 5.7

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.

  1. root is now ./
  2. url is now https://localhost
  3. theme_path is now /
  4. regenerate_revison is now false

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:

  1. No space in template-curly-spacing rule.
  2. Allow no space before async declaration space-before-function-paren.
  3. Improve @typescript-eslint/type-annotation-spacing configuration to enforce some TypeScript spaces around argument types.
  4. Change arrow-parens rule to as-needed instead of always.

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 in package.json.regenerate_revision.
  • JEST supports snapshot testing of mounted components.
  • Fixed ordering of eval-cheap-module-source-map.

Filed Under: Programming, Published Work, Tools

« Advanced Sidebar Menu – Version 8.1.0
The Journey Continues to Two Million Downloads »

Find Something

Categories

Follow Us

Subscribe to get the latest news and updates.

Follow

© 2023 · WordPress Development · Terms Of Service · Privacy Policy · Cookie Policy · Log in

  • Plugins
  • Blog
  • Contact