ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / no-self-import
Disallows self-import.
module.exports = {
plugins: ["misc"],
rules: {
"misc/no-self-import": "error"
}
};
// filename: file.ts
import { a } from "./file";
import { b } from "./file.ts";
// filename: file.ts
import { a } from "@/file";
import { b } from "@/file.ts";