Skip to content

Commit e6a6dcb

Browse files
Merge pull request #103 from RobotlegsJS/upgrade-dependencies
Update dependencies to latest version 🚀
2 parents bbfe97d + 2ef8815 commit e6a6dcb

File tree

8 files changed

+1354
-1280
lines changed

8 files changed

+1354
-1280
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ indent_size = 4
1515
indent_style = space
1616
indent_size = 2
1717

18-
[{.codeclimate.yml,.eslintignore,.eslintrc,.istanbul.yml,.publishrc,.travis.yml}]
18+
[{.auditignore,.codeclimate.yml,.eslintignore,.eslintrc,.istanbul.yml,.prettierrc,.publishrc,.travis.yml}]
1919
indent_style = space
2020
indent_size = 2

.prettierrc

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,19 @@
55
"semi": true,
66
"singleQuote": false,
77
"trailingComma": "none",
8-
"bracketSpacing": true
8+
"bracketSpacing": true,
9+
"overrides": [
10+
{
11+
"files": "*.json",
12+
"options": {
13+
"tabWidth": 2
14+
}
15+
},
16+
{
17+
"files": ".prettierrc",
18+
"options": {
19+
"tabWidth": 2
20+
}
21+
}
22+
]
923
}

.vscode/settings.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,24 @@
22
{
33
"typescript.tsdk": "node_modules/typescript/lib",
44
"tslint.configFile": "tslint.test.json",
5-
}
5+
6+
// Set the default
7+
"editor.formatOnSave": false,
8+
9+
// Enable per-language
10+
"[html]": {
11+
"editor.formatOnSave": true
12+
},
13+
14+
"[json]": {
15+
"editor.formatOnSave": true
16+
},
17+
18+
"[javascript]": {
19+
"editor.formatOnSave": true
20+
},
21+
22+
"[typescript]": {
23+
"editor.formatOnSave": true
24+
}
25+
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ Types of changes:
4343
- in case of vulnerabilities.
4444
-->
4545

46+
#### Changed
47+
48+
- Improve `prettier` rules and `autoformat` script (see #103).
49+
50+
- Enable `"editor.formatOnSave"` rule for `VS Code` (see #103).
51+
52+
- Update dev dependencies to latest version.
53+
4654
## Signals 1.0.0
4755

4856
### [v1.0.0](https://github.com/RobotlegsJS/SignalsJS/releases/tag/1.0.0) - 2018-11-25

package.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"tslint:src": "tslint --project tsconfig.json",
1313
"tslint:test": "tslint --config tslint.test.json --project tsconfig.test.json",
1414
"tslint": "npm run tslint-check:src && npm run tslint-check:test && npm run tslint:src && npm run tslint:test",
15-
"autoformat": "prettier --config .prettierrc --write {src,test}{/,/**/}{*,*.test}.ts",
15+
"autoformat": "prettier --config .prettierrc --write --list-different \"{src,static,test,example,definitions}{/**/,/}*.{html,css,js,json,ts}\"",
1616
"clean-up": "rimraf .nyc_output && rimraf coverage && rimraf lib && rimraf lib-test && rimraf dist-test",
1717
"compile:src": "tsc -d --importHelpers",
1818
"compile:test": "tsc -p tsconfig.test.json -d --importHelpers",
@@ -73,11 +73,11 @@
7373
"tslib": "^1.9.3"
7474
},
7575
"devDependencies": {
76-
"@types/bluebird": "^3.5.24",
76+
"@types/bluebird": "^3.5.26",
7777
"@types/chai": "^4.1.7",
78-
"@types/mocha": "^5.2.5",
79-
"@types/sinon": "^5.0.7",
80-
"@types/webpack-env": "^1.13.6",
78+
"@types/mocha": "^5.2.6",
79+
"@types/sinon": "^7.0.10",
80+
"@types/webpack-env": "^1.13.9",
8181
"bluebird": "^3.5.3",
8282
"browserify-versionify": "^1.0.6",
8383
"chai": "^4.2.0",
@@ -87,10 +87,10 @@
8787
"imports-loader": "^0.8.0",
8888
"istanbul": "^0.4.5",
8989
"istanbul-instrumenter-loader": "^3.0.1",
90-
"karma": "^3.1.1",
90+
"karma": "^4.0.1",
9191
"karma-chai-sinon": "^0.1.5",
9292
"karma-chrome-launcher": "^2.2.0",
93-
"karma-coverage-istanbul-reporter": "^2.0.4",
93+
"karma-coverage-istanbul-reporter": "^2.0.5",
9494
"karma-es6-shim": "^1.0.0",
9595
"karma-mocha": "^1.3.0",
9696
"karma-mocha-reporter": "^2.2.5",
@@ -99,25 +99,25 @@
9999
"karma-sourcemap-loader": "^0.3.7",
100100
"karma-sourcemap-writer": "^0.1.2",
101101
"karma-webpack": "^3.0.5",
102-
"mocha": "^5.2.0",
103-
"nyc": "^13.1.0",
104-
"prettier": "^1.15.2",
105-
"publish-please": "^5.4.0",
106-
"puppeteer": "^1.10.0",
107-
"reflect-metadata": "^0.1.12",
108-
"remap-istanbul": "^0.12.0",
109-
"rimraf": "^2.6.2",
110-
"sinon": "^7.1.1",
111-
"sinon-chai": "^3.2.0",
112-
"source-map-support": "^0.5.9",
113-
"ts-loader": "^5.3.0",
114-
"ts-node": "^7.0.1",
115-
"tslint": "^5.11.0",
116-
"tslint-config-prettier": "^1.16.0",
117-
"typescript": "^3.1.6",
118-
"uglifyjs-webpack-plugin": "^2.0.1",
119-
"webpack": "^4.26.0",
120-
"webpack-cli": "^3.1.2",
121-
"webpack-dev-server": "^3.1.10"
102+
"mocha": "^6.0.2",
103+
"nyc": "^13.3.0",
104+
"prettier": "^1.16.4",
105+
"publish-please": "^5.4.3",
106+
"puppeteer": "^1.13.0",
107+
"reflect-metadata": "^0.1.13",
108+
"remap-istanbul": "^0.13.0",
109+
"rimraf": "^2.6.3",
110+
"sinon": "^7.2.7",
111+
"sinon-chai": "^3.3.0",
112+
"source-map-support": "^0.5.11",
113+
"ts-loader": "^5.3.3",
114+
"ts-node": "^8.0.3",
115+
"tslint": "^5.14.0",
116+
"tslint-config-prettier": "^1.18.0",
117+
"typescript": "^3.3.3333",
118+
"uglifyjs-webpack-plugin": "^2.1.2",
119+
"webpack": "^4.29.6",
120+
"webpack-cli": "^3.3.0",
121+
"webpack-dev-server": "^3.2.1"
122122
}
123123
}

test/org/osflash/signals/SignalDispatchNoArgsTest.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe("SignalDispatchNoArgsTest", () => {
4242
});
4343

4444
function addOnceInHandler(done: Function): void {
45-
signal.addOnce(async.add(new Function(), 10, done));
45+
signal.addOnce(async.add(() => {}, 10, done));
4646
signal.dispatch();
4747
}
4848
});

test/org/osflash/signals/SlotListTest.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe("SlotListTest", () => {
9393
});
9494

9595
it("NIL_does_not_contain_anonymous_listener", () => {
96-
assert.isFalse(SlotList.NIL.contains(new Function()));
96+
assert.isFalse(SlotList.NIL.contains(() => {}));
9797
});
9898

9999
it("find_in_empty_list_yields_null", () => {
@@ -211,10 +211,10 @@ describe("SlotListTest", () => {
211211
// Issue #56
212212
it("insertWithPriority_adds_4_slots_without_losing_any", () => {
213213
let s: PrioritySignal = new PrioritySignal();
214-
let l1: Function = new Function();
215-
let l2: Function = new Function();
216-
let l3: Function = new Function();
217-
let l4: Function = new Function();
214+
let l1: Function = () => {};
215+
let l2: Function = () => {};
216+
let l3: Function = () => {};
217+
let l4: Function = () => {};
218218
let slot1: ISlot = new Slot(l1, s);
219219
let slot2: ISlot = new Slot(l2, s, false, -1);
220220
let slot3: ISlot = new Slot(l3, s);

0 commit comments

Comments
 (0)