45 lines
741 B
JavaScript
45 lines
741 B
JavaScript
module.exports = {
|
|
// Basic formatting
|
|
printWidth: 80,
|
|
tabWidth: 2,
|
|
useTabs: false,
|
|
semi: true,
|
|
singleQuote: true,
|
|
quoteProps: 'as-needed',
|
|
trailingComma: 'es5',
|
|
bracketSpacing: true,
|
|
bracketSameLine: false,
|
|
arrowParens: 'avoid',
|
|
|
|
// Line endings
|
|
endOfLine: 'lf',
|
|
|
|
// TypeScript specific
|
|
parser: 'typescript',
|
|
|
|
// File-specific overrides
|
|
overrides: [
|
|
{
|
|
files: '*.json',
|
|
options: {
|
|
parser: 'json',
|
|
printWidth: 100,
|
|
},
|
|
},
|
|
{
|
|
files: '*.md',
|
|
options: {
|
|
parser: 'markdown',
|
|
printWidth: 100,
|
|
proseWrap: 'always',
|
|
},
|
|
},
|
|
{
|
|
files: '*.{js,ts}',
|
|
options: {
|
|
parser: 'typescript',
|
|
},
|
|
},
|
|
],
|
|
};
|