diff --git a/.babelrc b/.babelrc index 53f2ae9..15d27ad 100644 --- a/.babelrc +++ b/.babelrc @@ -1,4 +1,4 @@ { "stage": 0, "loose": "all" -} \ No newline at end of file +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..88f6888 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# editorconfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +insert_final_newline = true +indent_style = space +max_line_length = 0 +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +# The indent size used in the `package.json` file cannot be changed +# https://github.com/npm/npm/pull/3180#issuecomment-16336516 +# The other files are added for parity. +[{.bowerrc,.travis.yml,bower.json,package.json}] +indent_size = 2 +indent_style = space diff --git a/.npmignore b/.npmignore index a8b6d49..739feac 100644 --- a/.npmignore +++ b/.npmignore @@ -4,4 +4,4 @@ examples .DS_Store *.log *.tgs -*.yml \ No newline at end of file +*.yml diff --git a/.travis.yml b/.travis.yml index d99c2e7..c42701f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,3 @@ language: node_js node_js: - - "iojs" \ No newline at end of file + - "iojs" diff --git a/examples/counter/actions/counter.js b/examples/counter/actions/counter.js index 798231a..214092e 100644 --- a/examples/counter/actions/counter.js +++ b/examples/counter/actions/counter.js @@ -31,4 +31,4 @@ export function incrementAsync(delay = 1000) { dispatch(increment()); }, delay); }; -} \ No newline at end of file +} diff --git a/examples/counter/components/counter.html b/examples/counter/components/counter.html index 416e431..08b541f 100644 --- a/examples/counter/components/counter.html +++ b/examples/counter/components/counter.html @@ -1,6 +1,5 @@
Clicked: {{counter.value}} times
- diff --git a/examples/counter/components/counter.js b/examples/counter/components/counter.js index 26e537b..0ddd1e6 100644 --- a/examples/counter/components/counter.js +++ b/examples/counter/components/counter.js @@ -23,4 +23,4 @@ class CounterController { value: state.counter }; } -} \ No newline at end of file +} diff --git a/examples/counter/index.html b/examples/counter/index.html index f548f84..aaf7f9a 100644 --- a/examples/counter/index.html +++ b/examples/counter/index.html @@ -10,4 +10,4 @@