Closed
Description
- I have looked for existing open or closed documentation requests that match my proposal.
- I have read the FAQ and my problem is not listed.
Suggested Changes
After performing the local linking steps, I am getting: Definition for rule '@typescript-eslint/no-unused-vars' was not found
when running npx eslint .
It feels like the page might lack information on what the minimum requirements for a repository made to test a rule are, but if the steps on the page are in fact the only ones, they don't seem to work for me. I ran:
~/typescript-eslint (main)
$ for package in ./packages/*; do
cd $package
npm link
cd ../..
done
which succeeded after adding a bunch of packages, then:
~/playground (main)
$ npm link @typescript-eslint/eslint-plugin @typescript-eslint/parser
added 2 packages, changed 1 package, and audited 386 packages in 4m
and then:
~/playground (main)
$ npx eslint .
1:1 error Definition for rule '@typescript-eslint/no-unused-vars' was not found @typescript-eslint/no-unused-vars
My .eslintrc.json looks like this:
{
"rules": {
"@typescript-eslint/no-unused-vars": "error"
}
}
and I'm pretty confident that's a real rule
Affected URL(s)
https://typescript-eslint.io/contributing/local-development/local-linking