package.json 5.2 KB

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