Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
smohan-dw committed Nov 16, 2021
0 parents commit 27c22d4
Show file tree
Hide file tree
Showing 141 changed files with 21,778 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/node_modules
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/.npmrc

# testing
/coverage
/src/coverage

# production
/build

# tooling setup
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
settings.json

# doc
docs/

# misc
/.idea
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
__mocks__
dist
lib
jest.*
coverage
*.d.ts
11 changes: 11 additions & 0 deletions .eslintrc-jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"rules": {
"semi": ["error", "always"],
"prettier/prettier": ["warn", {
"semi": true
}],
"@typescript-eslint/no-unused-vars": "off",
"license-header/header": "off",
"no-use-before-define": "off"
}
}
117 changes: 117 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
/* eslint-disable license-header/header */
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'airbnb-base',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
'plugin:jsdoc/recommended',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'prettier', 'jsdoc', 'license-header'],
rules: {
'import/no-cycle': 2,
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
// Taken care of by typescript
'import/no-unresolved': 'off',
'prettier/prettier': 'error',
semi: ['error', 'never'],
'lines-between-class-members': [
'error',
'always',
{ exceptAfterSingleLine: true },
],
'@typescript-eslint/explicit-function-return-type': [
'warn',
{
allowExpressions: true,
},
],
'@typescript-eslint/prefer-interface': 'off',
'@typescript-eslint/array-type': [
'error',
{
default: 'array-simple',
},
],
'@typescript-eslint/ban-ts-comment': 'warn',
'jsdoc/require-description': 'warn',
'jsdoc/require-description-complete-sentence': 'warn',
'jsdoc/no-types': 'warn',
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns-type': 'off',
'jsdoc/require-jsdoc': 'off',
'jsdoc/check-examples': [
'warn',
{
exampleCodeRegex:
'^```(?:js|javascript|typescript)\\n([\\s\\S]*)```\\s*$',
configFile: '.eslintrc-jsdoc.json',
},
],
'jsdoc/check-tag-names': [
'warn',
{
definedTags: ['preferred', 'packageDocumentation'],
},
],
'jsdoc/check-alignment': 'off',
'license-header/header': ['error', './license-header.js'],
'import/prefer-default-export': 'off',
'import/no-default-export': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'error',
},
overrides: [
{
files: ['**/*.spec.ts', '**/*.spec.ts'],
env: {
jest: true,
},
rules: {
'@typescript-eslint/no-object-literal-type-assertion': 'off',
'no-underscore-dangle': 'off',
'global-require': 'off',
'jsdoc/check-tag-names': [
'warn',
{
definedTags: ['group', 'packageDocumentation'],
},
],
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
},
},
],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
},
},
},
}
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# npm/yarn
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
.yarn/versions
.pnp.*


# testing
coverage

# production
build
lib

# tooling setup
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
settings.json

# doc
**/docs/api

# misc
/.idea

# doc
/docs/api
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
Empty file added .nvmrc
Empty file.
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
jsonabc.js
jsonabc.d.ts
lib
*.json
jest.*
coverage
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true
}
131 changes: 131 additions & 0 deletions .yarn/plugins/@ojkelly/plugin-build.cjs

Large diffs are not rendered by default.

363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

367 changes: 367 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions .yarn/releases/yarn-3.0.2.cjs

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
enableColors: true

enableInlineBuilds: true

enableProgressBars: true

nodeLinker: node-modules

npmPublishAccess: public

npmPublishRegistry: "https://registry.npmjs.org"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@ojkelly/plugin-build.cjs
spec: "https://yarn.build/latest"

yarnPath: .yarn/releases/yarn-3.0.2.cjs
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:alpine

WORKDIR /app

COPY . ./

RUN yarn install
RUN yarn build
#RUN yarn lint
#RUN yarn test
Loading

0 comments on commit 27c22d4

Please sign in to comment.