options.json 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "type": "object",
  3. "properties": {
  4. "config": {
  5. "type": "object",
  6. "properties": {
  7. "path": {
  8. "type": "string"
  9. },
  10. "ctx": {
  11. "type": "object"
  12. }
  13. },
  14. "errorMessage": {
  15. "properties": {
  16. "ctx": "should be {Object} (https://github.com/postcss/postcss-loader#context-ctx)",
  17. "path": "should be {String} (https://github.com/postcss/postcss-loader#path)"
  18. }
  19. },
  20. "additionalProperties": false
  21. },
  22. "exec": {
  23. "type": "boolean"
  24. },
  25. "parser": {
  26. "type": [ "string", "object" ]
  27. },
  28. "syntax": {
  29. "type": [ "string", "object" ]
  30. },
  31. "stringifier": {
  32. "type": [ "string", "object" ]
  33. },
  34. "plugins": {
  35. "anyOf": [
  36. { "type": "array" },
  37. { "type": "object" },
  38. { "instanceof": "Function" }
  39. ]
  40. },
  41. "sourceMap": {
  42. "type": [ "string", "boolean" ]
  43. }
  44. },
  45. "errorMessage": {
  46. "properties": {
  47. "exec": "should be {Boolean} (https://github.com/postcss/postcss-loader#exec)",
  48. "config": "should be {Object} (https://github.com/postcss/postcss-loader#config)",
  49. "parser": "should be {String|Object} (https://github.com/postcss/postcss-loader#parser)",
  50. "syntax": "should be {String|Object} (https://github.com/postcss/postcss-loader#syntax)",
  51. "stringifier": "should be {String|Object} (https://github.com/postcss/postcss-loader#stringifier)",
  52. "plugins": "should be {Array|Object|Function} (https://github.com/postcss/postcss-loader#plugins)",
  53. "sourceMap": "should be {String|Boolean} (https://github.com/postcss/postcss-loader#sourcemap)"
  54. }
  55. },
  56. "additionalProperties": true
  57. }