-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
75 lines (75 loc) · 3.2 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
{
"name": "js-modules",
"private": true,
"scripts": {
"clean:main": "rm -rf `find -type d -name 'node_modules'` `find -type d -name 'build'` `find -type d -name 'coverage'` .husky .eslintignore .prettierignore .solhintignore",
"clean:tsbuildinfo": "rm -rf `find -type f -name '*.tsbuildinfo'`",
"clean:graph": "rm -rf `find -type d -name 'dependency-graph*'` `find -type f -name 'dependency-graph*'`",
"clean:lock-files": "rm -rf `find -type f -name 'package-lock.json'` `find -type f -name 'pnpm-lock.yaml'` `find -type f -name 'yarn.lock'`",
"clean:git-hooks": "git config --unset core.hooksPath",
"reset:clean": "pnpm clean:main && pnpm clean:tsbuildinfo",
"reset:install": "ln -s .gitignore .eslintignore && ln -s .gitignore .prettierignore && ln -s .gitignore .solhintignore && pnpm install",
"reset:reset": "pnpm reset:clean && pnpm reset:install",
"git-hooks:set": " husky install && pnpm husky add .husky/pre-commit 'pnpm lint:fix' && pnpm husky add .husky/pre-commit 'pnpm commitlint --edit $1'",
"git-hooks:reset": "pnpm clean:git-hooks && pnpm git-hooks:set",
"test:test": "jest && lerna run test",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint:check": "eslint './**/*.{js,jsx,ts,tsx}' && prettier --list-different './**/*.{js,jsx,ts,tsx,css,scss,less,json,md,yml,yaml}' && prettier --config ./prettier-config-solidity.js --list-different './**/*.sol' && solhint './**/*.sol'",
"lint:fix": " eslint --fix './**/*.{js,jsx,ts,tsx}' && prettier --write './**/*.{js,jsx,ts,tsx,css,scss,less,json,md,yml,yaml}' && prettier --config ./prettier-config-solidity.js --write './**/*.sol' && solhint --fix './**/*.sol'",
"graph:dependency-map": "monorepo-mapper --format pdf",
"graph:package-tree": " tree -d -L 3 packages",
"lerna:build": "lerna run build",
"prepublish": "pnpm lint:fix && pnpm test:coverage && pnpm lerna:build"
},
"dependencies": {
"@types/node": "^18.15.12"
},
"devDependencies": {
"@commitlint/cli": "^17.6.1",
"@commitlint/config-angular": "^17.6.1",
"@types/jest": "^29.5.1",
"cross-env": "^7.0.3",
"eslint": "^8.38.0",
"eslint-config-airbnb-typescript-prettier": "^5.0.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsdoc": "^43.0.6",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lerna": "^6.6.1",
"monorepo-mapper": "^1.0.5",
"prettier": "^2.8.7",
"prettier-plugin-solidity": "^1.1.3",
"solhint": "^3.4.1",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4"
},
"eslintConfig": {
"root": true,
"extends": [
"plugin:jest/recommended",
"plugin:jest/style",
"airbnb-typescript-prettier"
],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"env": {
"jest/globals": true
},
"rules": {
"no-underscore-dangle": "off",
"import/prefer-default-export": "off",
"react/require-default-props": "off",
"react/function-component-definition": "off",
"@typescript-eslint/no-non-null-assertion": "off"
}
},
"prettier": {
"singleQuote": true,
"trailingComma": "all"
}
}