Skip to content

Fix script for publish #8

New issue

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Optimizes code for better WebAssembly performance:

## Configuration

See `sample_config/sample_eslint.config.mjs` for a detailed example of how to configure and use this plugin.
See `eslint.config.publish.mjs` for a detailed example of how to configure and use this plugin.

It includes some other pre-written rules including:

Expand Down
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