replygirl/tc

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@replygirl/tc",
  "version": "0.0.0",
  "description": "destructurable, async-friendly `try...catch` wrapper function with support for error side effects and fallback values",
  "keywords": [
    "async",
    "await",
    "awaitable",
    "promise",
    "try",
    "catch",
    "wrapper",
    "function",
    "fallback",
    "error handling",
    "destructure",
    "destructuring",
    "functional",
    "utility",
    "helper"
  ],
  "homepage": "https://tc.replygirl.club",
  "bugs": {
    "url": "https://github.com/replygirl/tc/issues"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/replygirl/tc.git"
  },
  "license": "ISC",
  "author": {
    "name": "replygirl",
    "email": "moon@moon.fyi"
  },
  "main": "dist/index.js",
  "module": "dist/tc.esm.js",
  "types": "dist/index.d.ts",
  "files": [
    "dist/**/*",
    "docs/**/*.md"
  ],
  "scripts": {
    "build": "tsc --emitDeclarationOnly; rollup -c rollup.config.ts",
    "docs:build": "vitepress build docs",
    "docs:dev": "vitepress dev docs --port 3003",
    "docs:serve": "vitepress serve docs --port 3003",
    "lint": "eslint src",
    "lint:fix": "yarn lint --fix",
    "test": "nyc ts-mocha --paths"
  },
  "browserslist": "last 3 years and >0.2% in US, maintained node versions",
  "prettier": {
    "arrowParens": "avoid",
    "bracketSpacing": true,
    "embeddedLanguageFormatting": "off",
    "endOfLine": "lf",
    "insertPragma": false,
    "printWidth": 80,
    "proseWrap": "preserve",
    "quoteProps": "as-needed",
    "requirePragma": false,
    "semi": false,
    "singleQuote": true,
    "tabWidth": 2,
    "trailingComma": "es5",
    "useTabs": false
  },
  "eslintConfig": {
    "plugins": [
      "prettier"
    ],
    "extends": [
      "@antfu",
      "plugin:prettier/recommended"
    ],
    "rules": {
      "complexity": [
        "error",
        {
          "max": 3
        }
      ],
      "import/order": [
        "error",
        {
          "alphabetize": {
            "order": "asc",
            "caseInsensitive": false
          },
          "groups": [
            "builtin",
            "external",
            "internal",
            [
              "parent",
              "sibling",
              "index"
            ],
            "object",
            "unknown"
          ],
          "newlines-between": "always",
          "pathGroups": [
            {
              "pattern": "@/**",
              "group": "internal"
            },
            {
              "pattern": "virtual:*",
              "group": "internal"
            }
          ],
          "pathGroupsExcludedImportTypes": [
            "builtin",
            "object"
          ]
        }
      ],
      "prettier/prettier": "error"
    }
  },
  "nyc": {
    "all": true,
    "exclude": [
      "**/*.d.ts"
    ],
    "extension": [
      ".ts"
    ],
    "include": [
      "src"
    ],
    "reporter": [
      "lcov"
    ]
  },
  "resolutions": {
    "terser": "npm:@swc/core",
    "ts-mocha@9.0.0-alpha1": "patch:ts-mocha@npm:9.0.0-alpha1#.yarn/patches/ts-mocha-npm-9.0.0-alpha1-8ab4bf2e7c"
  },
  "devDependencies": {
    "@antfu/eslint-config": "^0.18.9",
    "@antfu/ni": "^0.14.0",
    "@rollup/plugin-commonjs": "^21.0.2",
    "@rollup/plugin-node-resolve": "^13.1.3",
    "@swc/core": "^1.2.160",
    "@tsconfig/node16": "^1.0.2",
    "@types/eslint": "^8.4.1",
    "@types/eslint-config-prettier": "^6.11.0",
    "@types/eslint-plugin-prettier": "^3.1.0",
    "@types/mocha": "^9.1.0",
    "@types/node": "^16.11.26",
    "@types/prettier": "^2.4.4",
    "@vue/compiler-sfc": "^3.2.31",
    "@yarnpkg/sdks": "^2.6.0",
    "browserslist": "^4.20.2",
    "eslint": "^8.12.0",
    "eslint-config-prettier": "^8.5.0",
    "eslint-import-resolver-node": "^0.3.6",
    "eslint-plugin-eslint-comments": "^3.2.0",
    "eslint-plugin-html": "^6.2.0",
    "eslint-plugin-import": "^2.25.4",
    "eslint-plugin-jsonc": "^2.2.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prettier": "^4.0.0",
    "eslint-plugin-promise": "^6.0.0",
    "eslint-plugin-unicorn": "^41.0.1",
    "eslint-plugin-yml": "^0.14.0",
    "jsonc-eslint-parser": "^2.1.0",
    "mocha": "^9.2.2",
    "nyc": "^15.1.0",
    "prettier": "^2.6.1",
    "rollup": "^2.70.1",
    "rollup-plugin-swc": "^0.2.1",
    "source-map-support": "^0.5.21",
    "ts-mocha": "9.0.2",
    "ts-node": "^10.7.0",
    "type-fest": "^2.12.1",
    "typescript": "^4.6.3",
    "vitepress": "^0.22.3"
  },
  "dependenciesMeta": {
    "mocha": {
      "unplugged": true
    },
    "vitepress": {
      "unplugged": true
    }
  },
  "engines": {
    "node": ">=12.x"
  },
  "packageManager": "yarn@3.2.0"
}