- reproduces mskelton/eslint-plugin-sort#62
Simple repo to reproduce an eslint sorting error.
- When running
npm run lint
relative path imports of two levels../../
are not sorted correctly. However, single layer../
and three layer../../../
relative path imports seem to be sorted correctly. - Also, it appears that the two level sorting issue is only present one directory below
./src
. E.g../src/__mocks__/handler.mjs
contains both two layer and three layer, but is sorted correctly with no complaints from eslint. - It does not seem to be related to alias paths either, as can be seen in comparing
./src/__mocks__/handler.mjs
and./src/__mocks__/other-handler.mjs
- Clone this repo
- Run
npm install
- Run
npm run lint
- See error in
- node:
v20.11.1
- npm:
10.2.4