umt 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/.markdownlint.json +3 -0
- package/LICENSE +21 -0
- package/build/EuclideanAlgorithm/index.d.ts +2 -0
- package/build/EuclideanAlgorithm/index.js +24 -0
- package/build/ValueSwap/index.d.ts +2 -0
- package/build/ValueSwap/index.js +12 -0
- package/build/getDecimalLength/index.d.ts +2 -0
- package/build/getDecimalLength/index.js +10 -0
- package/build/index.d.ts +10 -0
- package/build/index.js +18 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +27 -0
- package/sider.yml +60 -0
- package/tsconfig.json +49 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Riya Amemiya
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ValueSwap_1 = __importDefault(require("../ValueSwap"));
|
|
7
|
+
const EuclideanAlgorithm = (x, y, ...z) => {
|
|
8
|
+
if (x === 0 || y === 0)
|
|
9
|
+
return 0;
|
|
10
|
+
[x, y] = (0, ValueSwap_1.default)(x, y);
|
|
11
|
+
let r = y % x;
|
|
12
|
+
while (r !== 0) {
|
|
13
|
+
y = x;
|
|
14
|
+
x = r;
|
|
15
|
+
r = y % x;
|
|
16
|
+
}
|
|
17
|
+
if (z.length > 0) {
|
|
18
|
+
for (let i = 0; i < z.length; i++) {
|
|
19
|
+
x = EuclideanAlgorithm(x, z[i]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
return x;
|
|
23
|
+
};
|
|
24
|
+
exports.default = EuclideanAlgorithm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const getDecimalLength = (value) => {
|
|
4
|
+
let x = (value + '').split('.')[1];
|
|
5
|
+
if (typeof x !== 'undefined' && x.length > 0) {
|
|
6
|
+
return x.length;
|
|
7
|
+
}
|
|
8
|
+
return 0;
|
|
9
|
+
};
|
|
10
|
+
exports.default = getDecimalLength;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import ValueSwap from './ValueSwap';
|
|
2
|
+
import EuclideanAlgorithm from './EuclideanAlgorithm';
|
|
3
|
+
import getDecimalLength from './getDecimalLength';
|
|
4
|
+
declare const UMT: {
|
|
5
|
+
ValueSwap: (x: number, y: number) => number[];
|
|
6
|
+
EuclideanAlgorithm: (x: number, y: number, ...z: number[]) => number;
|
|
7
|
+
getDecimalLength: (value: number) => number;
|
|
8
|
+
};
|
|
9
|
+
export { ValueSwap, EuclideanAlgorithm, getDecimalLength };
|
|
10
|
+
export default UMT;
|
package/build/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getDecimalLength = exports.EuclideanAlgorithm = exports.ValueSwap = void 0;
|
|
7
|
+
const ValueSwap_1 = __importDefault(require("./ValueSwap"));
|
|
8
|
+
exports.ValueSwap = ValueSwap_1.default;
|
|
9
|
+
const EuclideanAlgorithm_1 = __importDefault(require("./EuclideanAlgorithm"));
|
|
10
|
+
exports.EuclideanAlgorithm = EuclideanAlgorithm_1.default;
|
|
11
|
+
const getDecimalLength_1 = __importDefault(require("./getDecimalLength"));
|
|
12
|
+
exports.getDecimalLength = getDecimalLength_1.default;
|
|
13
|
+
const UMT = {
|
|
14
|
+
ValueSwap: ValueSwap_1.default,
|
|
15
|
+
EuclideanAlgorithm: EuclideanAlgorithm_1.default,
|
|
16
|
+
getDecimalLength: getDecimalLength_1.default,
|
|
17
|
+
};
|
|
18
|
+
exports.default = UMT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es5.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2016.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2017.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2018.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2019.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2021.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2022.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.esnext.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.dom.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../../.nodebrew/node/v18.0.0/lib/node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/valueswap/index.ts","../src/euclideanalgorithm/index.ts","../src/getdecimallength/index.ts","../src/index.ts"],"fileInfos":[{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"51577d3bb4b454ff83c7f446394583fea8c19ed4c251a07bd20104b334206ecd","60d3e197db25485706c65c679add2ae7724998ded96a0f5883c67d757057d166","4374e14099095f5646ffd26eb24e26c19854db0b0c06e3452fef6789144d4acb","c2083d6ae6567a3c38e05537e9c2274a4f894ca74ca8b9d2635cfad21aaa872d"],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":false,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":false,"jsx":1,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":true,"skipLibCheck":true,"sourceMap":false,"strictNullChecks":true,"strictPropertyInitialization":true,"target":2},"fileIdsList":[[52],[52,53,54]],"referencedMap":[[53,1],[55,2]],"exportedModulesMap":[[53,1],[55,2]],"semanticDiagnosticsPerFile":[11,12,14,13,2,15,16,17,18,19,20,21,22,3,4,26,23,24,25,27,28,29,5,30,31,32,33,6,34,35,36,37,7,42,38,39,40,41,8,46,43,44,45,47,9,48,49,50,1,10,51,53,54,55,52]},"version":"4.6.3"}
|
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "umt",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"types": "build/index.d.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
+
"typedoc": "typedoc ./src/",
|
|
10
|
+
"ts-node": "ts-node --project test/tsconfig.json test/src/index.ts",
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"deploy": "yarn typedoc && gh-pages -d doc"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"gh-pages": "^3.2.3",
|
|
19
|
+
"ts-node": "^9.1.1",
|
|
20
|
+
"typedoc": "^0.22.15",
|
|
21
|
+
"typescript": "^4.1.3"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "riya-amemiya/umt"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/sider.yml
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# linter:
|
|
2
|
+
# # https://help.sider.review/getting-started/custom-configuration
|
|
3
|
+
|
|
4
|
+
# # https://help.sider.review/tools/javascript/eslint
|
|
5
|
+
# eslint:
|
|
6
|
+
# dir: frontend/app
|
|
7
|
+
# config: .my_eslintrc
|
|
8
|
+
# ext: ".js,.jsx,.es6"
|
|
9
|
+
# ignore-path: .my_eslintignore
|
|
10
|
+
# no-ignore: true
|
|
11
|
+
# ignore-pattern: "/src/vendor/*"
|
|
12
|
+
# global: "require,exports:true"
|
|
13
|
+
# quiet: true
|
|
14
|
+
|
|
15
|
+
# # https://help.sider.review/tools/css/stylelint
|
|
16
|
+
# stylelint:
|
|
17
|
+
# npm_install: false
|
|
18
|
+
# config: my_stylelintrc.yaml
|
|
19
|
+
# syntax: sugarss
|
|
20
|
+
# ignore-path: .gitignore
|
|
21
|
+
# ignore-disables: true
|
|
22
|
+
# report-needless-disables: true
|
|
23
|
+
# quiet: true
|
|
24
|
+
# glob: "**/*.{css,scss}"
|
|
25
|
+
|
|
26
|
+
# # https://help.sider.review/tools/others/misspell
|
|
27
|
+
# misspell:
|
|
28
|
+
# exclude:
|
|
29
|
+
# - vendor
|
|
30
|
+
# - "**/*.min.js"
|
|
31
|
+
# - exclude_file.rb
|
|
32
|
+
# targets:
|
|
33
|
+
# - target_directory
|
|
34
|
+
# - another_target_directory/foo.rb
|
|
35
|
+
# - bar.rb
|
|
36
|
+
# locale: UK
|
|
37
|
+
# ignore: center,behavior
|
|
38
|
+
|
|
39
|
+
# # https://help.sider.review/tools/shellscript/shellcheck
|
|
40
|
+
# shellcheck:
|
|
41
|
+
# target: "src/**/*.{sh,bash}"
|
|
42
|
+
# include: "SC2104,SC2105"
|
|
43
|
+
# exclude: "SC1000,SC1118"
|
|
44
|
+
# enable: "all"
|
|
45
|
+
# shell: "bash"
|
|
46
|
+
# severity: "error"
|
|
47
|
+
# norc: true
|
|
48
|
+
|
|
49
|
+
# # https://help.sider.review/getting-started/custom-configuration#ignore
|
|
50
|
+
# ignore:
|
|
51
|
+
# - "*.pdf"
|
|
52
|
+
# - "*.mp4"
|
|
53
|
+
# - "images/**"
|
|
54
|
+
|
|
55
|
+
# # https://help.sider.review/getting-started/custom-configuration#branchesexclude
|
|
56
|
+
# branches:
|
|
57
|
+
# exclude:
|
|
58
|
+
# - master
|
|
59
|
+
# - development
|
|
60
|
+
# - /^release-.*$/
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "es6",
|
|
4
|
+
"lib": [
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.iterable",
|
|
7
|
+
"esnext"
|
|
8
|
+
],
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"esModuleInterop": true,
|
|
12
|
+
"allowSyntheticDefaultImports": true,
|
|
13
|
+
"sourceMap": false,
|
|
14
|
+
"incremental": true,
|
|
15
|
+
"declarationMap": false,
|
|
16
|
+
"forceConsistentCasingInFileNames": true,
|
|
17
|
+
"module": "commonjs",
|
|
18
|
+
"moduleResolution": "node",
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"noEmit": false,
|
|
21
|
+
"declaration": true,
|
|
22
|
+
"outDir": "./build",
|
|
23
|
+
"alwaysStrict": true,
|
|
24
|
+
"strictPropertyInitialization": true,
|
|
25
|
+
"strictNullChecks": true,
|
|
26
|
+
"strictFunctionTypes": true,
|
|
27
|
+
"noFallthroughCasesInSwitch": true,
|
|
28
|
+
"noImplicitAny": true,
|
|
29
|
+
"noImplicitReturns": true,
|
|
30
|
+
"noImplicitThis": true,
|
|
31
|
+
"removeComments": true,
|
|
32
|
+
"experimentalDecorators": true,
|
|
33
|
+
"emitDecoratorMetadata": true,
|
|
34
|
+
"preserveSymlinks": true,
|
|
35
|
+
"jsx": "preserve",
|
|
36
|
+
"isolatedModules": true,
|
|
37
|
+
"typeRoots": [
|
|
38
|
+
"node_modules/@types"
|
|
39
|
+
],
|
|
40
|
+
"importHelpers": false,
|
|
41
|
+
"strictBindCallApply": true,
|
|
42
|
+
"noUnusedLocals": true,
|
|
43
|
+
"noUnusedParameters": true,
|
|
44
|
+
},
|
|
45
|
+
"include": [
|
|
46
|
+
"src",
|
|
47
|
+
"types"
|
|
48
|
+
]
|
|
49
|
+
}
|