Skip to content

Commit

Permalink
dep: Upgrade packages & switch to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
tohjustin committed Dec 20, 2019
1 parent 4b2cfc5 commit b36339d
Show file tree
Hide file tree
Showing 48 changed files with 11,758 additions and 14,177 deletions.
42 changes: 13 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,26 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
version: 2.1
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:8.11.1

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4

working_directory: ~/repo

docker:
- image: circleci/node:lts
steps:
- checkout

# Download and cache dependencies
- restore_cache:
name: Restore Yarn Package Cache
keys:
- v2.0.0-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
# - v2-dependencies-

- run: npm install

- yarn-packages-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile
- save_cache:
name: Save Yarn Package Cache
key: yarn-packages-{{ checksum "yarn.lock" }}
paths:
- node_modules
key: v2.0.0-dependencies-{{ checksum "package.json" }}

- run:
- ~/.cache/yarn
- run:
name: Run Test Suite
command: npm run test:coverage

- run:
- run:
name: Upload Test Coverage Report
command: ./node_modules/.bin/codecov
30 changes: 20 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
{
"env": {
"node": true,
"es6": true,
"browser": true,
"jest": true
},
"extends": [
"airbnb",
"plugin:react/recommended",
"prettier/react",
"prettier"
"plugin:import/errors",
"plugin:import/warnings",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"import",
"jsx-a11y",
"prettier",
"react"
],
"rules": {
"no-underscore-dangle": 0,
"prettier/prettier": "error",
"react/jsx-filename-extension": 0,
"react/no-typos": 0
"react/jsx-filename-extension": 0
},
"settings": {
"react": {
"version": "detect"
}
}
}
Loading

0 comments on commit b36339d

Please sign in to comment.