Registry / devops / prettier-config-cityssm

prettier-config-cityssm

JSON →
library2.1.2jsnpmunverified

Prettier shared configuration for City of Sault Ste. Marie projects. Current stable version is 2.1.2, released monthly. It centralizes prettier settings (e.g., endOfLine: 'lf', disable formatting for embedded HTML, SQL support with presets for generic SQL, SQLite, SQL Server). Key differentiator: opinionated configuration tailored to city projects, includes SQL formatting, and ships TypeScript types. Releases are versioned semver with minor features and patches.

npm install prettier-config-cityssm
INSTALL
IMPORT
SIG · PRETTIER-CONFIG-CI
P
prettier-config-cityssm
devopsjavascriptv2.1.2
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
export { default } from 'prettier-config-cityssm'
const config = require('prettier-config-cityssm')
ESM-only; does not export a CommonJS module. Use the default export in a prettier.config.js file with ESM.
default
import config from 'prettier-config-cityssm'; export default config
import { default } from 'prettier-config-cityssm'
Named import of `default` is not permitted; use default import syntax.
default
module.exports = require('prettier-config-cityssm')
const config = require('prettier-config-cityssm'); module.exports = config.default
If using CJS in prettier.config.js (not recommended), require the module and assign to exports directly.

Install the package and set up prettier.config.js to use the shared configuration.

npm install --save-dev prettier-config-cityssm # In prettier.config.js (ESM): export { default } from 'prettier-config-cityssm' # Or if using CJS (not recommended): // prettier.config.js module.exports = require('prettier-config-cityssm')
Debug
Known issues
breakingVersion 2.0.0 introduces SQL formatting support and presets for SQLite and SQL Server, which may override existing prettier settings if not used carefully.
fix
Review your project's prettier configuration for SQL formatting conflicts. If you don't need SQL presets, ensure your prettier.config.js only extends the base config.
affects: >=2.0.0
deprecatedVersion 1.x is deprecated; all projects should upgrade to v2 to get SQL formatting and other improvements.
fix
Update to v2 by running `npm install prettier-config-cityssm@latest` and check for breaking changes.
affects: <2.0.0
gotchaThe package exports a single default configuration object, not a function. Do not call it as a function.
fix
Use `export { default } from 'prettier-config-cityssm'` or `module.exports = require('prettier-config-cityssm')`.
affects: >=1.0.0
gotchaIn version 2.1.0, embedded HTML formatting is disabled to avoid breaking template literals. If you rely on HTML formatting inside template literals, this may be unexpected.
fix
If you need HTML formatting in template literals, override the setting in your project's prettier config.
affects: >=2.1.0
gotchaThe configuration enforces `endOfLine: 'lf'` since version 2.1.1. This may cause diff noise on Windows if your project uses CRLF.
fix
Set `.gitattributes` to `* text=auto eol=lf` to normalize line endings, or override `endOfLine` in your project config.
affects: >=2.1.1
Errors
Common errors & fixes
Error: Cannot find module 'prettier-config-cityssm'
Package not installed or not in node_modules.
fix
Run `npm install --save-dev prettier-config-cityssm` and ensure it's a devDependency.
SyntaxError: Unexpected token 'export'
Trying to use ESM `export` in a CommonJS file (e.g., .js file with no type: module in package.json).
fix
Rename file to .mjs or set `"type": "module"` in package.json. Alternatively, use CJS: `module.exports = require('prettier-config-cityssm')`.
TypeError: prettierConfig is not a function
Calling the default export as a function, but it's an object.
fix
Do not invoke it; use it directly as a config object: `export { default } from 'prettier-config-cityssm'`.
Upgrade
Version history
2.1.2latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
prettier-config-cityssm — npm install prettier-config-cityssm · libregistry