Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
import tsParser from "@typescript-eslint/parser";
import tseslint from "typescript-eslint";
// Import the local plugin using ES Module syntax
import localPlugin from "../index.js"; // Assumes index.js is the entry point
import localPlugin from "./index.js"; // Assumes index.js is the entry point
import { dirname } from "node:path";
import { fileURLToPath } from "node:url";

// Sample configuration file for the rule
// ! This configuration file is provided as example and path needs to be modified before use (check path in the code below).
// Usage:
// npx eslint --config "$CONFIG_FILE" "${TARGET_DIR}/**/*.ts"

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"main": "index.js",
"files": [
"dist",
"!dist/tests",
"eslint.config.publish.mjs",
"index.js",
"README.md",
"LICENSE"
Expand Down