Skip to content
Advanced Frontends.com
  • Blog
  • Contact
Search
Advanced Frontends.com
Close menu
  • Blog
  • Contact
Advanced Frontends.com
Search Toggle menu

Category: JavaScript

ESLint Flat Config
Eslint, JavaScript

Modern Linting in 2025: ESLint Flat Config with TypeScript and JavaScript

Clean, consistent, and secure code is essential—especially in modern web applications where performance, accessibility, and maintainability intersect. With ESLint’s flat config now […]

Read more
Preventing Content Security Violations using ESLint.
JavaScript, CSP, Eslint

Preventing Content Security Policy violations with ESLint

Content Security Policy (CSP) stands as an essential element in bolstering the security of web applications. In this article, I will demonstrate different approaches for harnessing ESLint to proactively identify common programming patterns that can lead to CSP breaches.

Read more
Preventing Content Security Violations using ESLint.
CSP, Architecture, Eslint, JavaScript

Enhancing CSP with ESLint: Preventing Unsafe setAttribute “style” usage

Content Security Policy (CSP) is a crucial component for securing web applications. One common practice is to disallow the use of the ‘setAttribute(“style”, …)’ command, which can introduce security vulnerabilities.

In this article, I’ll guide you through the process of creating an Eslint rule to detect and prevent it’s use.

Read more
Separate Concerns
Architecture, HTML, JavaScript, NPM, Rollup

Separate Lit-Element and lit-html templates.

The article will demonstrate a technique to separate lit-html code, typically housed within the render method, into an external .html file.

Read more
Image of two ropes tied or concatenated together
JavaScript, NPM, Rollup

How to concatenate files using Rollup

This code defines a Rollup plugin called rollup-plugin-concat to concatenate multiple files into a single output file. It has been built into […]

Read more
Find all focusable elements in document including those in any Shadow DOMS, that are also visible
JavaScript, HTML

Find all focusable elements in a document including all Shadow DOM’s

This article illustrates the process of locating all focusable elements, even if they are within nested Shadow DOM. Additionally, it provides guidance on filtering specifically for elements that are both focusable and visible.

Read more
Tight Coupling
JavaScript, Architecture, HTML

How to decouple custom elements with versioning

Custom elements offer many advantages, but they have a significant downside: versioning. Since custom elements are defined globally, if multiple micro frontends […]

Read more
Named Anchors
JavaScript, HTML

How to use named anchors with the Shadow DOM

Using named anchors to navigate to specific sections of a page is a simple concept, but it can become more complicated when dealing with shadow DOM. Fortunately, this article presents a solution to this problem.

Read more
Shadow DOM
JavaScript, HTML

How to capture Shadow DOM events

Shadow DOM events behave differently to traditional events. Under normal circumstances, when an event is captured the e.target will contain a reference […]

Read more

About The Author

Maurice Downes specialises in large-scale website design using modern approaches. He has a particular passion for architecting UI components and optimising website performance.

Recent Posts

  • Modern Linting in 2025: ESLint Flat Config with TypeScript and JavaScript
  • HTML Linting for a Robust Content Security Policy
  • Master Micro Frontends with Lit-Element – Part 2
  • Master Micro Frontends with Lit-Element – Part 1
  • Preventing Content Security Policy violations with ESLint

Recent Comments

    Categories

    • Architecture
    • CSP
    • Eslint
    • HTML
    • JavaScript
    • NPM
    • Rollup
    • Web
    • Webpack
    © 2025 Advanced Frontends.com
    Consent