1const shared = { 2 printWidth: 80, 3 tabWidth: 2, 4 useTabs: false, 5 semi: true, 6 singleQuote: true, 7 quoteProps: 'preserve', 8 bracketSpacing: false, 9 trailingComma: 'all', 10 arrowParens: 'always', 11 embeddedLanguageFormatting: 'off', 12 bracketSameLine: true, 13 singleAttributePerLine: false, 14 jsxSingleQuote: false, 15 htmlWhitespaceSensitivity: 'strict', 16}; 17 18module.exports = { 19 overrides: [ 20 { 21 /** TSX/TS/JS-specific configuration. */ 22 files: '*.tsx', 23 options: shared, 24 }, 25 { 26 files: '*.ts', 27 options: shared, 28 }, 29 { 30 files: '*.js', 31 options: shared, 32 }, 33 { 34 /** Sass-specific configuration. */ 35 files: '*.scss', 36 options: { 37 singleQuote: true, 38 }, 39 }, 40 { 41 files: '*.html', 42 options: { 43 printWidth: 100, 44 }, 45 }, 46 { 47 files: '*.acx.html', 48 options: { 49 parser: 'angular', 50 singleQuote: true, 51 }, 52 }, 53 ], 54}; 55