We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible prioritize Node's built-in modules over 3rd party modules?
Given the following imports:
import path from 'path' import cookieSession from 'cookie-session' import cors from 'cors' import favicon from 'serve-favicon' import 'express-async-errors' import { createProxyMiddleware } from 'http-proxy-middleware' import express from 'express'
The plugin will output the following after formatting
import cookieSession from 'cookie-session' import cors from 'cors' import express from 'express' import 'express-async-errors' import { createProxyMiddleware } from 'http-proxy-middleware' import path from 'path' import favicon from 'serve-favicon'
But would be nice if built-in modules like path, fs, util, etc are prioritized
path
fs
util
import path from 'path' import cookieSession from 'cookie-session' import cors from 'cors' import express from 'express' import 'express-async-errors' import { createProxyMiddleware } from 'http-proxy-middleware' import favicon from 'serve-favicon'
Even the following config would not solve this because these built-in modules would appear after and not before.
"importOrder": [ "^(assert|buffer|child_process|cluster|crypto|dgram|dns|domain|events|fs|http|https|net|os|path|punycode|querystring|readline|stream|string_decoder|timers|tls|tty|url|util|v8|vm|zlib)$", "^[./]" ],
Undesired result (path is not prioritized):
import cookieSession from 'cookie-session' import cors from 'cors' import express from 'express' import 'express-async-errors' import { createProxyMiddleware } from 'http-proxy-middleware' import favicon from 'serve-favicon' import path from 'path'
The text was updated successfully, but these errors were encountered:
Duplicate #65
Sorry, something went wrong.
No branches or pull requests
Is it possible prioritize Node's built-in modules over 3rd party modules?
Given the following imports:
The plugin will output the following after formatting
But would be nice if built-in modules like
path
,fs
,util
, etc are prioritizedEven the following config would not solve this because these built-in modules would appear after and not before.
Undesired result (path is not prioritized):
The text was updated successfully, but these errors were encountered: