Skip to content

Commit 0124344

Browse files
bulk update 2021
1 parent 237822b commit 0124344

27 files changed

+10221
-2609
lines changed

.babelrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": {
5+
"node": "current"
6+
}
7+
}]
8+
],
9+
"plugins": [
10+
"@babel/plugin-proposal-class-properties",
11+
"@babel/plugin-proposal-object-rest-spread"
12+
]
13+
}

.circleci/config.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2.1
2+
3+
orbs:
4+
heroku: circleci/[email protected]
5+
6+
executors:
7+
custom-executor:
8+
docker:
9+
- image: circleci/node:lts
10+
11+
12+
workflows:
13+
version: 2
14+
build-deploy:
15+
jobs:
16+
- build-lint
17+
- deploy:
18+
requires:
19+
- build-lint
20+
filters:
21+
branches:
22+
only: master
23+
24+
jobs:
25+
build-lint:
26+
executor: custom-executor
27+
steps:
28+
- checkout
29+
- run:
30+
name: Install Packages
31+
command: |
32+
npm install
33+
- run:
34+
name: Lint
35+
command: |
36+
npm run lint
37+
deploy:
38+
executor: heroku/default
39+
steps:
40+
- checkout
41+
- heroku/install
42+
- heroku/deploy-via-git:
43+
force: true

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
tab_width = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
insert_final_newline = false

.eslintrc

-13
This file was deleted.

.eslintrc.js

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
const prettierConfig = require('./.prettierrc.js')
2+
3+
module.exports = {
4+
parserOptions: {
5+
sourceType: 'module',
6+
ecmaVersion: 6
7+
},
8+
parser: 'babel-eslint',
9+
env: {
10+
node: true,
11+
es6: true
12+
},
13+
extends: [
14+
'eslint:recommended',
15+
'plugin:import/errors',
16+
'plugin:import/warnings',
17+
'plugin:jest/recommended',
18+
'prettier'
19+
],
20+
plugins: ['prettier', 'jest', 'simple-import-sort'],
21+
rules: {
22+
'prettier/prettier': ['error', prettierConfig],
23+
'simple-import-sort/imports': 'error',
24+
'simple-import-sort/exports': 'error',
25+
'import/no-unresolved': 'error'
26+
}
27+
}

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
# dependencies
2-
/node_modules
2+
node_modules/
3+
4+
dist
35

46
# misc
57
.DS_Store
68
.env
9+
*.env
710
.env.local
811
.env.development.local
912
.env.test.local
1013
.env.production.local
1114

15+
logs
16+
*.log
1217
npm-debug.log*
1318
yarn-debug.log*
1419
yarn-error.log*

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint:fix

.prettierrc.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
singleQuote: true,
3+
tabWidth: 2,
4+
printWidth: 120,
5+
useTabs: false,
6+
trailingComma: 'none',
7+
bracketSpacing: true,
8+
semi: false,
9+
htmlWhitespaceSensitivity: 'ignore'
10+
}

.travis.yml

-15
This file was deleted.

0 commit comments

Comments
 (0)