Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vercel/next.js
/ getRuleNameFromRulePath
Function
getRuleNameFromRulePath
test/unit/eslint-plugin-next/index.test.ts:5–5 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
3
import
index from
'@next/eslint-plugin-next'
4
5
const
getRuleNameFromRulePath = (path) => basename(path,
'.js'
)
6
const
rulePaths = glob.sync(
'packages/eslint-plugin-next/dist/rules/*js'
, {
7
absolute: true,
8
})
Callers
1
index.test.ts
File · 0.85
Calls
1
basename
Function · 0.85
Tested by
no test coverage detected