Amplitude ESLint Plugin
amplitude/sort-imports
Rule to enforce Amplitude import sort style.Imports should be grouped into sections:
- module imports (determined by comparing with
dependencies
anddevDependencies
field entries in package.json) - module type imports
- package imports
- package type imports
- imports with extensions in the declaration source value (e.g. ".scss", ".svg")
Each section is sorted by the "source value" (the path/file/identifier of the module) and separated by an empty line.