UNPKG

resource-toolkit

Version:

Async and RESTful resource management tool.

167 lines (166 loc) 4.3 kB
{ "name": "resource-toolkit", "version": "1.3.0", "description": "Async and RESTful resource management tool.", "main": "dist/bundle.js", "engines": { "node": ">=12.0.0" }, "scripts": { "build": "rollup -c", "release": "npm test && npm run build && npm publish", "lint": "eslint . && npm run lint:lockfile", "lint:lockfile": "lockfile-lint --path package-lock.json --type npm --validate-https --allowed-hosts npm yarn", "lint:fix": "eslint . --fix", "format": "prettier --config .prettierrc.js --write '**/*.js'", "test": "jest", "test:watch": "jest --watch", "coverage:view": "open-cli coverage/lcov-report/index.html" }, "author": { "name": "Marcell Guilherme C. da Silva", "url": "https://github.com/mazuh" }, "license": "MIT", "keywords": [ "state", "immutable", "resource", "toolkit", "async", "requests", "redux" ], "homepage": "https://github.com/mazuh/resource-toolkit", "bugs": { "url": "https://github.com/mazuh/resource-toolkit/issues" }, "repository": { "type": "git", "url": "https://github.com/mazuh/resource-toolkit.git" }, "dependencies": {}, "devDependencies": { "@babel/preset-env": "^7.8.7", "@babel/preset-typescript": "^7.8.3", "@commitlint/cli": "^8.3.5", "@commitlint/config-conventional": "^7.1.2", "awesome-typescript-loader": "^5.2.1", "babel-eslint": "^10.0.1", "cz-conventional-changelog": "^1.2.0", "eslint": "^6.0.1", "eslint-config-standard": "^13.0.1", "eslint-plugin-import": "^2.18.0", "eslint-plugin-jest": "^22.7.2", "eslint-plugin-node": "^9.1.0", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-security": "^1.4.0", "eslint-plugin-standard": "^4.0.0", "husky": "^3.0.0", "jest": "^24.8.0", "lint-staged": "^9.2.0", "lockfile-lint": "^2.0.1", "open-cli": "^5.0.0", "prettier": "^1.18.2", "rollup": "^1.29.1", "rollup-plugin-typescript2": "^0.25.3", "source-map-loader": "^0.2.4", "typescript": "^3.7.5" }, "jest": { "testEnvironment": "node", "verbose": true, "notify": true, "collectCoverage": true, "coverageThreshold": { "global": { "branches": 80, "functions": 80, "lines": 80, "statements": 80 } }, "testPathIgnorePatterns": [ "/__tests__/.*/__fixtures__/.*" ], "collectCoverageFrom": [ "./src/index.ts", "src/**/*.{js,ts}" ], "testMatch": [ "**/*.test.js" ] }, "husky": { "hooks": { "commit-msg": "commitlint --env HUSKY_GIT_PARAMS", "pre-commit": "lint-staged", "post-merge": "npm install", "pre-push": "npm run lint && npm run test" } }, "lint-staged": { "**/*.js": [ "npm run format", "git add" ] }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "eslintIgnore": [ "coverage/**", "dist/" ], "eslintConfig": { "env": { "node": true, "es6": true, "jest": true }, "plugins": [ "import", "standard", "node", "security", "jest" ], "extends": [ "standard" ], "rules": { "semi": [ "error", "always" ], "no-process-exit": "warn", "comma-dangle": [ "error", "only-multiline" ], "jest/no-disabled-tests": "error", "jest/no-identical-title": "error", "security/detect-non-literal-fs-filename": "error", "security/detect-unsafe-regex": "error", "security/detect-buffer-noassert": "error", "security/detect-child-process": "error", "security/detect-disable-mustache-escape": "error", "security/detect-eval-with-expression": "error", "security/detect-no-csrf-before-method-override": "error", "security/detect-non-literal-regexp": "error", "security/detect-object-injection": "warn", "security/detect-possible-timing-attacks": "error", "security/detect-pseudoRandomBytes": "error" }, "parserOptions": { "ecmaVersion": 10, "ecmaFeatures": { "impliedStrict": true }, "sourceType": "module", "allowImportExportEverywhere": true } } }