Skip to content

Commit

Permalink
Merge pull request #12 from founders-programme-2/setup/basic-project-…
Browse files Browse the repository at this point in the history
…setup

Setup/basic project setup
  • Loading branch information
ali-7 authored Apr 15, 2019
2 parents af395a0 + 56ef718 commit 038f705
Show file tree
Hide file tree
Showing 15 changed files with 17,303 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: node_js

node_js:
- 'stable'

cache:
directories:
- node_modules

install:
- npm run client:init

before_script:
- npm run client:build
- sleep 15

script:
- npm test

on:
branch: master

after_success:
- npm run coverage


51 changes: 51 additions & 0 deletions client/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
module.exports = {
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
// babel-eslint parser is used to support experimental features not supported in ESLint itself yet
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"impliedStrict": true, //enable global strict mode (if ecmaVersion is 5 or greater)
}
},
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
// allow .js extensions for JSX.
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"quotes": [
2,
"single",
{
"avoidEscape": true, // allows strings to use single-quotes or double-quotes so long as the string contains a quote that would have to be escaped otherwise
"allowTemplateLiterals": true // allows strings to use backticks
}
],
// configure the prettier plugin
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
}
]
},
"plugins": [
"prettier"
]
};
23 changes: 23 additions & 0 deletions client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Loading

0 comments on commit 038f705

Please sign in to comment.