trackler 2.1.0.25 → 2.1.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +10 -0
  3. data/bin/bootstrap +6 -0
  4. data/common/CONTRIBUTING.md +2 -2
  5. data/lib/trackler/version.rb +1 -1
  6. data/tracks/coffeescript/LICENSE +2 -2
  7. data/tracks/coffeescript/README.md +0 -5
  8. data/tracks/coldfusion/LICENSE +2 -2
  9. data/tracks/coldfusion/README.md +0 -5
  10. data/tracks/crystal/LICENSE +2 -2
  11. data/tracks/crystal/README.md +0 -5
  12. data/tracks/dlang/.travis.yml +4 -2
  13. data/tracks/dlang/LICENSE +2 -2
  14. data/tracks/dlang/README.md +3 -6
  15. data/tracks/dlang/bin/test-all-exercises +20 -0
  16. data/tracks/dlang/bin/test-exercise +16 -0
  17. data/tracks/dlang/config.json +0 -18
  18. data/tracks/dlang/exercises/difference-of-squares/difference_of_squares.d +6 -3
  19. data/tracks/dlang/exercises/difference-of-squares/difference_of_squares_example.d +17 -0
  20. data/tracks/dlang/exercises/gigasecond/gigasecond.d +7 -3
  21. data/tracks/dlang/exercises/gigasecond/gigasecond_example.d +15 -0
  22. data/tracks/dlang/exercises/hello-world/hello_world.d +4 -3
  23. data/tracks/dlang/exercises/hello-world/hello_world_example.d +9 -0
  24. data/tracks/dlang/exercises/nucleotide-count/nucleotide_count.d +1 -1
  25. data/tracks/dlang/exercises/raindrops/raindrops.d +6 -3
  26. data/tracks/dlang/exercises/raindrops/raindrops_example.d +20 -0
  27. data/tracks/dlang/exercises/rna-transcription/rna_transcription.d +7 -3
  28. data/tracks/dlang/exercises/rna-transcription/rna_transcription_example.d +15 -0
  29. data/tracks/ecmascript/exercises/accumulate/package.json +25 -39
  30. data/tracks/ecmascript/exercises/acronym/package.json +25 -39
  31. data/tracks/ecmascript/exercises/all-your-base/package.json +25 -39
  32. data/tracks/ecmascript/exercises/allergies/package.json +25 -39
  33. data/tracks/ecmascript/exercises/anagram/package.json +25 -39
  34. data/tracks/ecmascript/exercises/atbash-cipher/package.json +25 -39
  35. data/tracks/ecmascript/exercises/beer-song/package.json +25 -39
  36. data/tracks/ecmascript/exercises/binary/package.json +25 -39
  37. data/tracks/ecmascript/exercises/binary-search/example.js +3 -1
  38. data/tracks/ecmascript/exercises/binary-search/package.json +25 -39
  39. data/tracks/ecmascript/exercises/binary-search-tree/package.json +25 -39
  40. data/tracks/ecmascript/exercises/bob/bob.js +1 -0
  41. data/tracks/ecmascript/exercises/bob/package.json +25 -39
  42. data/tracks/ecmascript/exercises/bracket-push/package.json +25 -39
  43. data/tracks/ecmascript/exercises/circular-buffer/package.json +25 -39
  44. data/tracks/ecmascript/exercises/clock/package.json +25 -39
  45. data/tracks/ecmascript/exercises/connect/example.js +4 -1
  46. data/tracks/ecmascript/exercises/connect/package.json +25 -39
  47. data/tracks/ecmascript/exercises/crypto-square/package.json +25 -39
  48. data/tracks/ecmascript/exercises/custom-set/package.json +25 -39
  49. data/tracks/ecmascript/exercises/diamond/example.js +3 -4
  50. data/tracks/ecmascript/exercises/diamond/package.json +25 -39
  51. data/tracks/ecmascript/exercises/difference-of-squares/package.json +25 -39
  52. data/tracks/ecmascript/exercises/etl/package.json +25 -39
  53. data/tracks/ecmascript/exercises/food-chain/package.json +25 -39
  54. data/tracks/ecmascript/exercises/gigasecond/package.json +25 -39
  55. data/tracks/ecmascript/exercises/grade-school/package.json +25 -39
  56. data/tracks/ecmascript/exercises/grains/lib/big-integer.js +1153 -1152
  57. data/tracks/ecmascript/exercises/grains/package.json +25 -39
  58. data/tracks/ecmascript/exercises/hamming/package.json +25 -39
  59. data/tracks/ecmascript/exercises/hello-world/package.json +25 -39
  60. data/tracks/ecmascript/exercises/hexadecimal/package.json +25 -39
  61. data/tracks/ecmascript/exercises/isogram/package.json +25 -39
  62. data/tracks/ecmascript/exercises/kindergarten-garden/package.json +25 -39
  63. data/tracks/ecmascript/exercises/largest-series-product/example.js +8 -2
  64. data/tracks/ecmascript/exercises/largest-series-product/package.json +25 -39
  65. data/tracks/ecmascript/exercises/leap/package.json +25 -39
  66. data/tracks/ecmascript/exercises/linked-list/package.json +25 -39
  67. data/tracks/ecmascript/exercises/luhn/package.json +25 -39
  68. data/tracks/ecmascript/exercises/matrix/package.json +25 -39
  69. data/tracks/ecmascript/exercises/meetup/example.js +3 -5
  70. data/tracks/ecmascript/exercises/meetup/meetup.spec.js +2 -5
  71. data/tracks/ecmascript/exercises/meetup/package.json +25 -39
  72. data/tracks/ecmascript/exercises/nth-prime/package.json +25 -39
  73. data/tracks/ecmascript/exercises/ocr-numbers/package.json +25 -39
  74. data/tracks/ecmascript/exercises/octal/package.json +25 -39
  75. data/tracks/ecmascript/exercises/package.json +24 -40
  76. data/tracks/ecmascript/exercises/palindrome-products/package.json +25 -39
  77. data/tracks/ecmascript/exercises/pangram/package.json +25 -39
  78. data/tracks/ecmascript/exercises/pascals-triangle/package.json +25 -39
  79. data/tracks/ecmascript/exercises/perfect-numbers/example.js +5 -7
  80. data/tracks/ecmascript/exercises/perfect-numbers/package.json +25 -39
  81. data/tracks/ecmascript/exercises/phone-number/package.json +25 -39
  82. data/tracks/ecmascript/exercises/pig-latin/package.json +25 -39
  83. data/tracks/ecmascript/exercises/prime-factors/package.json +25 -39
  84. data/tracks/ecmascript/exercises/pythagorean-triplet/package.json +25 -39
  85. data/tracks/ecmascript/exercises/queen-attack/package.json +25 -39
  86. data/tracks/ecmascript/exercises/queen-attack/queen-attack.spec.js +1 -2
  87. data/tracks/ecmascript/exercises/raindrops/package.json +25 -39
  88. data/tracks/ecmascript/exercises/rna-transcription/example.js +1 -2
  89. data/tracks/ecmascript/exercises/rna-transcription/package.json +25 -39
  90. data/tracks/ecmascript/exercises/robot-name/package.json +25 -39
  91. data/tracks/ecmascript/exercises/robot-simulator/package.json +25 -39
  92. data/tracks/ecmascript/exercises/roman-numerals/package.json +25 -39
  93. data/tracks/ecmascript/exercises/saddle-points/example.js +1 -1
  94. data/tracks/ecmascript/exercises/saddle-points/package.json +25 -39
  95. data/tracks/ecmascript/exercises/say/package.json +25 -39
  96. data/tracks/ecmascript/exercises/scrabble-score/package.json +25 -39
  97. data/tracks/ecmascript/exercises/secret-handshake/package.json +25 -39
  98. data/tracks/ecmascript/exercises/series/package.json +25 -39
  99. data/tracks/ecmascript/exercises/sieve/example.js +1 -1
  100. data/tracks/ecmascript/exercises/sieve/package.json +25 -39
  101. data/tracks/ecmascript/exercises/simple-cipher/package.json +25 -39
  102. data/tracks/ecmascript/exercises/space-age/package.json +25 -39
  103. data/tracks/ecmascript/exercises/strain/package.json +25 -39
  104. data/tracks/ecmascript/exercises/sum-of-multiples/package.json +25 -39
  105. data/tracks/ecmascript/exercises/triangle/package.json +25 -39
  106. data/tracks/ecmascript/exercises/trinary/package.json +25 -39
  107. data/tracks/ecmascript/exercises/two-bucket/package.json +25 -39
  108. data/tracks/ecmascript/exercises/word-count/package.json +25 -39
  109. data/tracks/ecmascript/exercises/wordy/package.json +25 -39
  110. data/tracks/ecmascript/package.json +25 -39
  111. data/tracks/factor/config.json +0 -6
  112. data/tracks/go/exercises/variable-length-quantity/.meta/gen.go +0 -8
  113. data/tracks/go/exercises/variable-length-quantity/cases_test.go +0 -9
  114. data/tracks/go/exercises/variable-length-quantity/example.go +5 -5
  115. data/tracks/go/exercises/variable-length-quantity/variable_length_quantity_test.go +2 -4
  116. data/tracks/groovy/LICENSE +2 -2
  117. data/tracks/groovy/README.md +0 -5
  118. data/tracks/haxe/LICENSE +2 -2
  119. data/tracks/haxe/README.md +0 -5
  120. data/tracks/nasm/LICENSE +21 -0
  121. data/tracks/nasm/README.md +1 -6
  122. data/tracks/nim/LICENSE +21 -0
  123. data/tracks/nim/README.md +0 -5
  124. data/tracks/plsql/LICENSE +2 -2
  125. data/tracks/plsql/README.md +0 -5
  126. data/tracks/plsql/config.json +52 -12
  127. data/tracks/pony/LICENSE +2 -2
  128. data/tracks/pony/README.md +0 -5
  129. data/tracks/powershell/LICENSE +21 -0
  130. data/tracks/powershell/README.md +0 -5
  131. data/tracks/prolog/LICENSE +2 -2
  132. data/tracks/prolog/README.md +1 -6
  133. data/tracks/purescript/LICENSE +2 -2
  134. data/tracks/purescript/README.md +0 -5
  135. data/tracks/ruby/exercises/meetup/.meta/solutions/meetup.rb +1 -0
  136. data/tracks/ruby/exercises/meetup/meetup_test.rb +0 -1
  137. data/tracks/sml/LICENSE +21 -0
  138. data/tracks/sml/README.md +0 -5
  139. data/tracks/tcl/LICENSE +2 -2
  140. data/tracks/tcl/README.md +1 -6
  141. data/tracks/teco/LICENSE +2 -2
  142. data/tracks/teco/README.md +0 -5
  143. data/tracks/vbnet/LICENSE +21 -0
  144. data/tracks/vbnet/README.md +0 -5
  145. data/tracks/vimscript/config.json +5 -0
  146. data/tracks/vimscript/exercises/scrabble-score/example.vim +21 -0
  147. data/tracks/vimscript/exercises/scrabble-score/scrabble_score.vader +62 -0
  148. data/tracks/vimscript/exercises/scrabble-score/scrabble_score.vim +16 -0
  149. metadata +13 -2
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [
@@ -17,11 +17,10 @@ describe('Queens', () => {
17
17
  const positioning = {white: [2,4], black: [2,4]};
18
18
 
19
19
  try {
20
- const queens = new Queens(positioning);
20
+ new Queens(positioning);
21
21
  } catch(error) {
22
22
  expect(error).toEqual('Queens cannot share the same space');
23
23
  }
24
-
25
24
  });
26
25
 
27
26
  xit('toString representation', () => {
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [
@@ -12,8 +12,7 @@ export default class Transcriptor {
12
12
  if (rna.length !== dna.length) {
13
13
  // invalid characters in the strand
14
14
  throw new Error('Invalid input DNA.');
15
- }
16
- else {
15
+ } else {
17
16
  return rna;
18
17
  }
19
18
  }
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [
@@ -27,52 +27,38 @@
27
27
  "scripts": {
28
28
  "test": "jest --no-cache ./*",
29
29
  "watch": "jest --no-cache --watch ./*",
30
- "lint": "eslint *.js; exit 0;",
31
- "lint-test": "eslint *.js && jest --no-cache ./* "
30
+ "lint": "eslint .",
31
+ "lint-test": "eslint . && jest --no-cache ./* "
32
32
  },
33
33
  "eslintConfig": {
34
34
  "parserOptions": {
35
35
  "ecmaVersion": 6,
36
36
  "sourceType": "module"
37
37
  },
38
+ "env": {
39
+ "es6": true,
40
+ "node": true,
41
+ "jasmine": true
42
+ },
43
+ "extends": "eslint:recommended",
38
44
  "rules": {
39
- "comma-dangle": [
40
- 2,
41
- "never"
42
- ],
43
- "no-cond-assign": [
44
- 2,
45
- "always"
46
- ],
47
- "no-console": 2,
48
- "no-constant-condition": 2,
49
- "no-control-regex": 2,
50
- "no-debugger": 2,
51
- "no-dupe-args": 2,
52
- "no-dupe-keys": 2,
53
- "no-duplicate-case": 2,
54
- "no-empty-character-class": 2,
55
- "no-empty": 2,
56
- "no-ex-assign": 2,
57
- "no-extra-boolean-cast": 2,
58
- "no-extra-parens": 2,
59
- "no-extra-semi": 2,
60
- "no-func-assign": 2,
61
- "no-inner-declarations": [
62
- 2,
63
- "both"
64
- ],
65
- "no-invalid-regexp": 2,
66
- "no-irregular-whitespace": 2,
67
- "no-negated-in-lhs": 2,
68
- "no-obj-calls": 2,
69
- "no-regex-spaces": 2,
70
- "no-sparse-arrays": 2,
71
- "no-unexpected-multiline": 2,
72
- "no-unreachable": 2,
73
- "use-isnan": 2,
74
- "valid-jsdoc": 2,
75
- "valid-typeof": 2
45
+ "indent": [ "off", 2 ],
46
+ "block-scoped-var": "off",
47
+ "radix": "off",
48
+ "no-use-before-define": "off",
49
+ "one-var": [ "off", "always" ],
50
+ "quotes": [ "off", "single", { "avoidEscape": true } ],
51
+ "semi": [ "off", "always" ],
52
+ "semi-spacing": [ "off", { "before": false, "after": true } ],
53
+ "no-whitespace-before-property": "off",
54
+ "space-before-blocks": [ "off", "always" ],
55
+ "space-before-function-paren": [ "off", { "anonymous": "always", "named": "never" } ],
56
+ "keyword-spacing": [ "off", { "before": true, "after": true } ],
57
+ "no-multi-spaces": "off",
58
+ "no-trailing-spaces": "off",
59
+ "curly": [ "error", "all" ],
60
+ "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ],
61
+ "object-curly-spacing": [ "off", "always" ]
76
62
  }
77
63
  },
78
64
  "licenses": [