Skip to content

Commit

Permalink
Codebase refactoring, described in #92 (#93)
Browse files Browse the repository at this point in the history
* convert sources to commonjs

* ignore .idea files

* code formatting

* add eslint

* smaller modules, refactoring

* move source coverage collection to separate class

* continue refactoring, drop WeekMap usage

* refactor main.js

* cleanup irrelevant files

* remove jshint comments, reformat some code

* CoverageTransformer class

* prefer public module interfaces

* move all sources to src, add babel build

* update eslint config, apply rule updates

* use node 6 for running tests (because of es6 features support)

* codestyle changes, deps update, chore things

* revert typings

* .editorconfig “indent_size = 4”

* update lint rules
  • Loading branch information
zxbodya authored and jdonaghue committed Nov 26, 2016
1 parent 0ff2b41 commit a990033
Show file tree
Hide file tree
Showing 41 changed files with 1,073 additions and 1,085 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]

indent_style = tab
indent_size = 4

end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/tests
40 changes: 40 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"extends": "airbnb-base",
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"no-tabs": 0,
"import/prefer-default-export": 0,
"import/no-extraneous-dependencies": 0,
"import/no-dynamic-require": 1,
"prefer-template": 1,
"max-len": [
"error",
120
],
"no-restricted-syntax": 0,
"arrow-parens": 0,
"no-param-reassign": 1,
"global-require": 1,
"no-underscore-dangle": 0,
"no-shadow": 1,
"consistent-return": 1,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}]
}
}
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
*.sh text eol=lf
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea
html-report
node_modules
tmp
.idea
/lib
73 changes: 0 additions & 73 deletions .jshintrc

This file was deleted.

1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
tests
.jshintrc
.travis.yml
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ notifications:
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always
node_js:
- "5.1"
- 6
cache:
directories:
- node_modules
Expand Down
172 changes: 0 additions & 172 deletions bin/remap-istanbul

This file was deleted.

28 changes: 0 additions & 28 deletions jsconfig.json

This file was deleted.

Loading

0 comments on commit a990033

Please sign in to comment.