package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. {
  2. "name": "stylis",
  3. "version": "4.3.6",
  4. "license": "MIT",
  5. "description": "A Light–weight CSS Preprocessor",
  6. "homepage": "https://github.com/thysultan/stylis.js",
  7. "author": "Sultan Tarimo <sultantarimo@me.com>",
  8. "repository": "https://github.com/thysultan/stylis.js",
  9. "bugs": "https://github.com/thysultan/stylis.js/issues",
  10. "sideEffects": false,
  11. "type": "module",
  12. "main": "dist/umd/stylis.js",
  13. "module": "dist/stylis.mjs",
  14. "react-native": "./index.js",
  15. "exports": {
  16. ".": {
  17. "import": "./index.js",
  18. "require": "./dist/umd/stylis.js"
  19. },
  20. "./package.json": "./package.json"
  21. },
  22. "files": [
  23. "index.js",
  24. "dist/",
  25. "src/"
  26. ],
  27. "scripts": {
  28. "lint": "eslint ./",
  29. "pretest": "npm run lint && npm run build",
  30. "test": "nyc npm run spec",
  31. "spec": "mocha --harmony --require esm script/setup.js --recursive test",
  32. "prebuild": "rimraf dist",
  33. "build": "rollup --config script/build.js --configSrc ./",
  34. "start": "npm run build -- --watch",
  35. "prepare": "npm run build",
  36. "postversion": "git push --follow-tags && npm publish",
  37. "release-major": "npm version major -m '%s'",
  38. "release-minor": "npm version minor -m '%s'",
  39. "release-patch": "npm version patch -m '%s'"
  40. },
  41. "devDependencies": {
  42. "chai": "4.3.4",
  43. "eslint": "6.8.0",
  44. "esm": "3.2.25",
  45. "mocha": "9.1.1",
  46. "nyc": "15.1.0",
  47. "rimraf": "3.0.2",
  48. "rollup": "1.28.0",
  49. "rollup-plugin-size": "0.2.1",
  50. "rollup-plugin-terser": "5.1.3",
  51. "stylis": "./"
  52. },
  53. "nyc": {
  54. "temp-dir": "./coverage/.nyc_output",
  55. "exclude": [
  56. "**/dist/",
  57. "**/test/",
  58. "**/script/"
  59. ],
  60. "reporter": [
  61. "lcov",
  62. "text"
  63. ]
  64. },
  65. "esm": {
  66. "cjs": true,
  67. "cache": false
  68. },
  69. "eslintIgnore": [
  70. "script/",
  71. "test/",
  72. "dist/",
  73. "docs/"
  74. ],
  75. "eslintConfig": {
  76. "env": {
  77. "commonjs": true,
  78. "browser": true,
  79. "node": true,
  80. "es6": true
  81. },
  82. "extends": "eslint:recommended",
  83. "parserOptions": {
  84. "ecmaVersion": 7,
  85. "sourceType": "module",
  86. "ecmaFeatures": {
  87. "impliedStrict": true
  88. }
  89. },
  90. "rules": {
  91. "indent": [
  92. "error",
  93. "tab",
  94. {
  95. "SwitchCase": 1
  96. }
  97. ],
  98. "linebreak-style": [
  99. "error",
  100. "unix"
  101. ],
  102. "quotes": [
  103. "error",
  104. "single"
  105. ],
  106. "semi": [
  107. "error",
  108. "never"
  109. ],
  110. "no-cond-assign": [
  111. "off"
  112. ],
  113. "no-redeclare": [
  114. "off"
  115. ],
  116. "no-fallthrough": [
  117. "off"
  118. ],
  119. "no-console": [
  120. "off"
  121. ],
  122. "no-unsafe-finally": [
  123. "off"
  124. ],
  125. "no-shadow-restricted-names": [
  126. "error"
  127. ],
  128. "no-whitespace-before-property": [
  129. "error"
  130. ],
  131. "no-else-return": [
  132. "error"
  133. ],
  134. "eol-last": [
  135. "error"
  136. ],
  137. "func-call-spacing": [
  138. "error",
  139. "never"
  140. ],
  141. "brace-style": [
  142. "error",
  143. "1tbs",
  144. {
  145. "allowSingleLine": true
  146. }
  147. ],
  148. "require-jsdoc": [
  149. "error",
  150. {
  151. "require": {
  152. "FunctionDeclaration": true
  153. }
  154. }
  155. ],
  156. "no-trailing-spaces": [
  157. "error",
  158. {
  159. "skipBlankLines": true
  160. }
  161. ],
  162. "no-constant-condition": [
  163. "off"
  164. ]
  165. }
  166. }
  167. }