Commit 84cdfc3
committed
fix: suppress n/no-unpublished-import for eslint.config.* files
eslint.config.* files always import devDependencies (ESLint plugins/presets)
by design — they are never part of the published package. However, projects
without a "files" field in package.json cause npm to default to publishing
everything, making eslint.config.* appear to be a published file. In that
case the rule fires on line 1 of every project's eslint.config.mjs:
"@sofie-automation/code-standard-preset" is not published n/no-unpublished-import
We already suppress n/no-extraneous-import for the same files. Add the same
exemption for n/no-unpublished-import.1 parent fcaae24 commit 84cdfc3
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
224 | 229 | | |
| 230 | + | |
225 | 231 | | |
226 | 232 | | |
227 | 233 | | |
| |||
0 commit comments