From 38a6ab101191478d90ab1f5dc2142ce277cf77a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 27 Mar 2020 09:51:07 +0100 Subject: [PATCH] feat: force imports to be alphabetized BREAKING CHANGE: imports must now be alphabetized in each group --- index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2e9846b..b08d35f 100644 --- a/index.js +++ b/index.js @@ -308,6 +308,9 @@ module.exports = { 'index', ], 'newlines-between': 'always', + alphabetize: { + order: 'asc', + }, }, ], 'import/newline-after-import': 'error', @@ -315,11 +318,11 @@ module.exports = { 'import/max-dependencies': 'off', 'import/no-unassigned-import': [ 'warn', - { allow: ['make-promises-safe', 'node-report'] }, + { allow: ['make-promises-safe', 'node-report', 'reflect-metadata'] }, ], 'import/no-named-default': 'error', 'import/no-default-export': 'off', - 'import/no-anonymous-default-export': 'warn', + 'import/no-anonymous-default-export': 'off', 'import/group-exports': 'off', 'import/dynamic-import-chunkname': 'off', },