mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 09:10:13 +01:00
The prettier pre-commit mirror is no longer supported (https://github.com/pre-commit/mirrors-prettier). This switches to a direct call, and updates to 3.3.3. And I'm now specifying types for it to apply to, rather than letting it ignore unknown files; overall just trying to separate out which linter sees what. To comment on formatting changes: - In most cases, seems to be getting confused by `[]` use in markdown when it's not part of a link. This looks like a regression, but not one we're broadly affected by. - p0107.md - caught an issue with a malformed broken bad link which I've tried to fix. - p3720.md - looks like a fix. Note, prettier has a 4.0.0 alpha release. As best as I could tell, that only affected the .prettierrc.yaml processing. I changed the glob there for forwards compatibility.
15 lines
354 B
YAML
15 lines
354 B
YAML
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
printWidth: 80
|
|
proseWrap: 'always'
|
|
singleQuote: true
|
|
tabWidth: 2
|
|
trailingComma: 'es5'
|
|
useTabs: false
|
|
overrides:
|
|
- files: '**/*.md'
|
|
options:
|
|
tabWidth: 4
|