Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": "ts-node/register",
"extension": ["ts", "tsx"],
"spec": "test/**/*.spec.@(ts|tsx)"
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.19.0
1 change: 1 addition & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extension": [".ts", ".tsx"],
"require": ["ts-node/register"],
"exclude": ["**/*.d.ts"],
"include": ["src/**/*.@(ts|tsx)"],
"reporter": ["html", "text-summary", "lcov"],
Expand Down
19,110 changes: 10,664 additions & 8,446 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"precommit:test": "npm run build && lint-staged && npm run precommit:unittest",
"build": "tsc",
"clean": "rm -rf dist types coverage",
"test:unittest": "tsc -p test && nyc mocha 'test/**/*.@(ts|tsx)'",
"precommit:unittest": "tsc -p test && mocha --reporter progress 'test/**/*.@(ts|tsx)'",
"test:unittest": "nyc mocha 'test/**/*.@(ts|tsx)'",
"precommit:unittest": "mocha --reporter progress 'test/**/*.@(ts|tsx)'",
"lint": "npm run lint:source && npm run lint:tests",
"lint:source": "tslint -c tslint.json -t stylish 'src/**/*.ts'",
"lint:tests": "tslint -c test/tslint.json -t stylish 'test/**/*.ts'",
Expand Down Expand Up @@ -57,27 +57,26 @@
},
"devDependencies": {
"@benbria/semantic-release-config": "^1.0.0",
"@semantic-release/changelog": "^3.0.1",
"@semantic-release/git": "^7.0.5",
"@semantic-release/npm": "^5.0.5",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^12.0.2",
"@types/chai": "^4.1.6",
"@types/mocha": "^5.2.5",
"@types/react": "^16.8.8",
"@types/react-dom": "^16.0.9",
"@types/react": "^16.14.66",
"@types/react-dom": "^16.9.25",
"chai": "^4.1.2",
"coveralls": "^3.0.2",
"husky": "^1.1.2",
"lint-staged": "^8.1.0",
"mocha": "^5.2.0",
"nyc": "^14.1.1",
"prettier": "^1.16.4",
"pretty-quick": "^1.10.0",
"lint-staged": "^16.1.6",
"mocha": "^11.7.2",
"nyc": "^17.1.0",
"prettier": "^3.6.2",
"pretty-quick": "^4.2.2",
"react": "^16.12.0",
"react-dom": "^16.8.5",
"semantic-release": "^15.13.8",
"semantic-release": "^24.2.7",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.3.4000"
},
"dependencies": {}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions test/mocha.opts

This file was deleted.

13 changes: 0 additions & 13 deletions test/tsconfig.json

This file was deleted.

File renamed without changes.
File renamed without changes.
31 changes: 15 additions & 16 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,46 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es5",
"target": "ES2020",
"module": "commonjs",
"lib": ["es2016", "es2017.typedarrays"],
"allowJs": false,
"jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
"jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */,
"declaration": true,
"sourceMap": false,
"outDir": "./dist",
"stripInternal": true,

/* Strict Type-Checking Options */
"strict": true, /* Enable all strict type-checking options. */
"strict": true /* Enable all strict type-checking options. */,
// "strictNullChecks": true, /* Enable strict null checks. */
// "strictFunctionTypes": true, /* Enable strict checking of function types. */
// "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
"noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
"noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
"alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,

/* Additional Checks */
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
"noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
"noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
"noUnusedLocals": true /* Report errors on unused locals. */,
"noUnusedParameters": true /* Report errors on unused parameters. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,

/* Module Resolution Options */
// "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
"typeRoots": [ /* List of folders to include type definitions from. */
"typeRoots": [
/* List of folders to include type definitions from. */
"./node_modules/@types",
"./@types"
],
// "typeRoots": [], /* List of folders to include type definitions from. */
// "types": [], /* Type declaration files to be included in compilation. */
// "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */

/* Source Map Options */
Expand All @@ -52,8 +53,6 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
},
"include": [
"./src/**/*"
],
"include": ["./src/**/*"],
"compileOnSave": true
}
}