Skip to content

Commit ffe911c

Browse files
committed
feat: initial commit with entire library
0 parents  commit ffe911c

38 files changed

+14403
-0
lines changed

.babelrc

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"env": {
3+
"commonjs": {
4+
"presets": [
5+
[
6+
"@babel/preset-env",
7+
{
8+
"modules": "commonjs",
9+
"forceAllTransforms": true
10+
}
11+
]
12+
],
13+
"plugins": [
14+
["@babel/plugin-transform-modules-commonjs", {
15+
"loose": true
16+
}]
17+
]
18+
},
19+
"es": {
20+
"presets": [
21+
[
22+
"@babel/preset-env",
23+
{
24+
"modules": false,
25+
"forceAllTransforms": true
26+
}
27+
]
28+
]
29+
},
30+
"coverage": {
31+
"presets": [
32+
[
33+
"@babel/preset-env",
34+
{
35+
"modules": "commonjs",
36+
"forceAllTransforms": true
37+
}
38+
]
39+
],
40+
"plugins": [
41+
"istanbul",
42+
["@babel/plugin-transform-modules-commonjs", {
43+
"loose": true
44+
}]
45+
]
46+
}
47+
}
48+
}

.commitlintrc.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
],
5+
"rules": {
6+
"scope-case": [
7+
2,
8+
"always",
9+
[
10+
"camel-case",
11+
"kebab-case",
12+
"upper-case"
13+
]
14+
],
15+
"subject-case": [
16+
0,
17+
"always"
18+
]
19+
}
20+
}

.editorconfig

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# http://editorconfig.org
2+
3+
# A special property that should be specified at the top of the file outside of
4+
# any sections. Set to true to stop .editor config file search on current file
5+
root = true
6+
7+
[*]
8+
# Indentation style
9+
# Possible values - tab, space
10+
indent_style = space
11+
12+
# Indentation size in single-spaced characters
13+
# Possible values - an integer, tab
14+
indent_size = 2
15+
16+
# Line ending file format
17+
# Possible values - lf, crlf, cr
18+
end_of_line = lf
19+
20+
# File character encoding
21+
# Possible values - latin1, utf-8, utf-16be, utf-16le
22+
charset = utf-8
23+
24+
# Denotes whether to trim whitespace at the end of lines
25+
# Possible values - true, false
26+
trim_trailing_whitespace = true
27+
28+
# Denotes whether file should end with a newline
29+
# Possible values - true, false
30+
insert_final_newline = true
31+
32+
[*.ts]
33+
indent_size = 4

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.tmp
2+
/.nyc_output
3+
/coverage
4+
/dist
5+
/es
6+
/lib
7+
/tonicExample.js
8+
/tmp-test-bundle.js

.eslintrc

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"parserOptions": {
7+
"sourceType": "script",
8+
"ecmaFeatures": {
9+
"impliedStrict": false
10+
}
11+
},
12+
"extends": [
13+
"eslint-config-airbnb-base",
14+
"plugin:ramda/recommended",
15+
"prettier"
16+
],
17+
"plugins": ["eslint-plugin-ramda", "eslint-plugin-prettier", "prettier"],
18+
"rules": {
19+
"strict": [2, "global"],
20+
"space-before-function-paren": "off",
21+
"no-underscore-dangle": 0,
22+
"no-confusing-arrow": "off",
23+
"object-curly-newline": "off",
24+
"import/order": ["error", {
25+
"groups": [
26+
["builtin", "external", "internal"],
27+
["parent", "sibling", "index"]
28+
],
29+
"newlines-between": "always"
30+
}],
31+
"quotes": ["error", "single", { "avoidEscape": true }],
32+
"ramda/always-simplification": ["error"],
33+
"ramda/compose-simplification": ["error"],
34+
"ramda/eq-by-simplification": ["error"],
35+
"ramda/prefer-complement": ["error"],
36+
"ramda/prefer-both-either": ["error"],
37+
"prettier/prettier": "error"
38+
}
39+
}

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
core.autocrlf=false

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/.idea
2+
/.tmp
3+
/.nyc_output
4+
/node_modules
5+
/npm-debug.log
6+
/coverage
7+
/tmp-test-bundle.js
8+
/test-results.xml
9+
/es
10+
/lib
11+
/dist
12+
/json-api-merge-*.*.*.tgz

.huskyrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged",
4+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
5+
}
6+
}

.lintstagedrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*.js": "eslint",
3+
"*.ts": "tslint --project types/tsconfig.json -c types/tslint.json"
4+
}

.npmignore

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/.idea
2+
/.tmp
3+
/.nyc_output
4+
/.github
5+
/coverage
6+
/node_modules
7+
/npm-debug.log
8+
/test
9+
/.huskyrc
10+
/.lintstagedrc
11+
/.babelrc
12+
/.editorconfig
13+
/.eslintignore
14+
/.gitattributes
15+
/.gitignore
16+
/.npmignore
17+
/.npmrc
18+
/.nycrc
19+
/.codeclimate.yml
20+
/.commitlintrc.json
21+
/.prettierignore
22+
/.prettierrc
23+
/tmp-test-bundle.js
24+
/testem.json
25+
/webpack.config.js
26+
/webpack.config-test.web.js
27+
/webpack.config-test.node.js
28+
/test-results.xml
29+
/types/tslint.json
30+
/types/tsconfig.json
31+
/types/test
32+
/CODE_OF_CONDUCT.md
33+
/CONTRIBUTING.md
34+
/GOVERNANCE.md
35+
/json-api-merge-*.*.*.tgz
36+
.eslintrc
37+

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-prefix="="
2+
save=false

.nycrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"reporter": [
3+
"lcov",
4+
"text-summary"
5+
],
6+
"include": [
7+
"src/**/*.js"
8+
],
9+
"report-dir": "./coverage",
10+
"check-coverage": true,
11+
"all": true,
12+
"cache": false,
13+
"sourceMap": false,
14+
"instrument": false
15+
}

.prettierignore

Whitespace-only changes.

.prettierrc

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"printWidth": 80,
3+
"tabWidth": 2,
4+
"semi": true,
5+
"singleQuote": true,
6+
"trailingComma": "es5",
7+
"overrides": [
8+
{
9+
"files": ".prettierrc",
10+
"options": { "parser": "json" }
11+
},
12+
{
13+
"files": ".babelrc",
14+
"options": { "parser": "json" }
15+
},
16+
{
17+
"files": ".eslintrc",
18+
"options": { "parser": "json" }
19+
},
20+
{
21+
"files": ".nycrc",
22+
"options": { "parser": "json" }
23+
}
24+
]
25+
}

CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)