Skip to content

Commit 61102ee

Browse files
committed
2 parents 6bff2e2 + cb116d8 commit 61102ee

File tree

13 files changed

+5005
-3852
lines changed

13 files changed

+5005
-3852
lines changed

.babelrc

Lines changed: 0 additions & 63 deletions
This file was deleted.

.babelrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = function(api) {
2+
const plugins = [
3+
'@babel/plugin-syntax-dynamic-import',
4+
'@babel/plugin-proposal-class-properties',
5+
'@babel/plugin-proposal-export-default-from',
6+
'@babel/plugin-proposal-export-namespace-from',
7+
'@babel/plugin-proposal-object-rest-spread',
8+
'babel-plugin-flow-react-proptypes',
9+
]
10+
const presets = [
11+
[
12+
'@babel/preset-env',
13+
api.env('es5')
14+
? { forceAllTransforms: true }
15+
: { targets: { node: 'current' } },
16+
],
17+
'@babel/preset-react',
18+
'@babel/preset-flow',
19+
]
20+
21+
if (api.env(['test', 'coverage', 'es5'])) {
22+
plugins.push('@babel/plugin-transform-runtime')
23+
}
24+
if (api.env('coverage')) {
25+
plugins.push('babel-plugin-istanbul')
26+
}
27+
28+
return { plugins, presets }
29+
}

.eslintrc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
{
22
"extends": [
3-
"@jedwards1211/eslint-config-react", "@jedwards1211/eslint-config-flow"
3+
"@jedwards1211/eslint-config-react",
4+
"@jedwards1211/eslint-config-flow",
5+
"eslint-config-prettier"
46
],
57
"parser": "babel-eslint",
8+
"parserOptions": {
9+
"ecmaVersion": 6,
10+
"sourceType": "module"
11+
},
612
"env": {
713
"es6": true
814
}

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<PROJECT_ROOT>/lib/.*
44
<PROJECT_ROOT>/node_modules/.*/fbjs/.*
55
<PROJECT_ROOT>/node_modules/fbjs/.*
6+
<PROJECT_ROOT>/node_modules/.*/config-chain/.*
67

78
[include]
89
./src

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"semi": false,
33
"singleQuote": true,
4-
"trailingComma": "es5",
5-
"parser": "babylon"
4+
"trailingComma": "es5"
65
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ cache:
55
notifications:
66
email: false
77
node_js:
8+
- '10'
89
- '8'
9-
- '7'
1010
- '6'
1111
install:
1212
- yarn install --ignore-engines --check-files --frozen-lockfile

TEMPLATE-LICENSE.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

TEMPLATE-README.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

TEMPLATE-package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

complete.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)