Skip to content

Commit 84ade91

Browse files
author
Shailendra Gupta
committed
Initial Commit
0 parents  commit 84ade91

16 files changed

+2240
-0
lines changed

.editorconfig

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

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build/
2+
lib/
3+
esm/
4+
dist/

.eslintrc.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
env: {
4+
browser: true,
5+
es6: true,
6+
},
7+
plugins: ['@typescript-eslint'],
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:@typescript-eslint/eslint-recommended', // Uses the recommended rules typescript
11+
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
12+
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
13+
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
14+
],
15+
parserOptions: {
16+
ecmaVersion: 2018,
17+
sourceType: 'module',
18+
},
19+
rules: {
20+
'object-shorthand': ['error', 'always'],
21+
'spaced-comment': ['error', 'always'],
22+
'valid-jsdoc': [
23+
'error',
24+
{
25+
requireReturn: false,
26+
requireReturnDescription: false,
27+
requireParamDescription: true,
28+
prefer: {
29+
return: 'returns',
30+
},
31+
},
32+
],
33+
},
34+
};

.github/CONTRIBUTING.md

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
_Linked issue, attach here._
2+
3+
_Is it a_
4+
5+
- [ ] Bug
6+
- [ ] Feature
7+
8+
## Requirements
9+
10+
- [ ] Read the [contribution guidelines](./.github/CONTRIBUTING.md).
11+
<!-- - [ ] Wrote tests if applicable. -->
12+
- [ ] Updated docs if applicable.
13+
14+
## Rationale
15+
16+
_Why is this PR necessary?_

.gitignore

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
*.pid.lock
13+
14+
# Directory for instrumented libs generated by jscoverage/JSCover
15+
lib-cov
16+
17+
# Coverage directory used by tools like istanbul
18+
coverage
19+
20+
# nyc test coverage
21+
.nyc_output
22+
23+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
24+
.grunt
25+
26+
# Bower dependency directory (https://bower.io/)
27+
bower_components
28+
29+
# node-waf configuration
30+
.lock-wscript
31+
32+
# Compiled Assets
33+
lib/
34+
esm/
35+
dist/
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# Optional npm cache directory
48+
.npm
49+
50+
# Optional eslint cache
51+
.eslintcache
52+
53+
# Optional REPL history
54+
.node_repl_history
55+
56+
# Output of 'npm pack'
57+
*.tgz
58+
59+
# Yarn Integrity file
60+
.yarn-integrity
61+
62+
# dotenv environment variables file
63+
.env
64+
65+
# next.js build output
66+
.next
67+
68+
package-lock.json
69+
.npmrc
70+
dist/
71+
.DS_Store
72+
lib/
73+
!.vscode

.npmignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.github
2+
.vscode
3+
src/
4+
.editorconfig
5+
.eslintrc.js
6+
.eslintignore
7+
.prettierrc
8+
rollup.config.js
9+
tsconfig.json
10+
yarn.lock
11+
.eslintcache

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"arrowParens": "always",
4+
"semi": true,
5+
"bracketSpacing": true,
6+
"trailingComma": "es5",
7+
"printWidth": 100
8+
}

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["esbenp.prettier-vscode"]
3+
}

.vscode/settings.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"eslint.validate": ["javascript", "typescript"],
3+
"editor.formatOnSave": true,
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"[javascript]": {
6+
"editor.formatOnSave": false
7+
},
8+
"[typescript]": {
9+
"editor.formatOnSave": false
10+
},
11+
"editor.codeActionsOnSave": {
12+
"source.fixAll.eslint": true
13+
// "source.organizeImports": true
14+
// ^^ https://github.com/microsoft/TypeScript/issues/36102 though closed, but not fixed
15+
},
16+
17+
"typescript.tsdk": "node_modules/typescript/lib",
18+
19+
"typescript.format.enable": false,
20+
"javascript.format.enable": false,
21+
// "typescript.implementationsCodeLens.enabled": true,
22+
// "typescript.referencesCodeLens.enabled": true,
23+
// "javascript.referencesCodeLens.enabled": true,
24+
"editor.rulers": [100],
25+
"files.associations": {
26+
"tslint*.json": "jsonc"
27+
}
28+
}

0 commit comments

Comments
 (0)