From fa8e04fa7124ec33b3d305dd943e32f79a59e986 Mon Sep 17 00:00:00 2001 From: Sean Lang Date: Sat, 12 Sep 2015 14:06:50 -0400 Subject: [PATCH 1/2] add final newlines & remove trailing whitespace --- README.md | 2 +- examples/function.coffee | 2 +- examples/require-extension/baz.coffee | 1 - src/reporter.coffee | 2 +- src/type-scope.coffee | 2 +- src/types.coffee | 2 +- test/ranges.coffee | 2 +- 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d6c22f6a..5d678d64 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ TypeScript AST parser is ready. [mizchi/dts-parser](https://github.com/mizchi/dt - module system - robust namespace resolver - splats argument such as `( args...: T[] ) -> ` -- this scope in bound function +- this scope in bound function #### Wip diff --git a/examples/function.coffee b/examples/function.coffee index 0d6cc2dc..a7c32ed2 100644 --- a/examples/function.coffee +++ b/examples/function.coffee @@ -24,4 +24,4 @@ nullableFunc = (n) -> else return null 3 -nullableFunc 5 \ No newline at end of file +nullableFunc 5 diff --git a/examples/require-extension/baz.coffee b/examples/require-extension/baz.coffee index 89ccd45d..6debc976 100644 --- a/examples/require-extension/baz.coffee +++ b/examples/require-extension/baz.coffee @@ -3,4 +3,3 @@ console.log 'baz' 2 # struct A # a :: Int - diff --git a/src/reporter.coffee b/src/reporter.coffee index e4ca773e..43b8164c 100644 --- a/src/reporter.coffee +++ b/src/reporter.coffee @@ -48,4 +48,4 @@ class Reporter for next in node.nodes @dump next, prefix + ' ' -module.exports = new Reporter \ No newline at end of file +module.exports = new Reporter diff --git a/src/type-scope.coffee b/src/type-scope.coffee index 286df637..bf10c631 100644 --- a/src/type-scope.coffee +++ b/src/type-scope.coffee @@ -247,4 +247,4 @@ class FunctionScope extends Scope module.exports = { Scope, ClassScope, FunctionScope, ModuleScope -} \ No newline at end of file +} diff --git a/src/types.coffee b/src/types.coffee index 8385ef16..caa3944d 100644 --- a/src/types.coffee +++ b/src/types.coffee @@ -87,4 +87,4 @@ initializeGlobalTypes = (node) -> module.exports = { initializeGlobalTypes, primitives, ImplicitAny -} \ No newline at end of file +} diff --git a/test/ranges.coffee b/test/ranges.coffee index 146e4259..d7f80c30 100644 --- a/test/ranges.coffee +++ b/test/ranges.coffee @@ -119,7 +119,7 @@ suite 'Range Literals', -> eq [3..1].toString(), "3,2,1" eq [1..4].toString(), "1,2,3,4" eq [4..1].toString(), "4,3,2,1" - + eq [1...3].toString(), "1,2" eq [3...1].toString(), "3,2" eq [1...4].toString(), "1,2,3" From fefbb8d54caf0ecf6b86a4715b7a2b05fb69dbdd Mon Sep 17 00:00:00 2001 From: Sean Lang Date: Sat, 12 Sep 2015 14:30:57 -0400 Subject: [PATCH 2/2] add an editorconfig to prevent formatting errors --- .editorconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..8eca17c7 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +[*] +end_of_line = lf +indent_style = space +indent_size = 2 +insert_final_newline = true +max_line_length = 80 +trim_trailing_whitespace = true + +[*.{md,json}] +max_line_length = null + +[Makefile] +indent_style = tab