package.json 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. {
  2. "name": "whitespace",
  3. "version": "0.37.8",
  4. "main": "./lib/main",
  5. "description": "Strips trailing whitespace and adds a trailing newline when an editor is saved.",
  6. "repository": "https://github.com/pulsar-edit/pulsar",
  7. "license": "MIT",
  8. "engines": {
  9. "atom": "*"
  10. },
  11. "devDependencies": {
  12. "fs-plus": "2.x",
  13. "temp": "~0.8.1"
  14. },
  15. "configSchema": {
  16. "removeTrailingWhitespace": {
  17. "type": "boolean",
  18. "default": true,
  19. "scopes": {
  20. ".source.diff": {
  21. "default": false
  22. },
  23. ".source.jade": {
  24. "default": false
  25. },
  26. ".source.patch": {
  27. "default": false
  28. },
  29. ".source.pug": {
  30. "default": false
  31. }
  32. },
  33. "description": "Automatically remove whitespace characters at ends of lines when the buffer is saved. To disable/enable for a certain language, use [syntax-scoped properties](https://github.com/pulsar-edit/whitespace#readme) in your `config.cson`."
  34. },
  35. "keepMarkdownLineBreakWhitespace": {
  36. "type": "boolean",
  37. "default": true,
  38. "description": "Markdown uses two or more spaces at the end of a line to signify a line break. Enable this option to keep this whitespace in Markdown files, even if other settings would remove it."
  39. },
  40. "ignoreWhitespaceOnCurrentLine": {
  41. "type": "boolean",
  42. "default": true,
  43. "description": "Skip removing trailing whitespace on the line which the cursor is positioned on when the buffer is saved. To disable/enable for a certain language, use [syntax-scoped properties](https://github.com/pulsar-edit/pulsar/tree/master/packages/whitespace#readme) in your `config.cson`."
  44. },
  45. "ignoreWhitespaceOnlyLines": {
  46. "type": "boolean",
  47. "default": false,
  48. "description": "Skip removing trailing whitespace on lines which consist only of whitespace characters. To disable/enable for a certain language, use [syntax-scoped properties](https://github.com/pulsar-edit/pulsar/tree/master/packages/whitespace#readme) in your `config.cson`."
  49. },
  50. "ensureSingleTrailingNewline": {
  51. "type": "boolean",
  52. "default": true,
  53. "description": "If the buffer doesn't end with a newline character when it's saved, then append one. If it ends with more than one newline, remove all but one. To disable/enable for a certain language, use [syntax-scoped properties](https://github.com/pulsar-edit/pulsar/tree/master/packages/whitespace#readme) in your `config.cson`."
  54. }
  55. }
  56. }