Browse Source

NO-JIRA Prevent Prettier from adding trailing commas in some JSON files

pull/3361/head
Ambroise C 4 weeks ago
parent
commit
b9b4b8d2c8
2 changed files with 12 additions and 3 deletions
  1. 10
    1
      server/sonar-web/.prettierrc
  2. 2
    2
      server/sonar-web/tsconfig.json

+ 10
- 1
server/sonar-web/.prettierrc View File

@@ -1,5 +1,14 @@
{
"printWidth": 100,
"singleQuote": true,
"plugins": ["prettier-plugin-organize-imports"]
"plugins": ["prettier-plugin-organize-imports"],

"overrides": [
{
"files": [".eslintrc", "tsconfig.json"],
"options": {
"trailingComma": "none"
}
}
]
}

+ 2
- 2
server/sonar-web/tsconfig.json View File

@@ -8,7 +8,7 @@
}
},
"parserOptions": {
"project": true,
"project": true
},
"include": ["./src/main/js/**/*"],
"include": ["./src/main/js/**/*"]
}

Loading…
Cancel
Save