Skip to content

Commit 9304701

Browse files
init
0 parents  commit 9304701

21 files changed

+29477
-0
lines changed

.codeclimate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
exclude_patterns:
2+
- "**/*.spec.ts"

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
insert_final_newline = false
15+
trim_trailing_whitespace = false

.eslintrc.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"ignorePatterns": [
3+
"dist",
4+
"vscode",
5+
"node_modules",
6+
"coverage",
7+
"ormconfig.js",
8+
"jest.config.js",
9+
"jest.setup.js",
10+
"rollup.config.js",
11+
"scripts"
12+
],
13+
"parser": "@typescript-eslint/parser",
14+
"parserOptions": {
15+
"project": "tsconfig.json",
16+
"sourceType": "module"
17+
},
18+
"plugins": [
19+
"@typescript-eslint/eslint-plugin",
20+
"promise",
21+
"rxjs"
22+
],
23+
"extends": [
24+
"plugin:@typescript-eslint/eslint-recommended",
25+
"plugin:@typescript-eslint/recommended",
26+
"plugin:promise/recommended"
27+
],
28+
"env": {
29+
"node": true,
30+
"jest": true
31+
},
32+
"rules": {
33+
"no-irregular-whitespace": 2,
34+
"array-bracket-spacing": [
35+
2,
36+
"never"
37+
],
38+
"space-in-parens": [
39+
2,
40+
"never"
41+
],
42+
"promise/no-nesting": 0,
43+
"semi": [
44+
2,
45+
"never"
46+
],
47+
"@typescript-eslint/indent": [
48+
"error",
49+
2
50+
],
51+
"@typescript-eslint/comma-spacing": [
52+
"error",
53+
{
54+
"before": false,
55+
"after": true
56+
}
57+
],
58+
"@typescript-eslint/quotes": [
59+
"error",
60+
"single"
61+
],
62+
"comma-dangle": 2,
63+
"no-unexpected-multiline": 2,
64+
"@typescript-eslint/interface-name-prefix": 0,
65+
"@typescript-eslint/no-explicit-any": 2,
66+
"@typescript-eslint/no-empty-function": 0,
67+
"@typescript-eslint/no-var-requires": 0,
68+
"@typescript-eslint/explicit-function-return-type": 2,
69+
"@typescript-eslint/no-unused-vars": [
70+
"error",
71+
{
72+
"args": "after-used"
73+
}
74+
],
75+
"no-multiple-empty-lines": [
76+
"error",
77+
{
78+
"max": 1,
79+
"maxEOF": 0
80+
}
81+
],
82+
"eol-last": [
83+
"error",
84+
"always"
85+
],
86+
"@typescript-eslint/member-delimiter-style": [
87+
2,
88+
{
89+
"multiline": {
90+
"delimiter": "none",
91+
"requireLast": true
92+
}
93+
}
94+
],
95+
"rxjs/no-nested-subscribe": 2,
96+
"rxjs/no-index": 2,
97+
"rxjs/no-internal": 2,
98+
"rxjs/no-unsafe-takeuntil": 2,
99+
"rxjs/no-unsafe-first": 2,
100+
"rxjs/no-unsafe-catch": 2
101+
}
102+
}

.gitignore

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
.DS_Store
8+
dist
9+
.env
10+
.idea
11+
documentation
12+
junit.xml
13+
14+
# Runtime data
15+
pids
16+
*.pid
17+
*.seed
18+
*.pid.lock
19+
20+
# Directory for instrumented libs generated by jscoverage/JSCover
21+
lib-cov
22+
23+
# Coverage directory used by tools like istanbul
24+
coverage
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (http://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Typescript v1 declaration files
46+
typings/
47+
48+
# Optional npm cache directory
49+
.npm
50+
51+
# Optional eslint cache
52+
.eslintcache
53+
54+
# Optional REPL history
55+
.node_repl_history
56+
57+
# Output of 'npm pack'
58+
*.tgz
59+
60+
# Yarn Integrity file
61+
.yarn-integrity
62+
63+
# dotenv environment variables file
64+
.env
65+
66+
dist/
67+
68+
.DS_Store
69+
70+
test-report.xml
71+
test-results.xml
72+
73+
ngc
74+
.ngc
75+
.aot
76+
aot
77+
.e2e
78+
79+
# Created by https://www.gitignore.io/api/webstorm
80+
81+
### WebStorm ###
82+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
83+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
84+
85+
# User-specific stuff:
86+
.idea/codeStyleSettings.xml
87+
.idea/**/workspace.xml
88+
.idea/**/tasks.xml
89+
.idea/dictionaries
90+
91+
# Sensitive or high-churn files:
92+
.idea/**/dataSources/
93+
.idea/**/dataSources.ids
94+
.idea/**/dataSources.xml
95+
.idea/**/dataSources.local.xml
96+
.idea/**/sqlDataSources.xml
97+
.idea/**/dynamic.xml
98+
.idea/**/uiDesigner.xml
99+
100+
# Gradle:
101+
.idea/**/gradle.xml
102+
.idea/**/libraries
103+
104+
# CMake
105+
cmake-build-debug/
106+
107+
# Mongo Explorer plugin:
108+
.idea/**/mongoSettings.xml
109+
110+
## File-based project format:
111+
*.iws
112+
113+
## Plugin-specific files:
114+
115+
# IntelliJ
116+
/out/
117+
118+
# mpeltonen/sbt-idea plugin
119+
.idea_modules/
120+
121+
# JIRA plugin
122+
atlassian-ide-plugin.xml
123+
124+
# Cursive Clojure plugin
125+
.idea/replstate.xml
126+
127+
# Crashlytics plugin (for Android Studio and IntelliJ)
128+
com_crashlytics_export_strings.xml
129+
crashlytics.properties
130+
crashlytics-build.properties
131+
fabric.properties
132+
133+
### WebStorm Patch ###
134+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
135+
136+
# *.iml
137+
# modules.xml
138+
# .idea/misc.xml
139+
# *.ipr
140+
141+
# Sonarlint plugin
142+
.idea/sonarlint
143+
.tmp

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15.5.0

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
15.5.0

.vscode/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"editor.tabSize": 2,
3+
"jest.showCoverageOnLoad": true,
4+
"typescript.tsdk": "node_modules/typescript/lib"
5+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) Patrick Michalina 2018
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<h1 align="center" style="border-bottom: none;">📚 rx-observable-map</h1>
2+
<h3 align="center">Better TypeScript Control Flow</h3>
3+
<p align="center">
4+
<a href="https://circleci.com/gh/patrickmichalina/rx-observable-map">
5+
<img alt="circeci" src="https://circleci.com/gh/patrickmichalina/rx-observable-map.svg?style=shield">
6+
</a>
7+
<a href="https://codeclimate.com/github/patrickmichalina/rx-observable-map/test_coverage">
8+
<img src="https://api.codeclimate.com/v1/badges/f40c9fff2927e49c3ea2/test_coverage" />
9+
</a>
10+
<a href="https://codeclimate.com/github/patrickmichalina/rx-observable-map/maintainability">
11+
<img alt="codeclimate" src="https://api.codeclimate.com/v1/badges/f40c9fff2927e49c3ea2/maintainability">
12+
</a>
13+
</p>
14+
<p align="center">
15+
<a href="https://github.com/semantic-release/semantic-release">
16+
<img alt="semantic-release" src="https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg">
17+
</a>
18+
<a href="https://www.npmjs.com/package/rx-observable-map">
19+
<img alt="npm latest version" src="https://img.shields.io/npm/v/rx-observable-map/latest.svg">
20+
</a>
21+
</p>
22+
23+
**rx-observable-map** helps you write safer code by using abstractions over messy control flow and state.
24+
25+
# Installation
26+
You can use this library in the browser, node, or a bundler
27+
28+
## Node or as a module
29+
```bash
30+
npm install rx-observable-map
31+
```

0 commit comments

Comments
 (0)