|
1 | 1 | { |
2 | | - "plugins": ["prettier-plugin-apex"], |
| 2 | + "arrowParens": "avoid", |
| 3 | + "bracketSpacing": true, |
| 4 | + "bracketSameLine": true, |
| 5 | + "printWidth": 120, |
| 6 | + "semi": true, |
| 7 | + "singleQuote": true, |
3 | 8 | "trailingComma": "none", |
| 9 | + "endOfLine": "lf", |
| 10 | + "apexInsertFinalNewline": false, |
4 | 11 | "useTabs": true, |
5 | 12 | "overrides": [ |
6 | 13 | { |
7 | 14 | "files": "**/lwc/**/*.html", |
8 | 15 | "options": { "parser": "lwc" } |
9 | 16 | }, |
| 17 | + { |
| 18 | + "files": "*.{cls,trigger}", |
| 19 | + "options": { "parser": "apex", "tabWidth": 2, "useTabs": true } |
| 20 | + }, |
| 21 | + { |
| 22 | + "files": "*.trigger", |
| 23 | + "options": { "printWidth": 200 } |
| 24 | + }, |
10 | 25 | { |
11 | 26 | "files": "*.{cmp,page,component}", |
12 | | - "options": { "parser": "html" } |
| 27 | + "options": { |
| 28 | + "parser": "html", |
| 29 | + "useTabs": true, |
| 30 | + "htmlWhitespaceSensitivity": "css" |
| 31 | + } |
| 32 | + }, |
| 33 | + { |
| 34 | + "files": "*.{apex,soql}", |
| 35 | + "options": { "parser": "apex-anonymous" } |
| 36 | + }, |
| 37 | + { |
| 38 | + "files": "*.{yml,yaml}", |
| 39 | + "options": { "parser": "yaml", "tabWidth": 2, "useTabs": false } |
| 40 | + }, |
| 41 | + { |
| 42 | + "files": ".prettier*", |
| 43 | + "options": { "parser": "json", "printWidth": 80, "useTabs": true } |
| 44 | + }, |
| 45 | + { |
| 46 | + "files": "*.xml", |
| 47 | + "options": { |
| 48 | + "parser": "xml", |
| 49 | + "useTabs": true, |
| 50 | + "singleQuote": false, |
| 51 | + "xmlSelfClosingSpace": true |
| 52 | + } |
| 53 | + }, |
| 54 | + { |
| 55 | + "files": ["**/pmd/*.xml", "*ruleset*.xml", "config/**/*.xml"], |
| 56 | + "options": { |
| 57 | + "parser": "xml", |
| 58 | + "xmlSelfClosingSpace": true, |
| 59 | + "xmlWhitespaceSensitivity": "ignore" |
| 60 | + } |
| 61 | + }, |
| 62 | + { |
| 63 | + "files": "*meta.xml", |
| 64 | + "options": { |
| 65 | + "parser": "xml", |
| 66 | + "useTabs": false, |
| 67 | + "xmlSelfClosingSpace": false |
| 68 | + } |
| 69 | + }, |
| 70 | + { |
| 71 | + "files": "*.json", |
| 72 | + "options": { |
| 73 | + "parser": "json-stringify", |
| 74 | + "useTabs": false, |
| 75 | + "tabWidth": 2 |
| 76 | + } |
13 | 77 | } |
14 | | - ] |
| 78 | + ], |
| 79 | + "plugins": ["prettier-plugin-apex", "@prettier/plugin-xml"], |
| 80 | + "$schema": "https://json.schemastore.org/prettierrc" |
15 | 81 | } |
0 commit comments