@feathers-community/eslint-config
Version:
24 lines (23 loc) • 759 B
JavaScript
//#region src/prettier.ts
/**
* Shared Prettier configuration for Feathers Community projects.
*
* This is the single source of truth for formatting options. It is consumed
* both by the ESLint `prettier/prettier` rule in this package and directly by
* standalone Prettier (CLI / editor integrations) when referenced from a
* project's `package.json` `"prettier"` field:
*
* ```jsonc
* // package.json
* "prettier": "@feathers-community/eslint-config/prettier"
* ```
*
* Referencing it standalone ensures files ESLint does not process — e.g. the
* embedded code blocks inside Markdown — are formatted with the same options.
*/
const prettierConfig = {
singleQuote: true,
semi: false
};
//#endregion
export { prettierConfig as default, prettierConfig };