Skip to content

Commit 631c692

Browse files
authoredJan 27, 2017
feat(core): Switch to Promises everywhere. Adopt Node v4 ES6 (#648)
* feat(core): Switch to Promises everywhere. Adopt Node v4 ES6 Big changes: * Uses template strings where appropriate * Config and argument parsing is unified and there is no such thing as formatterOptions anymore. All user-passed options go through mergeConfig. * The node API surface changed (again): `buildSync` is removed, building operations return Promises. * Now using Flow for internal type annotations. More changes: * Remove buildSync command * feat(inference): Partially implement object shorthand support * Refs #649 * Use Flow annotations to enforce types * Keep flow but switch to comment syntax * Clarify types * More flow improvements * Turn server into class * LinkerStack becomes class too * Fix comment description type * Run flow on lint * Many more flow fixes * More intense flow refactoring * Simplify inference steps * Update inference tests, flow errors down to 1 * Continue refining types * Fix more flow issues * Use 'use strict' everywhere * Make 'ast' property configurable * Fix many tests * Fix more tests * Fix more tests * Fix augments * Test Markdown meta support * Improve test coverage * Switch back from for of to for for speed
1 parent 898faa0 commit 631c692

File tree

225 files changed

+4506
-13383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+4506
-13383
lines changed
 

‎.eslintrc

+13-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
{
22
"root": true,
3-
"parser": "espree",
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"sourceType": "script"
6+
},
7+
"plugins": [
8+
"flowtype"
9+
],
410
"rules": {
511
"space-in-parens": 2,
612
"space-before-blocks": 2,
@@ -21,8 +27,8 @@
2127
"no-new": 2,
2228
"key-spacing": 2,
2329
"no-multi-spaces": 2,
24-
"valid-jsdoc": 2,
2530
"brace-style": 2,
31+
"object-shorthand": ["error", "always", { "avoidQuotes": true }],
2632
"no-throw-literal": 2,
2733
"no-self-compare": 2,
2834
"no-void": 2,
@@ -32,13 +38,15 @@
3238
"quotes": [2, "single"],
3339
"indent": [2, 2],
3440
"curly": 2,
41+
"strict": [2, "global"],
3542
"no-shadow": 0,
36-
"no-undef": 2
43+
"no-undef": 2,
44+
"flowtype/define-flow-type": 1,
45+
"flowtype/use-flow-type": 1
3746
},
3847
"extends": "eslint:recommended",
3948
"env": {
4049
"node": true,
41-
"es6": true,
42-
"browser": true
50+
"es6": true
4351
}
4452
}

‎.flowconfig

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[ignore]
2+
.*node_modules/.cache/.*
3+
.*node_modules/conventional-changelog-core/test/fixtures/.*
4+
.*/test/fixture/.*
5+
6+
[include]
7+
8+
[libs]
9+
declarations/
10+
11+
[options]
12+
module.ignore_non_literal_requires=true

0 commit comments

Comments
 (0)
Please sign in to comment.