package.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. {
  2. "name": "stylelint",
  3. "version": "16.25.0",
  4. "description": "A mighty CSS linter that helps you avoid errors and enforce conventions.",
  5. "keywords": [
  6. "css-in-js",
  7. "css",
  8. "less",
  9. "lint",
  10. "linter",
  11. "markdown",
  12. "sass",
  13. "scss",
  14. "stylelint",
  15. "sugarss"
  16. ],
  17. "homepage": "https://stylelint.io",
  18. "repository": "stylelint/stylelint",
  19. "funding": [
  20. {
  21. "type": "opencollective",
  22. "url": "https://opencollective.com/stylelint"
  23. },
  24. {
  25. "type": "github",
  26. "url": "https://github.com/sponsors/stylelint"
  27. }
  28. ],
  29. "license": "MIT",
  30. "author": "stylelint",
  31. "exports": {
  32. ".": {
  33. "import": {
  34. "types": "./types/stylelint/index.d.mts",
  35. "default": "./lib/index.mjs"
  36. },
  37. "require": {
  38. "types": "./types/stylelint/index.d.ts",
  39. "default": "./lib/index.cjs"
  40. }
  41. },
  42. "./package.json": "./package.json",
  43. "./lib/utils/*": "./lib/utils/*"
  44. },
  45. "main": "lib/index.cjs",
  46. "types": "types/stylelint/index.d.ts",
  47. "bin": {
  48. "stylelint": "bin/stylelint.mjs"
  49. },
  50. "files": [
  51. "bin/**/*.js",
  52. "bin/**/*.cjs",
  53. "bin/**/*.mjs",
  54. "lib/**/*.js",
  55. "lib/**/*.cjs",
  56. "lib/**/*.mjs",
  57. "!**/__tests__/**",
  58. "!lib/testUtils/**",
  59. "!lib/rules/*/README.md",
  60. "types/stylelint/index.d.mts",
  61. "types/stylelint/index.d.ts"
  62. ],
  63. "scripts": {
  64. "benchmark-rule": "node scripts/benchmark-rule.mjs",
  65. "build": "rollup -c",
  66. "build-check": "node scripts/build-check.mjs",
  67. "format": "prettier . --write --cache",
  68. "lint": "npm-run-all --parallel --continue-on-error lint:*",
  69. "lint:formatting": "prettier . --check --cache",
  70. "lint:js": "eslint . --cache --max-warnings=0",
  71. "lint:md": "remark . --quiet --frail",
  72. "lint:types": "tsc",
  73. "prepare": "husky && npm run build",
  74. "postprepare": "patch-package",
  75. "pretest": "npm run lint",
  76. "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
  77. "test-coverage": "npm test --ignore-scripts -- --coverage",
  78. "test-only": "npm test --ignore-scripts",
  79. "watch": "npm test --ignore-scripts -- --watch",
  80. "changeset": "changeset version && node .changeset/rewrite-changelog.mjs CHANGELOG.md"
  81. },
  82. "lint-staged": {
  83. "*.{js,mjs}": "eslint --cache --fix",
  84. "*.{js,json,md,mjs,ts,yml}": "prettier --write"
  85. },
  86. "prettier": "@stylelint/prettier-config",
  87. "remarkConfig": {
  88. "plugins": [
  89. "@stylelint/remark-preset",
  90. "./scripts/remark-plugins/lint-link-to-rule.mjs"
  91. ]
  92. },
  93. "jest": {
  94. "clearMocks": true,
  95. "collectCoverage": false,
  96. "collectCoverageFrom": [
  97. "lib/**/*.{js,mjs}",
  98. "!lib/**/{__tests__,testUtils}/**/*.{js,mjs}"
  99. ],
  100. "coverageDirectory": "./.coverage/",
  101. "coverageProvider": "v8",
  102. "coverageReporters": [
  103. "lcov",
  104. "text-summary"
  105. ],
  106. "coverageThreshold": {
  107. "global": {
  108. "branches": 90,
  109. "functions": 90,
  110. "lines": 90,
  111. "statements": 90
  112. }
  113. },
  114. "preset": "jest-preset-stylelint",
  115. "roots": [
  116. "lib",
  117. "system-tests"
  118. ],
  119. "setupFiles": [
  120. "<rootDir>/jest.setup.mjs"
  121. ],
  122. "setupFilesAfterEnv": [
  123. "<rootDir>/jest.setupAfterEnv.mjs"
  124. ],
  125. "testEnvironment": "node",
  126. "testRegex": ".*\\.test\\.mjs$|rules/.*/__tests__/.*\\.mjs$|system-tests/.*\\.test\\.cjs$",
  127. "watchPlugins": [
  128. "jest-watch-typeahead/filename",
  129. "jest-watch-typeahead/testname"
  130. ]
  131. },
  132. "dependencies": {
  133. "@csstools/css-parser-algorithms": "^3.0.5",
  134. "@csstools/css-tokenizer": "^3.0.4",
  135. "@csstools/media-query-list-parser": "^4.0.3",
  136. "@csstools/selector-specificity": "^5.0.0",
  137. "@dual-bundle/import-meta-resolve": "^4.2.1",
  138. "balanced-match": "^2.0.0",
  139. "colord": "^2.9.3",
  140. "cosmiconfig": "^9.0.0",
  141. "css-functions-list": "^3.2.3",
  142. "css-tree": "^3.1.0",
  143. "debug": "^4.4.3",
  144. "fast-glob": "^3.3.3",
  145. "fastest-levenshtein": "^1.0.16",
  146. "file-entry-cache": "^10.1.4",
  147. "global-modules": "^2.0.0",
  148. "globby": "^11.1.0",
  149. "globjoin": "^0.1.4",
  150. "html-tags": "^3.3.1",
  151. "ignore": "^7.0.5",
  152. "imurmurhash": "^0.1.4",
  153. "is-plain-object": "^5.0.0",
  154. "known-css-properties": "^0.37.0",
  155. "mathml-tag-names": "^2.1.3",
  156. "meow": "^13.2.0",
  157. "micromatch": "^4.0.8",
  158. "normalize-path": "^3.0.0",
  159. "picocolors": "^1.1.1",
  160. "postcss": "^8.5.6",
  161. "postcss-resolve-nested-selector": "^0.1.6",
  162. "postcss-safe-parser": "^7.0.1",
  163. "postcss-selector-parser": "^7.1.0",
  164. "postcss-value-parser": "^4.2.0",
  165. "resolve-from": "^5.0.0",
  166. "string-width": "^4.2.3",
  167. "supports-hyperlinks": "^3.2.0",
  168. "svg-tags": "^1.0.0",
  169. "table": "^6.9.0",
  170. "write-file-atomic": "^5.0.1"
  171. },
  172. "devDependencies": {
  173. "@changesets/cli": "^2.29.7",
  174. "@changesets/get-github-info": "^0.6.0",
  175. "@jest/globals": "^30.1.2",
  176. "@stylelint/prettier-config": "^3.0.0",
  177. "@stylelint/remark-preset": "^5.1.1",
  178. "@types/balanced-match": "^1.0.4",
  179. "@types/css-tree": "^2.3.10",
  180. "@types/debug": "^4.1.12",
  181. "@types/file-entry-cache": "^5.0.4",
  182. "@types/global-modules": "^2.0.2",
  183. "@types/globjoin": "^0.1.2",
  184. "@types/imurmurhash": "^0.1.4",
  185. "@types/micromatch": "^4.0.9",
  186. "@types/normalize-path": "^3.0.2",
  187. "@types/postcss-less": "^4.0.6",
  188. "@types/postcss-resolve-nested-selector": "^0.1.3",
  189. "@types/postcss-safe-parser": "^5.0.4",
  190. "@types/svg-tags": "^1.0.2",
  191. "@types/write-file-atomic": "^4.0.3",
  192. "benchmark": "^2.1.4",
  193. "common-tags": "^1.8.2",
  194. "deepmerge": "^4.3.1",
  195. "eslint": "^9.36.0",
  196. "eslint-config-stylelint": "^25.0.0",
  197. "eslint-plugin-import": "^2.32.0",
  198. "eslint-plugin-jest": "^29.0.1",
  199. "husky": "^9.1.7",
  200. "jest": "^30.1.3",
  201. "jest-preset-stylelint": "^8.0.0",
  202. "jest-watch-typeahead": "^3.0.1",
  203. "lint-staged": "^16.1.6",
  204. "lz-string": "^1.5.0",
  205. "npm-run-all": "^4.1.5",
  206. "patch-package": "^8.0.0",
  207. "postcss-html": "^1.8.0",
  208. "postcss-import": "^16.1.1",
  209. "postcss-less": "^6.0.0",
  210. "postcss-sass": "^0.5.0",
  211. "postcss-scss": "^4.0.9",
  212. "prettier": "^3.6.2",
  213. "remark-cli": "^12.0.1",
  214. "rollup": "^4.52.0",
  215. "sugarss": "^5.0.1",
  216. "typescript": "^5.9.2"
  217. },
  218. "engines": {
  219. "node": ">=18.12.0"
  220. }
  221. }