You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a source code file satisfies all of the following conditions, the file is \*published\*.
-`"files"` field of `package.json` includes the file or `"files"` field of `package.json` does not exist.
-`.npmignore` does not include the file.
Then this rule warns `import` declarations in \*published\* files if the `import` declaration imports \*unpublished\* files or the packages of `devDependencies`.
all conditions are met:
"files" field of package.json does not exist.
.npmignore does not include the file. (npm pack include it)
My package works when running locally and it include files which are being reported as
node/no-unpublished-import
.Looking at the rule details
eslint-plugin-node/docs/rules/no-unpublished-import.md
Lines 9 to 16 in f45c614
"files"
field ofpackage.json
does not exist..npmignore
does not include the file. (npm pack
include it)Here are more details:
It is a bug or am I missing something?
The text was updated successfully, but these errors were encountered: