package.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. {
  2. "name": "stylelint",
  3. "version": "14.16.0",
  4. "description": "A mighty, modern CSS linter.",
  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. "jest": "jest",
  41. "lint": "npm-run-all --parallel --continue-on-error lint:*",
  42. "lint:formatting": "prettier . --check --cache",
  43. "lint:js": "eslint . --cache --max-warnings=0 --ext .js,.mjs",
  44. "lint:md": "remark . --quiet --frail",
  45. "lint:types": "tsc",
  46. "prepare": "husky install && patch-package",
  47. "release": "np --no-release-draft",
  48. "pretest": "npm run lint",
  49. "test": "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. ],
  64. "globals": {
  65. "__dirname": true,
  66. "module": true,
  67. "require": true,
  68. "testRule": true
  69. },
  70. "root": true
  71. },
  72. "remarkConfig": {
  73. "plugins": [
  74. "@stylelint/remark-preset"
  75. ]
  76. },
  77. "jest": {
  78. "clearMocks": true,
  79. "collectCoverage": false,
  80. "collectCoverageFrom": [
  81. "lib/**/*.js",
  82. "!lib/**/{__tests__,testUtils}/**/*.js"
  83. ],
  84. "coverageDirectory": "./.coverage/",
  85. "coverageReporters": [
  86. "lcov",
  87. "text-summary"
  88. ],
  89. "coverageThreshold": {
  90. "global": {
  91. "branches": 75,
  92. "functions": 75,
  93. "lines": 75,
  94. "statements": 75
  95. }
  96. },
  97. "moduleNameMapper": {
  98. "^stylelint$": "<rootDir>/lib/index.js",
  99. "stylelint/lib/utils/getOsEol": "<rootDir>/lib/utils/getOsEol.js"
  100. },
  101. "preset": "jest-preset-stylelint",
  102. "roots": [
  103. "lib",
  104. "system-tests"
  105. ],
  106. "testEnvironment": "node",
  107. "testRegex": ".*\\.test\\.js$|rules/.*/__tests__/.*\\.js$",
  108. "watchPlugins": [
  109. "jest-watch-typeahead/filename",
  110. "jest-watch-typeahead/testname"
  111. ]
  112. },
  113. "dependencies": {
  114. "@csstools/selector-specificity": "^2.0.2",
  115. "balanced-match": "^2.0.0",
  116. "colord": "^2.9.3",
  117. "cosmiconfig": "^7.1.0",
  118. "css-functions-list": "^3.1.0",
  119. "debug": "^4.3.4",
  120. "fast-glob": "^3.2.12",
  121. "fastest-levenshtein": "^1.0.16",
  122. "file-entry-cache": "^6.0.1",
  123. "global-modules": "^2.0.0",
  124. "globby": "^11.1.0",
  125. "globjoin": "^0.1.4",
  126. "html-tags": "^3.2.0",
  127. "ignore": "^5.2.1",
  128. "import-lazy": "^4.0.0",
  129. "imurmurhash": "^0.1.4",
  130. "is-plain-object": "^5.0.0",
  131. "known-css-properties": "^0.26.0",
  132. "mathml-tag-names": "^2.1.3",
  133. "meow": "^9.0.0",
  134. "micromatch": "^4.0.5",
  135. "normalize-path": "^3.0.0",
  136. "picocolors": "^1.0.0",
  137. "postcss": "^8.4.19",
  138. "postcss-media-query-parser": "^0.2.3",
  139. "postcss-resolve-nested-selector": "^0.1.1",
  140. "postcss-safe-parser": "^6.0.0",
  141. "postcss-selector-parser": "^6.0.11",
  142. "postcss-value-parser": "^4.2.0",
  143. "resolve-from": "^5.0.0",
  144. "string-width": "^4.2.3",
  145. "strip-ansi": "^6.0.1",
  146. "style-search": "^0.1.0",
  147. "supports-hyperlinks": "^2.3.0",
  148. "svg-tags": "^1.0.0",
  149. "table": "^6.8.1",
  150. "v8-compile-cache": "^2.3.0",
  151. "write-file-atomic": "^4.0.2"
  152. },
  153. "devDependencies": {
  154. "@changesets/cli": "^2.25.2",
  155. "@changesets/get-github-info": "^0.5.1",
  156. "@stylelint/prettier-config": "^2.0.0",
  157. "@stylelint/remark-preset": "^4.0.0",
  158. "@types/balanced-match": "^1.0.2",
  159. "@types/debug": "^4.1.7",
  160. "@types/file-entry-cache": "^5.0.2",
  161. "@types/global-modules": "^2.0.0",
  162. "@types/globjoin": "^0.1.0",
  163. "@types/imurmurhash": "^0.1.1",
  164. "@types/micromatch": "^4.0.2",
  165. "@types/normalize-path": "^3.0.0",
  166. "@types/postcss-less": "^4.0.2",
  167. "@types/postcss-safe-parser": "^5.0.1",
  168. "@types/style-search": "^0.1.3",
  169. "@types/svg-tags": "^1.0.0",
  170. "@types/write-file-atomic": "^4.0.0",
  171. "benchmark": "^2.1.4",
  172. "common-tags": "^1.8.2",
  173. "deepmerge": "^4.2.2",
  174. "eslint": "^8.28.0",
  175. "eslint-config-stylelint": "^17.1.0",
  176. "husky": "^8.0.2",
  177. "jest": "^28.1.3",
  178. "jest-preset-stylelint": "^5.0.4",
  179. "jest-watch-typeahead": "^2.2.0",
  180. "lint-staged": "^13.0.4",
  181. "node-fetch": "^3.3.0",
  182. "np": "^7.6.2",
  183. "npm-run-all": "^4.1.5",
  184. "patch-package": "^6.5.0",
  185. "postcss-html": "^1.5.0",
  186. "postcss-import": "^14.1.0",
  187. "postcss-less": "^6.0.0",
  188. "postcss-sass": "^0.5.0",
  189. "postcss-scss": "^4.0.6",
  190. "remark-cli": "^11.0.0",
  191. "sugarss": "^4.0.1",
  192. "typescript": "^4.9.3"
  193. },
  194. "engines": {
  195. "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
  196. }
  197. }