about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code/prettier.config.mts
blob: 45cb3874eeab0e7876a8792088ec71928e33bceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import { type Config } from "prettier";

const config: Config = {
    // use 4 because it's Rustfmt's default
    // https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#%5C34%20%5C%20%5C(default%5C)%5C%3A
    tabWidth: 4,
    // use 100 because it's Rustfmt's default
    // https://rust-lang.github.io/rustfmt/?version=v1.4.38&search=#max_width
    printWidth: 100,
};

export default config;