Skip to content

Commit

Permalink
Remove auto-generated boilerplate config across all stack | Change fi…
Browse files Browse the repository at this point in the history
…le structure | Add custom webpack, babel, eslint, jest, enzyme, pm2
  • Loading branch information
Jiahao01121 committed May 26, 2019
1 parent 74bbcdc commit 92eb563
Show file tree
Hide file tree
Showing 103 changed files with 10,333 additions and 19,959 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-react",
["@babel/preset-env", { "targets": { "browsers": ["last 2 versions"] } }]
],
"plugins": [
"@babel/plugin-proposal-class-properties"
]
}
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**/*.json
**/*.html
**/*.md
**/*.scss
dist/
coverage/
21 changes: 21 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": "airbnb",
"env": {
"browser": true,
"jest": true,
"node": true
},
"parser": "babel-eslint",
"plugins": [
"react-hooks"
],
"rules": {
"func-style": ["error", "expression"],
"import/prefer-default-export": "off",
"no-plusplus": "off",
"object-curly-newline": "off",
"no-console": ["error", { allow: ["warn", "error", "info"] }],
"react/no-array-index-key": "off",
"react-hooks/rules-of-hooks": "error"
}
}
65 changes: 47 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,52 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dependencies
/node_modules
/server/dataServer/node_modules
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# testing
/coverage
# Coverage directory used by tools like istanbul
coverage

# production
server/dataServer/build
/build
# Bower dependency directory (https://bower.io/)
bower_components

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
# node-waf configuration
.lock-wscript

npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
dist/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# Additional
.DS_Store
config.js
dump.rdb
*.dump
Loading

0 comments on commit 92eb563

Please sign in to comment.