mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 06:25:55 +00:00
42 lines
810 B
JavaScript
42 lines
810 B
JavaScript
module.exports = {
|
|
tabWidth: 4,
|
|
printWidth: 120,
|
|
proseWrap: 'preserve',
|
|
semi: false,
|
|
trailingComma: 'es5',
|
|
singleQuote: true,
|
|
arrowParens: 'avoid',
|
|
endOfLine: "lf",
|
|
overrides: [
|
|
{
|
|
files: '{*.md,.prettierrc,.stylelintrc,.babelrc,.html}',
|
|
options: {
|
|
tabWidth: 4
|
|
}
|
|
},
|
|
{
|
|
files: '{*.js?(on),*.js, *.ts, *.vue, *.css, *.scss}',
|
|
options: {
|
|
trailingComma: 'none',
|
|
tabWidth: 2
|
|
}
|
|
},
|
|
{
|
|
files: '{**/.vscode/*.json,**/tsconfig.json,**/tsconfig.*.json}',
|
|
options: {
|
|
parser: 'json5',
|
|
quoteProps: 'preserve',
|
|
singleQuote: false,
|
|
trailingComma: 'all',
|
|
tabWidth: '2'
|
|
}
|
|
},
|
|
{
|
|
files: '*.y?(a)ml,',
|
|
options: {
|
|
singleQuote: true
|
|
}
|
|
}
|
|
]
|
|
}
|