Last active
October 4, 2018 12:14
-
-
Save Rulsky/6b18bb1045d4d4eaf5bc838e8e6fa6e2 to your computer and use it in GitHub Desktop.
all basics that required for bootstrapping new project with firebase-react-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"parser": "babel-eslint", | |
"extends": "airbnb", | |
"plugins": [ | |
"babel" | |
], | |
"env": { | |
"browser": true, | |
"jest": true, | |
"node": true | |
}, | |
"rules": { | |
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }], | |
"react/prop-types": 0, | |
"semi": [2, "never"], | |
"no-use-before-define": ["error", { "functions": false, "classes": true }], | |
"no-unexpected-multiline": 2 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Created by https://www.gitignore.io/api/node,linux,macos,windows,firebase | |
### Firebase ### | |
.idea | |
**/node_modules/* | |
**/.firebaserc | |
functions/ | |
dist/ | |
### Firebase Patch ### | |
.runtimeconfig.json | |
### Linux ### | |
*~ | |
# temporary files which can be created if a process still has a handle open of a deleted file | |
.fuse_hidden* | |
# KDE directory preferences | |
.directory | |
# Linux trash folder which might appear on any partition or disk | |
.Trash-* | |
# .nfs files are created when an open file is removed but is still being accessed | |
.nfs* | |
### macOS ### | |
# General | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
# Icon must end with two \r | |
Icon | |
# Thumbnails | |
._* | |
# Files that might appear in the root of a volume | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems | |
.Trashes | |
.VolumeIcon.icns | |
.com.apple.timemachine.donotpresent | |
# Directories potentially created on remote AFP share | |
.AppleDB | |
.AppleDesktop | |
Network Trash Folder | |
Temporary Items | |
.apdisk | |
### Node ### | |
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
# Runtime data | |
pids | |
*.pid | |
*.seed | |
*.pid.lock | |
# Directory for instrumented libs generated by jscoverage/JSCover | |
lib-cov | |
# Coverage directory used by tools like istanbul | |
coverage | |
# nyc test coverage | |
.nyc_output | |
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) | |
.grunt | |
# Bower dependency directory (https://bower.io/) | |
bower_components | |
# node-waf configuration | |
.lock-wscript | |
# Compiled binary addons (https://nodejs.org/api/addons.html) | |
build/Release | |
# Dependency directories | |
node_modules/ | |
jspm_packages/ | |
# 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 | |
# parcel-bundler cache (https://parceljs.org/) | |
.cache | |
# next.js build output | |
.next | |
# nuxt.js build output | |
.nuxt | |
# vuepress build output | |
.vuepress/dist | |
# Serverless directories | |
.serverless | |
### Windows ### | |
# Windows thumbnail cache files | |
Thumbs.db | |
ehthumbs.db | |
ehthumbs_vista.db | |
# Dump file | |
*.stackdump | |
# Folder config file | |
[Dd]esktop.ini | |
# Recycle Bin used on file shares | |
$RECYCLE.BIN/ | |
# Windows Installer files | |
*.cab | |
*.msi | |
*.msix | |
*.msm | |
*.msp | |
# Windows shortcuts | |
*.lnk | |
# End of https://www.gitignore.io/api/node,linux,macos,windows,firebase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# devDependencies | |
npx install-peerdeps --dev eslint-config-airbnb && npm i -D flow-bin flow-typed eslint-plugin-flowtype firebase-tools babel-eslint @rulsky/firebase-react-app | |
# dependencies | |
npm i express firebase-admin firebase-functions react react-dom react-hot-loader styled-components | |
# additional tools | |
npm i -D husky enzyme enzyme-adapter-react-16 jest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"husky": { | |
"pre-commit": "npm lint", | |
"pre-push": "npm test" | |
}, | |
"jest": { | |
"setupTestFrameworkScriptFile": "jest-enzyme", | |
"testEnvironment": "enzyme", | |
"testEnvironmentOptions": { | |
"enzymeAdapter": "react16" | |
}, | |
"testPathIgnorePatterns": [ | |
"/node_modules/", | |
"<rootDir>/functions/" | |
], | |
"watchPathIgnorePatterns": [ | |
"<rootDir>/functions/", | |
"<rootDir>/dist/", | |
"<rootDir>/public/" | |
], | |
"transform":{ | |
"\\.js$": "@rulsky/firebase-react-app/jestTransformer.js" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment