mirror of
https://github.com/home-assistant/core.git
synced 2025-11-25 18:48:05 +00:00
25 lines
594 B
JavaScript
25 lines
594 B
JavaScript
/** @type {import("prettier").Config} */
|
|
module.exports = {
|
|
overrides: [
|
|
{
|
|
files: "./homeassistant/**/*.json",
|
|
options: {
|
|
plugins: [require.resolve("prettier-plugin-sort-json")],
|
|
jsonRecursiveSort: true,
|
|
jsonSortOrder: JSON.stringify({ [/.*/]: "numeric" }),
|
|
},
|
|
},
|
|
{
|
|
files: ["manifest.json", "./**/brands/*.json"],
|
|
options: {
|
|
// domain and name should stay at the top
|
|
jsonSortOrder: JSON.stringify({
|
|
domain: null,
|
|
name: null,
|
|
[/.*/]: "numeric",
|
|
}),
|
|
},
|
|
},
|
|
],
|
|
};
|