Prettier base configuration by @arrowsw.
Make sure you have Prettier installed:
npm install --save-dev prettier Install the package:
npm install --save-dev @arrowsw/prettier-configIf you just want to use the shared config as-is, create a .prettierrc.json file with this content:
"@arrowsw/prettier-config"Warning
.prettierrc.jsondoes not support extending or overriding rules because the JSON format lacks support for dynamic imports or merging configurations. You can’t import or modify configs in this format.
If you want to add or override specific rules, use a .prettierrc.js file instead. For example:
module.exports = {
...require("@arrowsw/prettier-config"),
printWidth: 100, // override only the rules you want to customize
}This gives you full flexibility using require() to extend the base config.
Prettier does not support TypeScript config files like .prettierrc.ts because it lacks a built-in TypeScript parser for configuration files. You must use .js, .cjs, .json, or .yaml files instead.