File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22import tsParser from "@typescript-eslint/parser" ;
33import tseslint from "typescript-eslint" ;
44// Import the local plugin using ES Module syntax
5- import localPlugin from ".. /index.js" ; // Assumes index.js is the entry point
5+ import localPlugin from "./index.js" ; // Assumes index.js is the entry point
66import { dirname } from "node:path" ;
77import { fileURLToPath } from "node:url" ;
88
99// Sample configuration file for the rule
10- // ! This configuration file is provided as example and path needs to be modified before use (check path in the code below).
1110// Usage:
1211// npx eslint --config "$CONFIG_FILE" "${TARGET_DIR}/**/*.ts"
1312
Original file line number Diff line number Diff line change 2727 "main" : " index.js" ,
2828 "files" : [
2929 " dist" ,
30+ " !dist/tests" ,
31+ " eslint.config.publish.mjs" ,
3032 " index.js" ,
3133 " README.md" ,
3234 " LICENSE"
You can’t perform that action at this time.
0 commit comments