UNPKG

ajv-i18n

Version:

Internationalised error messages for Ajv JSON validator

78 lines (77 loc) 2.06 kB
{ "name": "ajv-i18n", "version": "4.2.0", "description": "Internationalised error messages for Ajv JSON validator", "main": "localize/index.js", "types": "localize/index.d.ts", "files": [ "localize/", "LICENSE" ], "scripts": { "build": "npm run build:json-schema && npm run build:jtd", "build:json-schema": "node scripts/compile-locales.js '' index", "build:jtd": "node scripts/compile-locales.js '/jtd' jtd", "eslint": "eslint messages scripts spec/*.js", "prepublish": "npm run build", "test": "npm run prettier:check && npm run eslint && npm run build && npm run test-cov", "test-spec": "mocha spec/*.spec.js -R dot", "test-cov": "nyc npm run test-spec", "prettier:write": "prettier --write \"./**/*.{json,yaml,js,ts}\"", "prettier:check": "prettier --list-different \"./**/*.{json,yaml,js,ts}\"" }, "repository": { "type": "git", "url": "git+https://github.com/epoberezkin/ajv-i18n.git" }, "keywords": [ "ajv", "JSON", "schema", "i18n", "internationalisation" ], "author": "Evgeny Poberezkin", "license": "MIT", "bugs": { "url": "https://github.com/epoberezkin/ajv-i18n/issues" }, "homepage": "https://github.com/epoberezkin/ajv-i18n#readme", "devDependencies": { "@ajv-validator/config": "^0.3.0", "ajv": "^8.0.0", "ajv-formats": "^2.0.0", "ajv-keywords": "^5.0.0", "dot": "^1.0.3", "eslint": "^7.8.1", "eslint-config-prettier": "^8.1.0", "husky": "^7.0.1", "json-schema-test": "^2.0.0", "lint-staged": "^11.1.1", "mocha": "^9.0.3", "nyc": "^15.0.0", "prettier": "^2.2.1" }, "peerDependencies": { "ajv": "^8.0.0-beta.0" }, "nyc": { "exclude": [ "**/spec/**", "node_modules" ], "reporter": [ "lcov", "text-summary" ] }, "prettier": "@ajv-validator/config/prettierrc.json", "husky": { "hooks": { "pre-commit": "lint-staged && npm test" } }, "lint-staged": { "*.{json,yaml,js,ts}": "prettier --write" } }