package.json 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. {
  2. "name": "eslint",
  3. "version": "9.13.0",
  4. "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
  5. "description": "An AST-based pattern checker for JavaScript.",
  6. "type": "commonjs",
  7. "bin": {
  8. "eslint": "./bin/eslint.js"
  9. },
  10. "main": "./lib/api.js",
  11. "types": "./lib/types/index.d.ts",
  12. "exports": {
  13. ".": {
  14. "types": "./lib/types/index.d.ts",
  15. "default": "./lib/api.js"
  16. },
  17. "./package.json": "./package.json",
  18. "./use-at-your-own-risk": {
  19. "types": "./lib/types/use-at-your-own-risk.d.ts",
  20. "default": "./lib/unsupported-api.js"
  21. },
  22. "./rules": {
  23. "types": "./lib/types/rules/index.d.ts"
  24. },
  25. "./universal": {
  26. "types": "./lib/types/universal.d.ts",
  27. "default": "./lib/universal.js"
  28. }
  29. },
  30. "typesVersions": {
  31. "*": {
  32. "use-at-your-own-risk": [
  33. "./lib/types/use-at-your-own-risk.d.ts"
  34. ],
  35. "rules": [
  36. "./lib/types/rules/index.d.ts"
  37. ],
  38. "universal": [
  39. "./lib/types/universal.d.ts"
  40. ]
  41. }
  42. },
  43. "scripts": {
  44. "build:docs:update-links": "node tools/fetch-docs-links.js",
  45. "build:site": "node Makefile.js gensite",
  46. "build:webpack": "node Makefile.js webpack",
  47. "build:readme": "node tools/update-readme.js",
  48. "build:rules-index": "node Makefile.js generateRuleIndexPage",
  49. "lint": "trunk check --no-fix --ignore=docs/**/*.js -a --filter=eslint && trunk check --no-fix --ignore=docs/**/*.js",
  50. "lint:docs:js": "trunk check --no-fix --ignore=** --ignore=!docs/**/*.js -a --filter=eslint && trunk check --no-fix --ignore=** --ignore=!docs/**/*.js",
  51. "lint:docs:rule-examples": "node Makefile.js checkRuleExamples",
  52. "lint:unused": "knip",
  53. "lint:fix": "trunk check -y --ignore=docs/**/*.js -a --filter=eslint && trunk check -y --ignore=docs/**/*.js",
  54. "lint:fix:docs:js": "trunk check -y --ignore=** --ignore=!docs/**/*.js -a --flter=eslint && trunk check -y --ignore=** --ignore=!docs/**/*.js",
  55. "lint:types": "attw --pack",
  56. "release:generate:alpha": "node Makefile.js generatePrerelease -- alpha",
  57. "release:generate:beta": "node Makefile.js generatePrerelease -- beta",
  58. "release:generate:latest": "node Makefile.js generateRelease -- latest",
  59. "release:generate:maintenance": "node Makefile.js generateRelease -- maintenance",
  60. "release:generate:rc": "node Makefile.js generatePrerelease -- rc",
  61. "release:publish": "node Makefile.js publishRelease",
  62. "test": "node Makefile.js test",
  63. "test:browser": "node Makefile.js wdio",
  64. "test:cli": "mocha",
  65. "test:fuzz": "node Makefile.js fuzz",
  66. "test:performance": "node Makefile.js perf",
  67. "test:emfile": "node tools/check-emfile-handling.js",
  68. "test:types": "tsc -p tests/lib/types/tsconfig.json"
  69. },
  70. "gitHooks": {
  71. "pre-commit": "lint-staged"
  72. },
  73. "lint-staged": {
  74. "*.js": "trunk check --fix --filter=eslint",
  75. "*.md": "trunk check --fix --filter=markdownlint",
  76. "lib/rules/*.js": [
  77. "node tools/update-eslint-all.js",
  78. "git add packages/js/src/configs/eslint-all.js"
  79. ],
  80. "docs/src/rules/*.md": [
  81. "node tools/check-rule-examples.js",
  82. "node tools/fetch-docs-links.js",
  83. "git add docs/src/_data/further_reading_links.json"
  84. ],
  85. "docs/**/*.svg": "trunk check --fix --filter=svgo"
  86. },
  87. "files": [
  88. "LICENSE",
  89. "README.md",
  90. "bin",
  91. "conf",
  92. "lib",
  93. "messages"
  94. ],
  95. "repository": "eslint/eslint",
  96. "funding": "https://eslint.org/donate",
  97. "homepage": "https://eslint.org",
  98. "bugs": "https://github.com/eslint/eslint/issues/",
  99. "dependencies": {
  100. "@eslint-community/eslint-utils": "^4.2.0",
  101. "@eslint-community/regexpp": "^4.11.0",
  102. "@eslint/config-array": "^0.18.0",
  103. "@eslint/core": "^0.7.0",
  104. "@eslint/eslintrc": "^3.1.0",
  105. "@eslint/js": "9.13.0",
  106. "@eslint/plugin-kit": "^0.2.0",
  107. "@humanfs/node": "^0.16.5",
  108. "@humanwhocodes/module-importer": "^1.0.1",
  109. "@humanwhocodes/retry": "^0.3.1",
  110. "@types/estree": "^1.0.6",
  111. "@types/json-schema": "^7.0.15",
  112. "ajv": "^6.12.4",
  113. "chalk": "^4.0.0",
  114. "cross-spawn": "^7.0.2",
  115. "debug": "^4.3.2",
  116. "escape-string-regexp": "^4.0.0",
  117. "eslint-scope": "^8.1.0",
  118. "eslint-visitor-keys": "^4.1.0",
  119. "espree": "^10.2.0",
  120. "esquery": "^1.5.0",
  121. "esutils": "^2.0.2",
  122. "fast-deep-equal": "^3.1.3",
  123. "file-entry-cache": "^8.0.0",
  124. "find-up": "^5.0.0",
  125. "glob-parent": "^6.0.2",
  126. "ignore": "^5.2.0",
  127. "imurmurhash": "^0.1.4",
  128. "is-glob": "^4.0.0",
  129. "json-stable-stringify-without-jsonify": "^1.0.1",
  130. "lodash.merge": "^4.6.2",
  131. "minimatch": "^3.1.2",
  132. "natural-compare": "^1.4.0",
  133. "optionator": "^0.9.3",
  134. "text-table": "^0.2.0"
  135. },
  136. "devDependencies": {
  137. "@arethetypeswrong/cli": "^0.16.4",
  138. "@babel/core": "^7.4.3",
  139. "@babel/preset-env": "^7.4.3",
  140. "@eslint/json": "^0.5.0",
  141. "@trunkio/launcher": "^1.3.0",
  142. "@types/node": "^20.11.5",
  143. "@typescript-eslint/parser": "^8.4.0",
  144. "@wdio/browser-runner": "^9.0.5",
  145. "@wdio/cli": "^9.0.5",
  146. "@wdio/concise-reporter": "^9.0.4",
  147. "@wdio/mocha-framework": "^9.0.5",
  148. "babel-loader": "^8.0.5",
  149. "c8": "^7.12.0",
  150. "chai": "^4.0.1",
  151. "cheerio": "^0.22.0",
  152. "common-tags": "^1.8.0",
  153. "core-js": "^3.1.3",
  154. "ejs": "^3.0.2",
  155. "eslint": "file:.",
  156. "eslint-config-eslint": "file:packages/eslint-config-eslint",
  157. "eslint-plugin-eslint-plugin": "^6.0.0",
  158. "eslint-plugin-expect-type": "^0.4.0",
  159. "eslint-plugin-yml": "^1.14.0",
  160. "eslint-release": "^3.3.0",
  161. "eslint-rule-composer": "^0.3.0",
  162. "eslump": "^3.0.0",
  163. "esprima": "^4.0.1",
  164. "fast-glob": "^3.2.11",
  165. "fs-teardown": "^0.1.3",
  166. "glob": "^10.0.0",
  167. "globals": "^15.0.0",
  168. "got": "^11.8.3",
  169. "gray-matter": "^4.0.3",
  170. "jiti": "^2.1.0",
  171. "knip": "^5.32.0",
  172. "lint-staged": "^11.0.0",
  173. "load-perf": "^0.2.0",
  174. "markdown-it": "^12.2.0",
  175. "markdown-it-container": "^3.0.0",
  176. "marked": "^4.0.8",
  177. "metascraper": "^5.25.7",
  178. "metascraper-description": "^5.25.7",
  179. "metascraper-image": "^5.29.3",
  180. "metascraper-logo": "^5.25.7",
  181. "metascraper-logo-favicon": "^5.25.7",
  182. "metascraper-title": "^5.25.7",
  183. "mocha": "^10.7.3",
  184. "node-polyfill-webpack-plugin": "^1.0.3",
  185. "npm-license": "^0.3.3",
  186. "pirates": "^4.0.5",
  187. "progress": "^2.0.3",
  188. "proxyquire": "^2.0.1",
  189. "recast": "^0.23.0",
  190. "regenerator-runtime": "^0.14.0",
  191. "rollup-plugin-node-polyfills": "^0.2.1",
  192. "semver": "^7.5.3",
  193. "shelljs": "^0.8.5",
  194. "sinon": "^11.0.0",
  195. "typescript": "^5.3.3",
  196. "vite-plugin-commonjs": "^0.10.0",
  197. "webpack": "^5.23.0",
  198. "webpack-cli": "^4.5.0",
  199. "yorkie": "^2.0.0"
  200. },
  201. "peerDependencies": {
  202. "jiti": "*"
  203. },
  204. "peerDependenciesMeta": {
  205. "jiti": {
  206. "optional": true
  207. }
  208. },
  209. "keywords": [
  210. "ast",
  211. "lint",
  212. "javascript",
  213. "ecmascript",
  214. "espree"
  215. ],
  216. "license": "MIT",
  217. "engines": {
  218. "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
  219. }
  220. }