UNPKG

ts-cast

Version:
130 lines (129 loc) 3.04 kB
{ "name": "ts-cast", "version": "0.1.3", "description": "Runtime typechecking", "main": "lib/index.js", "module": "esm/index.js", "scripts": { "test": "jest", "lint": "eslint \"./src/**/*.ts\"", "compile:cjs": "tsc --build tsconfig.cjs.json", "compile:esm": "tsc", "clean:lib": "rm -rf ./lib", "clean:esm": "rm -rf ./esm", "clean": "npm run clean:lib; npm run clean:esm", "compile": "npm run clean; npm run compile:cjs; npm run compile:esm" }, "keywords": [ "type", "check", "typescript" ], "author": "Dmitry Scheglov <dmitry.scheglov@gmail.com>", "license": "MIT", "devDependencies": { "@type-challenges/utils": "^0.1.1", "@types/jest": "^29.5.0", "@types/node": "^18.15.5", "@typescript-eslint/eslint-plugin": "^5.56.0", "@typescript-eslint/parser": "^5.56.0", "eslint": "^8.36.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.27.5", "eslint-plugin-jest": "^27.2.1", "jest": "^29.5.0", "ts-jest": "^29.0.5", "typescript": "^5.0.2" }, "eslintConfig": { "extends": [ "airbnb-base" ], "overrides": [ { "files": [ "*.ts" ] } ], "plugins": [ "@typescript-eslint", "jest" ], "parser": "@typescript-eslint/parser", "rules": { "max-len": [ "error", { "code": 100, "ignoreStrings": true, "ignoreRegExpLiterals": true } ], "no-param-reassign": "off", "implicit-arrow-linebreak": "off", "import/no-unresolved": 0, "import/prefer-default-export": 0, "indent": [ 2, 2, { "flatTernaryExpressions": true } ], "no-unused-vars": "off", "no-undef": "error", "no-tabs": "error", "no-nested-ternary": 0, "import/extensions": 0, "arrow-parens": [ "error", "as-needed" ], "operator-linebreak": 0, "no-underscore-dangle": 0, "@typescript-eslint/no-unused-vars": [ "error" ], "jest/no-disabled-tests": "warn", "jest/no-focused-tests": "error", "jest/no-identical-title": "error", "jest/prefer-to-have-length": "warn", "jest/valid-expect": "error" }, "env": { "jest/globals": true }, "ignorePatterns": [ "examples/**/*", "lib/**/*", "esm/**/*" ] }, "jest": { "preset": "ts-jest", "testEnvironment": "node", "collectCoverage": true, "collectCoverageFrom": [ "src/**/*.ts" ], "testPathIgnorePatterns": [ "/lib/", "/esm/", "/examples/", "/node_modules/" ] }, "directories": { "example": "examples", "lib": "lib" }, "repository": { "type": "git", "url": "git+https://github.com/DScheglov/ts-cast.git" }, "bugs": { "url": "https://github.com/DScheglov/ts-cast/issues" }, "homepage": "https://github.com/DScheglov/ts-cast#readme" }