If I use this code:
const test = require("ava")
With the rule:
'node/no-unpublished-require': 'error',
And AVA is in my package.json:
"devDependencies": {
"ava": "^0.15.1",
},
I get the warning:
1:22 error "ava" is not published node/no-unpublished-require
The rule readme says:
"...If the file require is written is not published then it's also OK that "devDependencies" field of package.json includes the module."
Am I correct in reading that this should not error if the module is in devDependencies?