From 35027836753131f0618d654ebb574761a109e2be Mon Sep 17 00:00:00 2001 From: Enubia <44695100+Enubia@users.noreply.github.com> Date: Mon, 5 Aug 2024 10:48:06 +0200 Subject: [PATCH] fix: eslint rule --- eslint.config.js | 51 ++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 25 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index fd080b99..effd06e5 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -13,31 +13,32 @@ export default antfu({ curly: ['error', 'all'], 'import/order': 'off', 'unused-imports/no-unused-imports': 'warn', - 'perfectionist/sort-imports': ['error', { - type: 'natural', - order: 'asc', - groups: [ - 'customTypes', - ['builtin-type', 'type'], - 'builtin', - 'external', - 'internal-type', - 'internal', - ['parent-type', 'sibling-type', 'index-type'], - ['parent', 'sibling', 'index'], - 'side-effect', - 'object', - 'style', - 'unknown', - ], - 'newlines-between': 'always', - 'internal-pattern': [ - '#components/**', - '#shared/**', - '#layouts/**', - '#lib/**', - ], - }], + // disabled for now due to "should NOT have additional properties." error + // 'perfectionist/sort-imports': ['error', { + // type: 'natural', + // order: 'asc', + // groups: [ + // 'customTypes', + // ['builtin-type', 'type'], + // 'builtin', + // 'external', + // 'internal-type', + // 'internal', + // ['parent-type', 'sibling-type', 'index-type'], + // ['parent', 'sibling', 'index'], + // 'side-effect', + // 'object', + // 'style', + // 'unknown', + // ], + // 'newlines-between': 'always', + // 'internal-pattern': [ + // '#components/**', + // '#shared/**', + // '#layouts/**', + // '#lib/**', + // ], + // }], }, stylistic: {