npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@skagerakenergi/prettier-config

v1.0.3

Published

Prettier configuration for Skagerak Energi projects

Readme

prettier-config

npm version GitHub license

Installation

This package provides Skagerak Energi's shared Prettier configuration for consistent code formatting across projects. It includes opinionated settings for JavaScript, TypeScript, Vue.js, and other supported file types.

The configuration includes settings optimized for Vue.js development with proper indentation for script and style blocks, and formatting rules that complement our ESLint configuration.

Install the package with:

npm install --dev @skagerakenergi/prettier-config

Usage

Add the config to your prettier.config.ts file:

import prettierConfig from '@skagerakenergi/prettier-config';

export default { ...prettierConfig };

Or for JavaScript projects, use prettier.config.js:

import prettierConfig from '@skagerakenergi/prettier-config';

export default { ...prettierConfig };

You can also reference it in your package.json:

{
  "prettier": "@skagerakenergi/prettier-config"
}

Configuration Details

This configuration includes the following settings:

  • No trailing commas - Cleaner diffs and less noise
  • No semicolons - Modern JavaScript style
  • Single quotes - Consistent with ESLint configuration
  • 100 character line width - Optimal for modern screens
  • 2-space indentation - Consistent with Vue.js conventions
  • Bracket spacing - { foo: bar } instead of {foo: bar}
  • Vue script and style indentation - Proper indentation for Vue SFC blocks

Assumptions

This Prettier configuration comes with some fundamental assumptions:

  • Modern JavaScript/TypeScript development
  • Vue.js 3 projects
  • ESM modules
  • Integration with @skagerakenergi/eslint-config-vue3-ts

Extending the Configuration

You can extend or override the configuration in your project:

// prettier.config.ts
import prettierConfig from '@skagerakenergi/prettier-config';

export default {
  ...prettierConfig,
  // Your custom overrides
  printWidth: 120,
  semi: true
}

Use with ESLint

This configuration is designed to work seamlessly with @skagerakenergi/eslint-config-vue3-ts, which includes @vue/eslint-config-prettier to disable conflicting ESLint formatting rules.