UNPKG

canonical

Version:

Canonical code style linter and formatter for JavaScript, SCSS, CSS and JSON.

29 lines (19 loc) 554 B
# Final Newline Rule `final-newline` will enforce whether or not files should end with a newline. ## Options * `include`: `true`/`false` (defaults to `true`) ## Examples When `include: true`, the following are allowed. When `include: false`, the following are disallowed: ```scss .foo { content: 'bar'; } // Newline under this comment at end of file ``` When `include: false`, the following are allowed. When `include: true`, the following are disallowed: ```scss .foo { content: 'bar'; } // No newline under this comment at end of file ```