Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cheapsteak/eslint-import-order-bug-reproduction
https://github.com/cheapsteak/eslint-import-order-bug-reproduction
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/cheapsteak/eslint-import-order-bug-reproduction
- Owner: cheapsteak
- Created: 2018-02-28T22:54:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T22:56:39.000Z (almost 7 years ago)
- Last Synced: 2024-10-20T14:23:08.038Z (3 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Reproduces error for - https://github.com/benmosher/eslint-plugin-import/issues/1034
Using a webpack config using aliases (and eslint-import-resolver-webpack), each import for an internal modules is being treated as a separate "group". With `'newlines-between': 'always-and-inside-groups'`, they each have to be separated by a new line
```js
resolve: {
alias: {
'~': path.resolve(__dirname, 'src'),
},
},
``````js
import React from 'react';import Foo from '~/components/Foo'; // [eslint] There should be at least one empty line between import groups (import/order)
import Bar from '~/components/Bar'; // no errorimport Baz from '~/components/Baz'; // no error
```