Files
bodyshop/.prettierrc.js
Dave Richer 0c0449aa17 - Hasura and PrettierRC
Signed-off-by: Dave Richer <dave@imexsystems.ca>
2024-04-09 12:54:58 -04:00

59 lines
1.8 KiB
JavaScript

// Original Version
// exports.default = {
// printWidth: 120,
// useTabs: false,
// tabWidth: 2,
// trailingComma: 'es5',
// semi: true,
// singleQuote: false,
// bracketSpacing: true,
// arrowParens: 'always',
// jsxSingleQuote: false,
// bracketSameLine: false,
// endOfLine: 'lf',
// importOrder: ['^@core/(.*)$', '^@server/(.*)$', '^@ui/(.*)$', '^[./]'],
// importOrderSeparation: true,
// importOrderSortSpecifiers: true,
// };
// Modified Version (Works with current Changeset, minus files modified recently)
const config = {
printWidth: 120,
useTabs: false,
tabWidth: 2,
trailingComma: "none",
semi: true,
singleQuote: false,
bracketSpacing: true,
arrowParens: "always",
jsxSingleQuote: false,
bracketSameLine: false,
endOfLine: "lf"
// importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
// importOrderSeparation: true,
// importOrderSortSpecifiers: true
};
module.exports = config;
// The warnings you're seeing are because the options importOrder, importOrderSeparation, and importOrderSortSpecifiers are not recognized by Prettier. These options are specific to the @trivago/prettier-plugin-sort-imports plugin, which you have removed from your Prettier configuration. To resolve these warnings, you should remove these options from your .prettierrc.js file. Here's how your updated .prettierrc.js file should look:
// const config = {
// printWidth: 120,
// useTabs: false,
// tabWidth: 2,
// trailingComma: "es5",
// semi: true,
// singleQuote: true,
// bracketSpacing: true,
// arrowParens: "always",
// jsxSingleQuote: false,
// bracketSameLine: false,
// endOfLine: "lf",
// importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
// importOrderSeparation: true,
// importOrderSortSpecifiers: true
// };
//
// module.exports = config;