diff --git a/Readme.md b/Readme.md index 109c25d..a6d1906 100644 --- a/Readme.md +++ b/Readme.md @@ -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: diff --git a/sample_config/sample_eslint.config.mjs b/eslint.config.publish.mjs similarity index 92% rename from sample_config/sample_eslint.config.mjs rename to eslint.config.publish.mjs index bcb185e..a71b550 100644 --- a/sample_config/sample_eslint.config.mjs +++ b/eslint.config.publish.mjs @@ -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" diff --git a/package.json b/package.json index e00413b..a601a6d 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "main": "index.js", "files": [ "dist", + "!dist/tests", + "eslint.config.publish.mjs", "index.js", "README.md", "LICENSE"