cv-contracts 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +61 -0
- package/.prettierrc +4 -0
- package/README.md +1 -0
- package/dist/SubscribedUserSettings.d.ts +5 -0
- package/dist/SubscribedUserSettings.js +3 -0
- package/dist/SubscribedUserSettings.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/package.json +30 -0
- package/src/SubscribedUserSettings.ts +5 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +14 -0
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: [
|
|
9
|
+
'@typescript-eslint/eslint-plugin',
|
|
10
|
+
'simple-import-sort',
|
|
11
|
+
'unused-imports',
|
|
12
|
+
],
|
|
13
|
+
extends: [
|
|
14
|
+
'plugin:@typescript-eslint/recommended',
|
|
15
|
+
'plugin:prettier/recommended',
|
|
16
|
+
],
|
|
17
|
+
root: true,
|
|
18
|
+
env: {
|
|
19
|
+
node: true,
|
|
20
|
+
jest: true,
|
|
21
|
+
},
|
|
22
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
23
|
+
rules: {
|
|
24
|
+
'max-len': ["error", { "code": 140 }],
|
|
25
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
26
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
27
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
28
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
29
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
30
|
+
'unused-imports/no-unused-imports': 'error',
|
|
31
|
+
'unused-imports/no-unused-vars': [
|
|
32
|
+
'warn',
|
|
33
|
+
{
|
|
34
|
+
vars: 'all',
|
|
35
|
+
varsIgnorePattern: '^_',
|
|
36
|
+
args: 'after-used',
|
|
37
|
+
argsIgnorePattern: '^_',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
'simple-import-sort/imports': [
|
|
41
|
+
'error',
|
|
42
|
+
{
|
|
43
|
+
groups: [
|
|
44
|
+
// Node.js builtins. You could also generate this regex if you use a `.js` config.
|
|
45
|
+
// For example: `^(${require('module').builtinModules.join('|')})(/|$)`
|
|
46
|
+
[
|
|
47
|
+
'^(assert|buffer|child_process|cluster|console|constants|crypto|dgram|dns|domain|events|fs|http|https|module|net|os|path|punycode|querystring|readline|repl|stream|string_decoder|sys|timers|tls|tty|url|util|vm|zlib|v8|process|async_hooks|http2|perf_hooks)(/.*|$)',
|
|
48
|
+
],
|
|
49
|
+
// Packages. `react` related packages come first.
|
|
50
|
+
['^'],
|
|
51
|
+
['^@\\w'],
|
|
52
|
+
|
|
53
|
+
['^src(/.*|$)'],
|
|
54
|
+
['^\\.'],
|
|
55
|
+
// Parent imports. Put `..` last.
|
|
56
|
+
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
};
|
package/.prettierrc
ADDED
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# cv-contracts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubscribedUserSettings.js","sourceRoot":"","sources":["../src/SubscribedUserSettings.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SubscribedUserSettings';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SubscribedUserSettings"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "cv-contracts",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Carbon Voice Contracts",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"clean": "rimraf ./dist",
|
|
10
|
+
"lint": "eslint --fix -c .eslintrc.js src/ --ext .ts",
|
|
11
|
+
"build": "npm run clean && npm run lint && npx tsc",
|
|
12
|
+
"prepare": "npm run build"
|
|
13
|
+
},
|
|
14
|
+
"keywords": ["cv-contracts", "carbon-voice-contracts", "contracts", "carbon-voice"],
|
|
15
|
+
"author": "Carbon Voice",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"private": false,
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@types/node": "^14",
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
21
|
+
"eslint": "^8.57.0",
|
|
22
|
+
"eslint-config-prettier": "^9.1.0",
|
|
23
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
24
|
+
"eslint-plugin-simple-import-sort": "^12.1.0",
|
|
25
|
+
"eslint-plugin-unused-imports": "^3.2.0",
|
|
26
|
+
"prettier": "^3.2.5",
|
|
27
|
+
"rimraf": "^5.0.7",
|
|
28
|
+
"typescript": "^4.9.4"
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SubscribedUserSettings';
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es2019",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"experimentalDecorators": true,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"lib": ["esnext"],
|
|
10
|
+
"outDir": "./dist",
|
|
11
|
+
"rootDir": "./src",
|
|
12
|
+
"strict": true,
|
|
13
|
+
}
|
|
14
|
+
}
|