-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
143 lines (143 loc) · 4.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "@gotabit/sdk",
"version": "1.1.29",
"main": "index.js",
"license": "MIT",
"private": "false",
"publishConfig": {
"access": "public"
},
"author": "GotaBit DEV <dev@gotabit.org>",
"repository": "https://github.com/gotabit/sdk-ts",
"workspaces": {
"packages": [
"packages/*"
]
},
"scripts": {
"install": "lerna exec yarn",
"build": "lerna run build ",
"lerna:publish": "lerna publish from-package",
"build:watch": "lerna run --parallel build:watch",
"build:fresh": "yarn clean && yarn build",
"build:patch:publish": "yarn build:fresh && yarn patch && yarn lerna:publish",
"patch": "lerna version patch",
"clean": "lerna run --parallel clean && shx rm -rf .build-cache *.log coverage junit.xml",
"clean:mod": "rimraf ./**/package-lock.json; rimraf ./**/node_modules",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"test:ci": "jest --coverage --ci --reporters='jest-junit'",
"test:unit": "jest packages/*/test/unit",
"test:integration": "jest packages/*/test/integration",
"coverage": "jest --coverage",
"coverage:unit": "yarn test:unit --coverage",
"coverage:integration": "yarn test:integration --coverage",
"lint": "eslint './packages/**/*.{ts.tsx,js}'",
"lint:ci": "yarn lint . --format junit",
"lint:md": "markdownlint --ignore node_modules --ignore .git",
"format": "yarn lint --fix",
"format:md": "yarn lint:md --fix",
"husky-skip": "cross-env HUSKY_SKIP_HOOKS=1",
"commit": "git cz",
"prepare": "husky install",
"lerna": "lerna"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
],
"*.md": [
"yarn format:md"
]
},
"devDependencies": {
"@types/jest": "^29.2.2",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"cross-env": "^7.0.3",
"eslint": "^8.26.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-typescript": "^3.5.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"jest": "^29.2.2",
"lerna": "^6.0.1",
"lint-staged": "^13.0.3",
"markdownlint-cli": "^0.32.2",
"prettier": "^2.7.1",
"rimraf": "3.0.2",
"shx": "^0.3.4",
"ts-jest": "^29.0.3",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"es6": true,
"browser": true,
"jest/globals": true
},
"plugins": [
"prettier",
"jest",
"react-hooks"
],
"extends": [
"airbnb-base",
"prettier",
"plugin:jest/all",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"prettier/prettier": "error",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/unbound-method": "off",
"jest/valid-expect": "error",
"jest/expect-expect": "off",
"jest/prefer-expect-assertions": "off",
"jest/no-test-return-statement": "off",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": "error",
"import/no-cycle": "off",
"max-classes-per-file": "off",
"no-void": "off",
"no-console": "off",
"no-iterator": "off",
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"consistent-return": "off",
"no-shadow": "off",
"no-unused-vars": "off",
"no-useless-constructor": "off",
"no-dupe-class-members": "off",
"@typescript-eslint/explicit-function-return-type": "off"
},
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"import/resolver": {
"typescript": {}
}
}
}
}