File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
import tsParser from "@typescript-eslint/parser" ;
3
3
import tseslint from "typescript-eslint" ;
4
4
// 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
6
6
import { dirname } from "node:path" ;
7
7
import { fileURLToPath } from "node:url" ;
8
8
9
9
// 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).
11
10
// Usage:
12
11
// npx eslint --config "$CONFIG_FILE" "${TARGET_DIR}/**/*.ts"
13
12
Original file line number Diff line number Diff line change 27
27
"main" : " index.js" ,
28
28
"files" : [
29
29
" dist" ,
30
+ " !dist/tests" ,
31
+ " eslint.config.publish.mjs" ,
30
32
" index.js" ,
31
33
" README.md" ,
32
34
" LICENSE"
You can’t perform that action at this time.
0 commit comments