@nextcloud/prettier-config
Version:
Shared stylistic rules for Nextcloud apps and libraries
54 lines (37 loc) • 980 B
Markdown
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Correctly set the operator to the front of a line:
```diff
const a =
- 1 +
- 2
+ 1
+ + 2
```
```diff
if (
- some ||
- other
+ some
+ || other
) {
```
- Require at least prettier 3.5.0
- Migrate REUSE to TOML format
- Also sort and format the `package.json` to make them consistent across Nextcloud
- Adjust `printWidth` to 85 this makes migration from ESLint ok but looks much better than something higher
- Implemented first version of Nextcloud prettier config.
<!--
SPDX-FileCopyrightText: 2024 Nextcloud contributors
SPDX-License-Identifier: CC0-1.0
-->