package.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. {
  2. "name": "stylelint",
  3. "version": "15.4.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. "type": "opencollective",
  21. "url": "https://opencollective.com/stylelint"
  22. },
  23. "license": "MIT",
  24. "author": "stylelint",
  25. "main": "lib/index.js",
  26. "types": "types/stylelint/index.d.ts",
  27. "bin": {
  28. "stylelint": "bin/stylelint.js"
  29. },
  30. "files": [
  31. "bin/**/*.js",
  32. "lib/**/*.js",
  33. "!**/__tests__/**",
  34. "!lib/testUtils/**",
  35. "types/stylelint/index.d.ts"
  36. ],
  37. "scripts": {
  38. "benchmark-rule": "node scripts/benchmark-rule.mjs",
  39. "format": "prettier . --write --cache",
  40. "lint": "npm-run-all --parallel --continue-on-error lint:*",
  41. "lint:formatting": "prettier . --check --cache",
  42. "lint:js": "eslint . --cache --max-warnings=0 --ext .js,.mjs",
  43. "lint:md": "remark . --quiet --frail",
  44. "lint:types": "tsc",
  45. "prepare": "husky install && patch-package",
  46. "release": "np --no-release-draft",
  47. "pretest": "npm run lint",
  48. "test": "jest",
  49. "test-coverage": "jest --coverage",
  50. "version": "changeset version",
  51. "postversion": "git restore package.json",
  52. "watch": "jest --watch",
  53. "changelog-to-github-release": "remark --quiet --use ./scripts/remark-changelog-to-github-release.mjs CHANGELOG.md"
  54. },
  55. "lint-staged": {
  56. "*.{js,mjs}": "eslint --cache --fix",
  57. "*.{js,json,md,mjs,ts,yml}": "prettier --write"
  58. },
  59. "prettier": "@stylelint/prettier-config",
  60. "eslintConfig": {
  61. "extends": [
  62. "stylelint",
  63. "stylelint/jest"
  64. ],
  65. "globals": {
  66. "__dirname": true,
  67. "module": true,
  68. "require": true,
  69. "testRule": true
  70. },
  71. "root": true
  72. },
  73. "remarkConfig": {
  74. "plugins": [
  75. "@stylelint/remark-preset"
  76. ]
  77. },
  78. "jest": {
  79. "clearMocks": true,
  80. "collectCoverage": false,
  81. "collectCoverageFrom": [
  82. "lib/**/*.js",
  83. "!lib/**/{__tests__,testUtils}/**/*.js"
  84. ],
  85. "coverageDirectory": "./.coverage/",
  86. "coverageReporters": [
  87. "lcov",
  88. "text-summary"
  89. ],
  90. "coverageThreshold": {
  91. "global": {
  92. "branches": 75,
  93. "functions": 75,
  94. "lines": 75,
  95. "statements": 75
  96. }
  97. },
  98. "moduleNameMapper": {
  99. "^stylelint$": "<rootDir>/lib/index.js",
  100. "stylelint/lib/utils/getOsEol": "<rootDir>/lib/utils/getOsEol.js"
  101. },
  102. "preset": "jest-preset-stylelint",
  103. "roots": [
  104. "lib",
  105. "system-tests"
  106. ],
  107. "testEnvironment": "node",
  108. "testRegex": ".*\\.test\\.js$|rules/.*/__tests__/.*\\.js$",
  109. "watchPlugins": [
  110. "jest-watch-typeahead/filename",
  111. "jest-watch-typeahead/testname"
  112. ]
  113. },
  114. "dependencies": {
  115. "@csstools/css-parser-algorithms": "^2.1.0",
  116. "@csstools/css-tokenizer": "^2.1.0",
  117. "@csstools/media-query-list-parser": "^2.0.1",
  118. "@csstools/selector-specificity": "^2.2.0",
  119. "balanced-match": "^2.0.0",
  120. "colord": "^2.9.3",
  121. "cosmiconfig": "^8.1.3",
  122. "css-functions-list": "^3.1.0",
  123. "css-tree": "^2.3.1",
  124. "debug": "^4.3.4",
  125. "fast-glob": "^3.2.12",
  126. "fastest-levenshtein": "^1.0.16",
  127. "file-entry-cache": "^6.0.1",
  128. "global-modules": "^2.0.0",
  129. "globby": "^11.1.0",
  130. "globjoin": "^0.1.4",
  131. "html-tags": "^3.2.0",
  132. "ignore": "^5.2.4",
  133. "import-lazy": "^4.0.0",
  134. "imurmurhash": "^0.1.4",
  135. "is-plain-object": "^5.0.0",
  136. "known-css-properties": "^0.27.0",
  137. "mathml-tag-names": "^2.1.3",
  138. "meow": "^9.0.0",
  139. "micromatch": "^4.0.5",
  140. "normalize-path": "^3.0.0",
  141. "picocolors": "^1.0.0",
  142. "postcss": "^8.4.21",
  143. "postcss-media-query-parser": "^0.2.3",
  144. "postcss-resolve-nested-selector": "^0.1.1",
  145. "postcss-safe-parser": "^6.0.0",
  146. "postcss-selector-parser": "^6.0.11",
  147. "postcss-value-parser": "^4.2.0",
  148. "resolve-from": "^5.0.0",
  149. "string-width": "^4.2.3",
  150. "strip-ansi": "^6.0.1",
  151. "style-search": "^0.1.0",
  152. "supports-hyperlinks": "^3.0.0",
  153. "svg-tags": "^1.0.0",
  154. "table": "^6.8.1",
  155. "v8-compile-cache": "^2.3.0",
  156. "write-file-atomic": "^5.0.0"
  157. },
  158. "devDependencies": {
  159. "@changesets/cli": "^2.26.1",
  160. "@changesets/get-github-info": "^0.5.2",
  161. "@stylelint/prettier-config": "^2.0.0",
  162. "@stylelint/remark-preset": "^4.0.0",
  163. "@types/balanced-match": "^1.0.2",
  164. "@types/css-tree": "^2.3.1",
  165. "@types/debug": "^4.1.7",
  166. "@types/file-entry-cache": "^5.0.2",
  167. "@types/global-modules": "^2.0.0",
  168. "@types/globjoin": "^0.1.0",
  169. "@types/imurmurhash": "^0.1.1",
  170. "@types/micromatch": "^4.0.2",
  171. "@types/normalize-path": "^3.0.0",
  172. "@types/postcss-less": "^4.0.2",
  173. "@types/postcss-media-query-parser": "^0.2.0",
  174. "@types/postcss-resolve-nested-selector": "^0.1.0",
  175. "@types/postcss-safe-parser": "^5.0.1",
  176. "@types/style-search": "^0.1.3",
  177. "@types/svg-tags": "^1.0.0",
  178. "@types/write-file-atomic": "^4.0.0",
  179. "benchmark": "^2.1.4",
  180. "common-tags": "^1.8.2",
  181. "deepmerge": "^4.3.1",
  182. "eslint": "^8.36.0",
  183. "eslint-config-stylelint": "^18.0.0",
  184. "eslint-plugin-jest": "^27.2.1",
  185. "husky": "^8.0.3",
  186. "jest": "^29.5.0",
  187. "jest-preset-stylelint": "^6.1.0",
  188. "jest-watch-typeahead": "^2.2.2",
  189. "lint-staged": "^13.2.0",
  190. "node-fetch": "^3.3.1",
  191. "np": "^7.6.4",
  192. "npm-run-all": "^4.1.5",
  193. "patch-package": "^6.5.1",
  194. "postcss-html": "^1.5.0",
  195. "postcss-import": "^15.1.0",
  196. "postcss-less": "^6.0.0",
  197. "postcss-sass": "^0.5.0",
  198. "postcss-scss": "^4.0.6",
  199. "remark-cli": "^11.0.0",
  200. "sugarss": "^4.0.1",
  201. "typescript": "^5.0.2"
  202. },
  203. "engines": {
  204. "node": "^14.13.1 || >=16.0.0"
  205. }
  206. }