Answer the question
In order to leave comments, you need to log in
Is it possible to configure grouping of imports according to this scheme in WebStorm?
Before grouping:
import { usefulLibrary } from 'usefulLibrary '
import { myModule1 } from '../my/module/module1'
import { myModule2 } from '../my/module/module2'
import { usefulLibrary2 } from 'usefulLibrary2'
import { myModule3 } from '../my/module/module3'
import { usefulLibrary3 } from 'usefulLibrary3'
import { usefulLibrary } from 'usefulLibrary '
import { usefulLibrary2 } from 'usefulLibrary2'
import { usefulLibrary3 } from 'usefulLibrary3'
import { myModule1 } from '../my/module/module1'
import { myModule2 } from '../my/module/module2'
import { myModule3 } from '../my/module/module3'
node_modules
we put at the top of the file, and the project files a line after them.
Answer the question
In order to leave comments, you need to log in
Found a suitable ESLint
plugin: https://github.com/lydell/eslint-plugin-simple-imp...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question