- Hasura and PrettierRC
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -1,3 +1,22 @@
|
||||
// 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,
|
||||
@@ -9,10 +28,31 @@ const config = {
|
||||
arrowParens: "always",
|
||||
jsxSingleQuote: false,
|
||||
bracketSameLine: false,
|
||||
endOfLine: "lf",
|
||||
importOrder: ["^@core/(.*)$", "^@server/(.*)$", "^@ui/(.*)$", "^[./]"],
|
||||
importOrderSeparation: true,
|
||||
importOrderSortSpecifiers: true
|
||||
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;
|
||||
|
||||
@@ -5797,6 +5797,29 @@
|
||||
- active:
|
||||
_eq: true
|
||||
check: null
|
||||
event_triggers:
|
||||
- name: tasks_assigned_changed
|
||||
definition:
|
||||
enable_manual: false
|
||||
insert:
|
||||
columns: '*'
|
||||
update:
|
||||
columns:
|
||||
- assigned_to
|
||||
retry_conf:
|
||||
interval_sec: 10
|
||||
num_retries: 3
|
||||
timeout_sec: 60
|
||||
webhook_from_env: HASURA_API_URL
|
||||
headers:
|
||||
- name: event-secret
|
||||
value_from_env: EVENT_SECRET
|
||||
request_transform:
|
||||
method: POST
|
||||
query_params: {}
|
||||
template_engine: Kriti
|
||||
url: '{{$base_url}}/tasks-assigned-handler'
|
||||
version: 2
|
||||
- table:
|
||||
name: timetickets
|
||||
schema: public
|
||||
|
||||
Reference in New Issue
Block a user