Skip to content

Commit 443aefd

Browse files
committed
Initial commit
0 parents  commit 443aefd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7690
-0
lines changed

.babelrc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"presets": [
3+
["@babel/env", {
4+
"targets": {
5+
"node": "8"
6+
},
7+
"loose": true,
8+
"useBuiltIns": false
9+
}],
10+
"@babel/preset-stage-3",
11+
"@babel/typescript"
12+
],
13+
"plugins": [
14+
["@babel/plugin-transform-runtime", {
15+
"helpers": true,
16+
"polyfill": false,
17+
"regenerator": false,
18+
"moduleName": "@babel/runtime"
19+
}]
20+
],
21+
"env": {
22+
"test": {
23+
"plugins": [
24+
"./test/_setup/arrow-function-coverage-fix.js",
25+
"istanbul"
26+
]
27+
}
28+
},
29+
"ignore": [
30+
"src/lib/vendor/**/*.*",
31+
"./test/_setup/arrow-function-coverage-fix.js"
32+
]
33+
}

.codeclimate.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
engines:
2+
tslint:
3+
enabled: true
4+
duplication:
5+
enabled: true
6+
config:
7+
languages:
8+
- javascript
9+
fixme:
10+
enabled: true
11+
ratings:
12+
paths:
13+
- src/**
14+
exclude_paths:
15+
- doc/**/*
16+
- dist/**/*
17+
- test/**/*
18+
- vendor/**/*

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# see editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
7+
# Change these settings to your own preference
8+
indent_style = space
9+
indent_size = 2
10+
11+
# We recommend you to keep these unchanged
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
lib/**/*
2+
src/lib/vendor/**/*
3+
*.ts

.eslintrc.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
// http://eslint.org/docs/user-guide/configuring
2+
3+
module.exports = {
4+
root: true,
5+
parser: 'babel-eslint',
6+
parserOptions: {
7+
sourceType: 'module',
8+
},
9+
env: {
10+
browser: true,
11+
},
12+
extends: ['airbnb-base', 'prettier'],
13+
plugins: ['import', 'prettier'],
14+
settings: {
15+
"import/resolver": {
16+
"node": true,
17+
"typescript": true
18+
},
19+
},
20+
rules: {
21+
'import/extensions': [
22+
'error',
23+
'always',
24+
// hide known extensions that are resolved by webpack
25+
{
26+
js: 'never',
27+
ts: 'never',
28+
},
29+
],
30+
// prettier compatibility
31+
'max-len': 0,
32+
'prettier/prettier': [
33+
'error',
34+
{ singleQuote: true, trailingComma: 'all', printWidth: 100, tabWidth: 2 },
35+
],
36+
// only for use with getter-setters
37+
'no-underscore-dangle': 0,
38+
// to correctly work on windows with some tools that create windows line-endings
39+
// this will be correct by git when committed
40+
'linebreak-style': 0
41+
},
42+
};

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## copy to .npmignore
2+
.DS_Store
3+
.idea
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
node_modules/
8+
.npm
9+
.eslintcache
10+
/coverage/
11+
/.nyc_output/
12+
/tmp/
13+
14+
## only ignore in git
15+
/lib
16+
/index.js
17+
/index.d.ts
18+
test/files/*
19+
!test/files/.gitkeep

.npmignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## copy from .gitignore
2+
.DS_Store
3+
.idea
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
node_modules/
8+
.npm
9+
.eslintcache
10+
/coverage/
11+
/.nyc_output/
12+
/tmp/
13+
14+
# .npmignore
15+
.babelrc
16+
.editorconfig
17+
.eslintignore
18+
.eslintrc.js
19+
.gitignore
20+
.nvmrc
21+
.nycrc
22+
.prettierignore
23+
.prettierrc
24+
.travis.yml
25+
AUTHORS.md
26+
CONTRIBUTING.md
27+
tsconfig.json
28+
tslint.json
29+
/docs
30+
/example
31+
/src
32+
/test

.nvmrc

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

.nycrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"sourceMap": false,
3+
"instrument": false,
4+
"check-coverage": true,
5+
"per-file": true,
6+
"lines": 100,
7+
"statements": 100,
8+
"functions": 100,
9+
"branches": 100,
10+
"include": [
11+
"src/**/*.{js,ts}"
12+
],
13+
"exclude": [
14+
"test/**/*.spec.{js,ts}",
15+
"src/lib/vendor/**/*.*"
16+
],
17+
"reporter": [
18+
"lcov",
19+
"text-summary"
20+
],
21+
"extension": [
22+
".js",
23+
".ts"
24+
],
25+
"cache": true,
26+
"all": true,
27+
"report-dir": "./coverage"
28+
}

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# for potential vendor files in src
2+
lib/**/*
3+
src/lib/vendor/**/*

0 commit comments

Comments
 (0)