summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2023-12-07 11:39:09 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-12-07 14:21:29 +0000
commitaa1e50aff2aa5a2a7426905f2858c8ec8e9d8da1 (patch)
treec9c51814bd6df8485ebb88b4a46c85c4f7c888e4
parent3f9fadc993eed2d06b4d6cf71773cc063cb82493 (diff)
chore(eslint): enable import/order rule again
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r--.eslintrc.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index cdfeb5e8c..9a921a5ee 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -15,7 +15,7 @@ module.exports = {
'import/newline-after-import': 'warn',
'import/no-named-as-default-member': 'off',
'import/order': [
- 'off', // TODO disabled with #10622 as it breaks tests and changes many components
+ 'warn',
{
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index'], 'unknown'],
pathGroups: [
@@ -48,8 +48,8 @@ module.exports = {
// group project components
pattern: '*.vue',
patternOptions: { matchBase: true },
- group: 'external',
- position: 'after',
+ group: 'parent',
+ position: 'before',
},
],
pathGroupsExcludedImportTypes: ['@nextcloud', 'vue-material-design-icons'],