-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
87 lines (87 loc) · 2.08 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
{
"name": "TODO",
"version": "0.0.1",
"description": "TODO",
"main": "dist/index.js",
"dependencies": {},
"jest": {
"collectCoverageFrom": [
"<rootDir>/src/utils/**/*.ts",
"!<rootDir>/node_modules/",
"!<rootDir>/dist/"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/dist/"
],
"moduleDirectories": [
"node_modules",
"src"
],
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
}
},
"commitlint": {
"extends": "@nengo/commitlint-config-nengo"
},
"scripts": {
"test": "jest --watchAll",
"test-coverage": "jest --collectCoverage --passWithNoTests",
"lint-commits": "commitlint --from main --to HEAD --verbose"
},
"husky": {
"hooks": {
"pre-commit": "export CI=true && npm run build && lint-staged && npm run test-coverage",
"pre-push": "export CI=true && npm run build && lint-staged && npm run lint-commits"
}
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"eslint --fix",
"prettier --write"
]
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-typescript"
]
},
"prettier": {
"printWidth": 100,
"singleQuote": true,
"trailingComma": "es5"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@commitlint/cli": "^11.0.0",
"@types/jest": "^26.0.15",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"@nengo/commitlint-config-nengo": "^1.0.1",
"babel-jest": "^26.6.0",
"babel-plugin-root-import": "^6.5.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
"husky": "^4.3.0",
"jest": "^26.6.0",
"lint-staged": "^10.5.1",
"prettier": "^2.1.2"
}
}