package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. {
  2. "name": "is-what",
  3. "version": "4.1.16",
  4. "description": "JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.",
  5. "type": "module",
  6. "sideEffects": false,
  7. "types": "./dist/index.d.ts",
  8. "module": "./dist/index.js",
  9. "main": "./dist/index.js",
  10. "exports": {
  11. ".": {
  12. "require": {
  13. "types": "./dist/cjs/index.d.cts",
  14. "default": "./dist/cjs/index.cjs"
  15. },
  16. "import": {
  17. "types": "./dist/index.d.ts",
  18. "default": "./dist/index.js"
  19. }
  20. }
  21. },
  22. "files": [
  23. "dist"
  24. ],
  25. "engines": {
  26. "node": ">=12.13"
  27. },
  28. "scripts": {
  29. "test": "vitest run",
  30. "lint": "tsc --noEmit && eslint ./src --ext .ts",
  31. "build": "rollup -c ./rollup.config.js",
  32. "build:docs": "typedoc",
  33. "release": "npm run lint && del dist && npm run build && np"
  34. },
  35. "repository": {
  36. "type": "git",
  37. "url": "git+https://github.com/mesqueeb/is-what.git"
  38. },
  39. "keywords": [
  40. "javascript",
  41. "typescript",
  42. "typechecker",
  43. "check-type",
  44. "javascript-type",
  45. "primitive-types",
  46. "plain-object",
  47. "plain-objects",
  48. "class-instance",
  49. "class-identifier",
  50. "type-checking",
  51. "type-checker",
  52. "type-check",
  53. "define-type",
  54. "get-type",
  55. "what-type",
  56. "is-object",
  57. "is-plain-obj",
  58. "is-plain-object"
  59. ],
  60. "author": "Luca Ban - Mesqueeb",
  61. "funding": "https://github.com/sponsors/mesqueeb",
  62. "license": "MIT",
  63. "bugs": {
  64. "url": "https://github.com/mesqueeb/is-what/issues"
  65. },
  66. "homepage": "https://github.com/mesqueeb/is-what#readme",
  67. "devDependencies": {
  68. "@typescript-eslint/eslint-plugin": "^5.62.0",
  69. "@typescript-eslint/parser": "^5.62.0",
  70. "del-cli": "^5.1.0",
  71. "eslint-config-prettier": "^8.10.0",
  72. "eslint-plugin-tree-shaking": "^1.10.1",
  73. "eslint": "^8.52.0",
  74. "np": "^8.0.4",
  75. "prettier-plugin-jsdoc": "^0.4.2",
  76. "prettier": "^2.8.8",
  77. "rollup-plugin-dts": "^5.3.1",
  78. "rollup-plugin-esbuild": "^5.0.0",
  79. "rollup": "^3.29.4",
  80. "typedoc": "^0.25.2",
  81. "typescript": "^5.2.2",
  82. "vitest": "^0.34.6"
  83. },
  84. "np": {
  85. "branch": "production",
  86. "publish": false,
  87. "yarn": false
  88. },
  89. "eslintConfig": {
  90. "ignorePatterns": [
  91. "node_modules",
  92. "dist",
  93. "scripts",
  94. "test"
  95. ],
  96. "root": true,
  97. "parser": "@typescript-eslint/parser",
  98. "plugins": [
  99. "@typescript-eslint",
  100. "tree-shaking"
  101. ],
  102. "extends": [
  103. "eslint:recommended",
  104. "plugin:@typescript-eslint/eslint-recommended",
  105. "plugin:@typescript-eslint/recommended",
  106. "prettier"
  107. ],
  108. "rules": {
  109. "@typescript-eslint/no-empty-function": "off",
  110. "@typescript-eslint/no-explicit-any": "off",
  111. "@typescript-eslint/ban-ts-ignore": "off",
  112. "tree-shaking/no-side-effects-in-initialization": "error",
  113. "@typescript-eslint/ban-ts-comment": "off"
  114. }
  115. },
  116. "prettier": {
  117. "printWidth": 100,
  118. "tabWidth": 2,
  119. "singleQuote": true,
  120. "trailingComma": "es5",
  121. "semi": false,
  122. "bracketSpacing": true,
  123. "quoteProps": "consistent",
  124. "plugins": [
  125. "prettier-plugin-jsdoc"
  126. ]
  127. }
  128. }