import-sort icon indicating copy to clipboard operation
import-sort copied to clipboard

Sort ES2015 (aka ES6) imports. Both JavaScript and TypeScript are supported.

Results 69 import-sort issues
Sort by recently updated
recently updated
newest added
trafficstars

lies, decorators work fine on parameters ```ts @singleton export class OrderResolver implements GraphQLResolversFactory { constructor(@lazy(OrderRepository) private readonly repo: () => OrderRepository) {} resolvers(): Resolvers { return { Query: { order:...

The core issue is in `micromatch` matching, used by `globby` internally, see playground here https://codesandbox.io/s/10p9160v7l So a possible solution is to escaping "+" character, probably not only the plus one....

Have there been any plans to combine all (side-effect-free) imports from the same file into a single import statement? We're using import-sort in combination with Prettier and would benefit a...

If you have: ```js import("foo") console.log("biz") import("bar") ``` Despite what you have in styles, you would get the console.log to be pushed at the end of imports ```js import("foo") import("bar")...

Inspired by #107. Makes using custom styles just a little bit easier.

``` $ import-sort src/index.js src/index.js: Error: Cannot find module '@babel/plugin-proposal-do-expressions' Require stack: - /home/ploppz/node_modules/@babel/core/lib/config/files/plugins.js - /home/ploppz/node_modules/@babel/core/lib/config/files/index.js - /home/ploppz/node_modules/@babel/core/lib/index.js - /home/ploppz/node_modules/import-sort-parser-babylon/lib/index.js - /home/ploppz/node_modules/import-sort/lib/index.js - /home/ploppz/node_modules/import-sort-cli/lib/index.js ``` In `package.json` I have: ```...

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. Commits c74c8af 1.3.7 024b8b5 update deps, add linting 032fbaf Use Object.create(null) to avoid default object property hazards 2da9039 1.3.6 cfea636 better git push script,...

dependencies

``` Unexpected token, expected "(" (/Users/fraggle/Sources/ev-server-git/src/client/ocpi/OCPIClient.ts:291:17) 289 | } 290 | > 291 | async abstract triggerJobs(): Promise; | ^ 292 | } 293 | ```

This PR add the support for applying import sort to a file passed in through `stdin`. Two options are added to the `import-sort` CLI util: 1. `--stdin`: Make `import-sort` read...

There is a low level security vulnerability in the `yargs` library that is used in the `import-sort-cli`. Bumping to latest should fix the issue. Screenshot from using `npm audit`