Skip to content

Commit dd7b94a

Browse files
committed
build: Use Flow syntax without comments.
We're switching to Flow annotations - not Flow comments. This gives documentation.js the ability to self-document without JSDoc types and improves our compatibility with tools like prettier. Fixes #729. Fixes #709
1 parent 3472aa2 commit dd7b94a

File tree

395 files changed

+7201
-42608
lines changed

Some content is hidden

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

395 files changed

+7201
-42608
lines changed

.babelrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"presets": ["flow"],
3+
"plugins": [
4+
"transform-es2015-modules-commonjs"
5+
],
6+
"env": {
7+
"test": {
8+
"plugins": ["istanbul"]
9+
}
10+
}
11+
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
test/fixture/*
2+
src/default_theme/assets/*

.flowconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[ignore]
22
.*node_modules/.cache/.*
33
.*node_modules/conventional-changelog-core/test/fixtures/.*
4-
.*/test/fixture/.*
4+
.*/__tests__/fixture/.*
5+
./lib/.*
56

67
[include]
78

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/lib
12
coverage
23
.nyc_output
3-
node_modules
4+
/node_modules

test/.eslintrc renamed to __tests__/.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"rules": {
33
"valid-jsdoc": [0],
44
"no-unused-vars": [0]
5+
},
6+
"env": {
7+
"jest": true
58
}
69
}

0 commit comments

Comments
 (0)