From 988c5c6a25fd30c6ec3e94b683cdb98332fffa7c Mon Sep 17 00:00:00 2001 From: soulsands <407221377@qq.com> Date: Tue, 11 Apr 2023 00:37:38 +0800 Subject: [PATCH] chore: config --- .eslintrc.js | 7 +++++-- .vscode/settings.json | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 86b84a4cf..f944ca9a0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,7 +18,8 @@ module.exports = { parser: 'jsonc-eslint-parser', rules: { 'jsonc/sort-keys': [ - 'error', + // here is rule (to be deleted) + 'off', { pathPattern: '^$', order: [ @@ -135,7 +136,8 @@ module.exports = { 'no-inner-declarations': 'off', // prettier - 'prettier/prettier': ['error', { endOfLine: 'auto' }], + // all about formating, it might take a while to excute it. you can change the config in .prettierrc.js (to be deleted) + 'prettier/prettier': ['off', { endOfLine: 'auto' }], // airbnb-base 'no-console': 'off', @@ -211,5 +213,6 @@ module.exports = { 'import/no-named-as-default-member': 'off', yoda: 'off', 'no-script-url': 'off', + }, }; diff --git a/.vscode/settings.json b/.vscode/settings.json index 52d1921a4..0e4b77b5c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,6 +2,9 @@ "[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, + "[json]": { + "editor.defaultFormatter": "dbaeumer.vscode-eslint" + }, "editor.formatOnSave": true, "eslint.format.enable": true, "eslint.probe": [