MCPcopy
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

3import index from '@next/eslint-plugin-next'
4
5const getRuleNameFromRulePath = (path) => basename(path, '.js')
6const rulePaths = glob.sync('packages/eslint-plugin-next/dist/rules/*js', {
7 absolute: true,
8})

Callers 1

index.test.tsFile · 0.85

Calls 1

basenameFunction · 0.85

Tested by

no test coverage detected