Answer the question
In order to leave comments, you need to log in
How to disable array folding to string when saving json file?
I'm setting up code formatting in an Angular 7 project.
At the root of the project in the .prettierrc file, I wrote the following settings:
{
"singleQuote": true,
"printWidth": 140,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"bracketSpacing": true,
"arrowParens": "avoid",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "ignore",
"endOfLine": "lf"
}
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
{
"emmet.triggerExpansionOnTab": true,
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"window.zoomLevel": 0,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"python.jediEnabled": false,
"editor.formatOnSave": true,
"html.format.wrapLineLength": 120,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
"beautify.config": {
"indent_size": 2,
"html": {
"wrap_attributes": "force"
}
},
"beautify.language": {
"css": []
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"prettier.singleQuote": true,
"prettier.printWidth": 120,
"prettier.tabWidth": 2,
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/apps/appeals",
"types": []
},
"include": [
"**/*.ts"
],
"exclude": [
"src/test-setup.ts",
"**/*.spec.ts",
"**/*.stories.ts"
]
}
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/apps/appeals",
"types": []
},
"include": ["**/*.ts"],
"exclude": ["src/test-setup.ts", "**/*.spec.ts", "**/*.stories.ts"]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question