1 | {
|
2 | "name": "chrono-node",
|
3 | "description": "A natural language date parser in Javascript",
|
4 | "homepage": "http://github.com/wanasit/chrono",
|
5 | "repository": {
|
6 | "type": "git",
|
7 | "url": "https://github.com/wanasit/chrono.git"
|
8 | },
|
9 | "prettier": {
|
10 | "quoteProps": "preserve"
|
11 | },
|
12 | "jest": {
|
13 | "verbose": true,
|
14 | "testURL": "http://localhost/",
|
15 | "preset": "ts-jest"
|
16 | },
|
17 | "license": "MIT",
|
18 | "version": "2.3.2",
|
19 | "directories": {
|
20 | "source": "./src",
|
21 | "test": "./test"
|
22 | },
|
23 | "main": "dist/index.js",
|
24 | "types": "dist/index.d.ts",
|
25 | "devDependencies": {
|
26 | "@types/jest": "^26.0.4",
|
27 | "@typescript-eslint/eslint-plugin": "^4.7.0",
|
28 | "@typescript-eslint/parser": "^4.7.0",
|
29 | "benny": "^3.6.15",
|
30 | "eslint": "^7.13.0",
|
31 | "eslint-config-prettier": "^6.15.0",
|
32 | "husky": "^4.2.5",
|
33 | "jest": "^26.1.0",
|
34 | "prettier": "^2.0.5",
|
35 | "ts-jest": "^26.1.1",
|
36 | "typedoc": "^0.20.36",
|
37 | "typescript": "~4.2.4"
|
38 | },
|
39 | "husky": {
|
40 | "hooks": {
|
41 | "pre-commit": "npm run prettier && npm run test:silent"
|
42 | }
|
43 | },
|
44 | "scripts": {
|
45 | "build": "tsc -p tsconfig.build.json",
|
46 | "benchmark": "npm run build && node ./benchmark/benchmark.js",
|
47 | "document": "typedoc",
|
48 | "prepare": "npm run build",
|
49 | "eslint": "eslint src test",
|
50 | "prettier": "npm run prettier:src && npm run prettier:test",
|
51 | "prettier:src": "prettier --write src --loglevel=warn",
|
52 | "prettier:test": "prettier --write test --loglevel=warn",
|
53 | "watch": "jest --watch",
|
54 | "test": "jest --coverage",
|
55 | "test:silent": "jest --silent",
|
56 | "coveralls": "npm run test && cat coverage/lcov.info | coveralls"
|
57 | },
|
58 | "dependencies": {
|
59 | "dayjs": "^1.10.0"
|
60 | },
|
61 | "eslintConfig": {
|
62 | "env": {
|
63 | "es6": true,
|
64 | "node": true,
|
65 | "browser": true
|
66 | },
|
67 | "ignorePatterns": [
|
68 | "benchmark/*.js"
|
69 | ],
|
70 | "parserOptions": {
|
71 | "sourceType": "module",
|
72 | "ecmaFeatures": {
|
73 | "modules": true
|
74 | },
|
75 | "project": "./tsconfig.json"
|
76 | },
|
77 | "parser": "@typescript-eslint/parser",
|
78 | "extends": [
|
79 | "eslint:recommended",
|
80 | "plugin:@typescript-eslint/recommended",
|
81 | "prettier",
|
82 | "prettier/@typescript-eslint"
|
83 | ],
|
84 | "plugins": [
|
85 | "@typescript-eslint"
|
86 | ],
|
87 | "reportUnusedDisableDirectives": true,
|
88 | "rules": {
|
89 | "@typescript-eslint/explicit-module-boundary-types": "off",
|
90 | "@typescript-eslint/no-unused-vars": [
|
91 | "warn",
|
92 | {
|
93 | "args": "none"
|
94 | }
|
95 | ],
|
96 | "prefer-const": "warn"
|
97 | }
|
98 | }
|
99 | }
|