UNPKG

@anypoint-web-components/validatable-mixin

Version:

A mixin to implement user input validation in a LitElement component

99 lines (98 loc) 2.85 kB
{ "name": "@anypoint-web-components/validatable-mixin", "description": "A mixin to implement user input validation in a LitElement component", "version": "1.1.3", "license": "Apache-2.0", "main": "index.js", "module": "index.js", "keywords": [ "api-components", "arc-components", "forms", "validation", "web-components" ], "authors": [ "Pawel Psztyc", "The Advanced REST client authors <arc@mulesoft.com>" ], "contributors": [ "Your name can be here!" ], "repository": { "type": "git", "url": "git://github.com/anypoint-web-components/validatable-mixin.git" }, "bugs": { "url": "https://github.com/anypoint-web-components/validatable-mixin/issues", "email": "arc@mulesoft.com" }, "dependencies": { "@anypoint-web-components/validator-mixin": "^1.1.1", "@open-wc/dedupe-mixin": "^1.3.0" }, "devDependencies": { "@advanced-rest-client/arc-demo-helper": "^2.2.0", "@advanced-rest-client/testing-karma-sl": "^1.4.2", "@open-wc/eslint-config": "^3.0.0", "@open-wc/testing": "^2.5.27", "@open-wc/testing-karma": "^4.0.6", "deepmerge": "^4.2.2", "es-dev-server": "^1.57.5", "eslint": "^7.10.0", "eslint-config-prettier": "^6.12.0", "husky": "^4.3.0", "lint-staged": "^10.4.0", "lit-element": "^2.4.0", "lit-html": "^1.3.0", "prettier": "^2.1.2", "typescript": "^4.0.3", "typescript-lit-html-plugin": "^0.9.0" }, "scripts": { "start": "es-dev-server --app-index demo/index.html --node-resolve --open --watch", "lint:eslint": "eslint --ext .js,.html . --ignore-path .gitignore", "format:eslint": "eslint --ext .js,.html . --fix --ignore-path .gitignore", "lint:prettier": "prettier \"**/*.js\" --check --ignore-path .gitignore", "format:prettier": "prettier \"**/*.js\" --write --ignore-path .gitignore", "lint": "npm run lint:eslint && npm run lint:prettier", "format": "npm run format:eslint && npm run format:prettier", "test": "karma start --coverage", "test:watch": "karma start --auto-watch=true --single-run=false", "test:sl": "karma start karma.sl.config.js --compatibility auto --coverage" }, "eslintConfig": { "extends": [ "@open-wc/eslint-config", "eslint-config-prettier" ], "overrides": [ { "files": [ "**/demo/**/*.js", "**/demo/**/*.html" ], "rules": { "no-console": "off", "no-unused-expressions": "off", "class-methods-use-this": "off", "import/no-extraneous-dependencies": "off" } } ] }, "prettier": { "singleQuote": true, "arrowParens": "always" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.js": [ "eslint --fix" ] } }