Releases: Shopify/web-configs
@shopify/eslint-plugin@50.0.0
Major Changes
-
#477
fecfb7bThanks @BPScott! - Useeslint-plugin-import-xinstead 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-xinstead ofimport. You will need to change all rules and settings that define or referenceimport/THINGtoimport-x/THING. e.g. the ruleimport/no-cyclebecomesimport-x/no-cycleand the settingimport/parsersbecomesimport-x/parsers. You should check theeslint-plugin-import-xdocumentation to see if the settings for any rules differ from theireslint-plugin-importcounterparts.Configuration of resolvers has switched from using
import/resolvertoimport-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-typescriptas the default resolver for typescript files so you no longer need to configure a resolver unless you need to override the default options.