Skip to content

Commit fd178b7

Browse files
authored
Upgrade Babel (#54)
* [minor] upgrade babel and fix linting * [dist] upgrade dependencies * [dist] update circleci * [dist] update circleci * [dist] update circleci again * [dist] circle ci!!!
1 parent d89fef2 commit fd178b7

File tree

5 files changed

+4091
-2512
lines changed

5 files changed

+4091
-2512
lines changed

.babelrc

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
{
22
"presets": [
3-
"es2015",
4-
"react",
5-
"stage-2"
3+
"@babel/preset-env",
4+
"@babel/preset-react"
5+
],
6+
"plugins": [
7+
"@babel/plugin-syntax-dynamic-import",
8+
"@babel/plugin-syntax-import-meta",
9+
"@babel/plugin-proposal-class-properties",
10+
"@babel/plugin-proposal-json-strings",
11+
[
12+
"@babel/plugin-proposal-decorators",
13+
{
14+
"legacy": true
15+
}
16+
],
17+
"@babel/plugin-proposal-function-sent",
18+
"@babel/plugin-proposal-export-namespace-from",
19+
"@babel/plugin-proposal-numeric-separator",
20+
"@babel/plugin-proposal-throw-expressions"
621
]
722
}

.circleci/config.yml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
11
version: 2.1
2-
orbs:
3-
node: circleci/[email protected]
42
jobs:
5-
build-and-test:
6-
executor:
7-
name: node/default
3+
build:
4+
docker:
5+
- image: circleci/node:10
6+
7+
working_directory: ~/repo
8+
89
steps:
910
- checkout
10-
- node/with-cache:
11-
steps:
12-
- run: npm install
13-
- run: npm test
14-
workflows:
15-
build-and-test:
16-
jobs:
17-
- build-and-test
11+
12+
# Download and cache dependencies
13+
- restore_cache:
14+
keys:
15+
- v1-dependencies-{{ checksum "package.json" }}
16+
# fallback to using the latest cache if no exact match is found
17+
- v1-dependencies-
18+
19+
- run: npm install
20+
21+
- run: npm run test
22+
23+
# Save the cache for later use
24+
- save_cache:
25+
paths:
26+
- node_modules
27+
key: v1-dependencies-{{ checksum "package.json" }}

.eslintrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"root": true,
3+
"extends": ["godaddy-react"],
4+
"rules": {
5+
"template-curly-spacing": "off",
6+
"indent": "off",
7+
"accessor-pairs": "off",
8+
"react/jsx-pascal-case": "off"
9+
}
10+
}

0 commit comments

Comments
 (0)