Skip to content

Commit

Permalink
Merge d442031 into d000293
Browse files Browse the repository at this point in the history
  • Loading branch information
glennreyes committed Aug 10, 2018
2 parents d000293 + d442031 commit 617ee55
Show file tree
Hide file tree
Showing 60 changed files with 8,015 additions and 10,682 deletions.
21 changes: 8 additions & 13 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
{
"presets": [
[
"env",
{
"targets": {
"browsers": ["last 2 versions", "> 1%"],
"node": true
}
}
],
"stage-2",
"react"
]
"plugins": ["transform-class-properties"],
"presets": [["env", { "modules": false }], "react"],
"env": {
"test": {
"plugins": ["transform-class-properties"],
"presets": ["env"]
}
}
}
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ module.exports = {
browser: true,
jest: true,
},
extends: ['airbnb', 'plugin:flowtype/recommended', 'prettier'],
extends: ['react-app', 'plugin:prettier/recommended', 'prettier/react'],
parser: 'babel-eslint',
plugins: ['flowtype'],
rules: {
'react/default-props-match-prop-types': 'off',
'react/jsx-filename-extension': 'off',
'react/no-unused-prop-types': 'off',
},
};
10 changes: 0 additions & 10 deletions .flowconfig

This file was deleted.

14 changes: 2 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# testing
coverage

# production
build

# misc
node_modules
yarn-error.log
.DS_Store
.env
*.log
8 changes: 0 additions & 8 deletions .lintstagedrc

This file was deleted.

4 changes: 4 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
'*.js': ['eslint --fix', 'git add'],
'*.{json,md}': ['prettier --write', 'git add'],
};
1 change: 0 additions & 1 deletion .pretterignore

This file was deleted.

3 changes: 0 additions & 3 deletions .prettierrc

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
singleQuote: true,
trailingComma: 'all',
};
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: node_js
node_js:
- "node"
cache:
yarn: true
script:
- yarn run lint
- yarn run flow
- yarn run test
- yarn run build
cache: yarn
jobs:
include:
- stage: test & coverage
script:
- yarn test --coverage && cat ./coverage/lcov.info | npx coveralls
- stage: build
script:
- yarn build
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Glenn Reyes
Copyright (c) 2018 Glenn Reyes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 617ee55

Please sign in to comment.