java-lint
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

java-lint

Unused imports

Current implementation has a lazy implemented global identifiers collectors. False negatives may happen.

import { removeUnusedImports } from 'java-lint';

const dirtySource = ```package my.project;

import my.project.pack.Unused;

class Foo {}
```;

removeUnusedImports(dirtySource);

expect(dirtySource).toMatch(
  ```package my.project;


class Foo {}
```,
);

Readme

Keywords

none

Package Sidebar

Install

npm i java-lint

Weekly Downloads

6,523

Version

0.3.0

License

MIT

Unpacked Size

5.52 kB

Total Files

6

Last publish

Collaborators

  • mshima