Skip to content

Commit

Permalink
init setup
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjoshford committed May 20, 2020
0 parents commit 7784607
Show file tree
Hide file tree
Showing 16 changed files with 15,835 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
Empty file added .env-example
Empty file.
85 changes: 85 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"parserOptions": {
"ecmaVersion": 10,
"sourceType": "module"
},
"parser": "babel-eslint",
"env": {
"es6": true,
"browser": true,
"jest": true
},
"plugins": [
"babel",
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"no-console": "warn",
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"space-in-parens": [
"error"
],
"space-infix-ops": "error",
"object-curly-spacing": [
"error",
"always"
],
"comma-spacing": "error",
"space-before-function-paren": [
"error",
"never"
],
"eol-last": [
"error",
"always"
],
"keyword-spacing": [
"error",
{
"before": true,
"after": true,
"overrides": {
"do": {
"after": false
},
"for": {
"after": false
},
"if": {
"after": false
},
"switch": {
"after": false
},
"while": {
"after": false
},
"catch": {
"after": false
}
}
}
],
"array-bracket-spacing": "error",
"babel/no-invalid-this": 1,
"babel/semi": 0
}
}
18 changes: 18 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node.js CI

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm ci
- run: npm test
env:
CI: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.env
dist
2 changes: 2 additions & 0 deletions __mocks__/fileMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// eslint-disable-next-line
module.exports = '/path/image';
Loading

0 comments on commit 7784607

Please sign in to comment.