gilbarbara/disable-scroll

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "disable-scroll",
  "version": "0.6.0",
  "description": "Prevent page scroll",
  "author": "Gil Barbara <gilbarbara@gmail.com>",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/gilbarbara/disable-scroll.git"
  },
  "bugs": {
    "url": "https://github.com/gilbarbara/disable-scroll/issues"
  },
  "main": "lib/index.js",
  "module": "esm/index.js",
  "files": [
    "esm",
    "lib",
    "src"
  ],
  "types": "esm",
  "sideEffects": true,
  "license": "MIT",
  "keywords": [
    "scroll"
  ],
  "dependencies": {},
  "devDependencies": {
    "@gilbarbara/tsconfig": "^0.1.0",
    "@size-limit/preset-small-lib": "^4.9.1",
    "@types/jest": "^26.0.16",
    "@types/node": "^14.14.10",
    "@typescript-eslint/eslint-plugin": "^4.9.0",
    "@typescript-eslint/parser": "^4.9.0",
    "del-cli": "^3.0.1",
    "eslint": "^7.14.0",
    "eslint-config-airbnb-base": "^14.2.1",
    "eslint-config-prettier": "^6.15.0",
    "eslint-plugin-babel": "^5.3.1",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-prettier": "^3.1.4",
    "husky": "^4.3.0",
    "jest": "^26.6.3",
    "jest-extended": "^0.11.5",
    "jest-watch-typeahead": "^0.6.1",
    "prettier": "^2.2.1",
    "repo-tools": "^0.2.0",
    "size-limit": "^4.9.1",
    "ts-jest": "^26.4.4",
    "ts-node": "^9.1.0",
    "typescript": "^4.1.2"
  },
  "scripts": {
    "build": "npm run clean && npm run build:cjs && npm run build:esm",
    "build:cjs": "tsc",
    "build:esm": "tsc -m es6 --outDir esm",
    "clean": "del lib/* && del esm/*",
    "watch:cjs": "npm run build:cjs -- -w",
    "watch:esm": "npm run build:esm -- -w",
    "lint": "eslint --ext .ts src test",
    "test": "jest --bail --coverage",
    "test:watch": "jest --watchAll --verbose",
    "validate": "npm run lint && npm test && npm run build && npm run size",
    "size": "size-limit",
    "prepublishOnly": "npm run validate"
  },
  "prettier": {
    "jsxBracketSameLine": false,
    "printWidth": 100,
    "singleQuote": true,
    "trailingComma": "all"
  },
  "size-limit": [
    {
      "path": "./esm/index.js",
      "limit": "1 kB"
    },
    {
      "path": "./lib/index.js",
      "limit": "1 kB"
    }
  ],
  "husky": {
    "hooks": {
      "post-merge": "repo-tools install-packages",
      "pre-commit": "repo-tools check-remote && npm run validate"
    }
  }
}