## amplitude/sort-imports

Downloads in past


1.1.12 months ago4 years agoMinified + gzip package size for @amplitude/eslint-plugin-amplitude in KB


Amplitude ESLint Plugin


Rule to enforce Amplitude import sort style.
Imports should be grouped into sections:
  1. module imports (determined by comparing with dependencies and devDependencies field entries in package.json)
  2. module type imports
  3. package imports
  4. package type imports
  5. 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.