require-netlify-publish-directory-no-trailing-slash
Require Netlify publish directory values to omit trailing slashes.
Targeted pattern scopeâ
publish = ...innetlify.toml.
What this rule reportsâ
This rule reports publish directory values ending with /.
Why this rule existsâ
A canonical path style reduces noisy config diffs and avoids subtle path-join inconsistencies across tooling.
â Incorrectâ
[build]
publish = "dist/"
â Correctâ
[build]
publish = "dist"
When not to use itâ
Disable this rule if trailing slash conventions are intentionally required by other deployment tooling.
Rule catalog ID: R114