Releases: Shopify/web-configs
@shopify/eslint-plugin@50.0.0
Major Changes
-
#477
fecfb7b
Thanks @BPScott! - Useeslint-plugin-import-x
instead ofeslint-plugin-import
. This is faster, while retaing the same features - notably it avoids a large speed degredation when using the no-cycle rule witheslint-plugin-import
.Rule names are the same in
eslint-plugin-import-x
, but the plugin name isimport-x
instead ofimport
. You will need to change all rules and settings that define or referenceimport/THING
toimport-x/THING
. e.g. the ruleimport/no-cycle
becomesimport-x/no-cycle
and the settingimport/parsers
becomesimport-x/parsers
. You should check theeslint-plugin-import-x
documentation to see if the settings for any rules differ from theireslint-plugin-import
counterparts.Configuration of resolvers has switched from using
import/resolver
toimport-x/resolver-next
. Any configuration of resolvers shuld be done using the new setting per https://www.npmjs.com/package/eslint-plugin-import-x#resolvers. We now configureeslint-import-resolver-typescript
as the default resolver for typescript files so you no longer need to configure a resolver unless you need to override the default options.