From 02a251b8635504ad53a2fde0484e32bc37e73cae Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 28 Jun 2021 21:54:12 +0800 Subject: [PATCH] Update configs --- packages/schemas/.gitignore | 12 ++++++++---- packages/schemas/.vscode/settings.json | 13 +++++++++++-- packages/schemas/xo.config.js | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/packages/schemas/.gitignore b/packages/schemas/.gitignore index 74ec73b31..292d40c00 100644 --- a/packages/schemas/.gitignore +++ b/packages/schemas/.gitignore @@ -12,10 +12,14 @@ /build /lib -# misc -.DS_Store -*.env - +# logs +logs +*.log npm-debug.log* yarn-debug.log* yarn-error.log* + +# misc +cache +.DS_Store +*.env diff --git a/packages/schemas/.vscode/settings.json b/packages/schemas/.vscode/settings.json index 1514962c7..eaa005f35 100644 --- a/packages/schemas/.vscode/settings.json +++ b/packages/schemas/.vscode/settings.json @@ -1,4 +1,13 @@ { "typescript.tsdk": "node_modules/typescript/lib", - "editor.defaultFormatter": "samverschueren.linter-xo" -} \ No newline at end of file + "editor.defaultFormatter": "samverschueren.linter-xo", + "xo.enable": true, + "xo.format.enable": true, + "editor.formatOnSave": true, + "[typescriptreact]": { + "editor.defaultFormatter": "samverschueren.linter-xo" + }, + "[javascript]": { + "editor.defaultFormatter": "samverschueren.linter-xo" + } +} diff --git a/packages/schemas/xo.config.js b/packages/schemas/xo.config.js index 9a8c91c1c..d35b804e6 100644 --- a/packages/schemas/xo.config.js +++ b/packages/schemas/xo.config.js @@ -1 +1 @@ -module.exports = require("@logto/essentials/.xo-config.json"); +module.exports = require('@logto/essentials/.xo-config.json');