mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
51 lines
963 B
JavaScript
51 lines
963 B
JavaScript
module.exports = {
|
|
// Basic formatting
|
|
printWidth: 120,
|
|
tabWidth: 4,
|
|
useTabs: false,
|
|
semi: true,
|
|
singleQuote: true,
|
|
quoteProps: 'consistent',
|
|
trailingComma: 'none',
|
|
|
|
// Spacing
|
|
bracketSpacing: true,
|
|
arrowParens: 'always',
|
|
|
|
// Line breaks
|
|
endOfLine: 'lf',
|
|
|
|
// TypeScript
|
|
parser: 'typescript',
|
|
|
|
// Override for specific file types
|
|
overrides: [
|
|
{
|
|
files: '*.ts',
|
|
options: {
|
|
parser: 'typescript'
|
|
}
|
|
},
|
|
{
|
|
files: '*.js',
|
|
options: {
|
|
parser: 'babel'
|
|
}
|
|
},
|
|
{
|
|
files: '*.json',
|
|
options: {
|
|
parser: 'json',
|
|
tabWidth: 2
|
|
}
|
|
},
|
|
{
|
|
files: '*.md',
|
|
options: {
|
|
parser: 'markdown',
|
|
proseWrap: 'preserve'
|
|
}
|
|
}
|
|
]
|
|
};
|