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
|
{
"name": "resolve-dependencies",
"version": "6.0.7",
"license": "MIT",
"main": "lib/resolve",
"files": [
"lib",
"!**/*.spec.js"
],
"scripts": {
"build": "rm -rf lib && npm run lint && tsc",
"commitlint": "commitlint -f $(git rev-list --tags --max-count=1) -t $(git log --pretty=%H | head -1)",
"lint": "eslint \"src/**/*\" --fix",
"prepublishOnly": "npm run build && npm run commitlint",
"test": "jest --passWithNoTests",
"watch": "npm run build && concurrently -k \"npm:watch:typescript\" \"npm:watch:test\" -c blue,green",
"watch:test": "jest --watchAll",
"watch:typescript": "tsc -w"
},
"dependencies": {
"enhanced-resolve": "^5.8.2",
"globby": "^11.0.4",
"meriyah": "^4.2.0"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-angular": "^12.1.4",
"@types/enhanced-resolve": "^3.0.7",
"@types/jest": "^26.0.24",
"@types/node": "^16.3.3",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"concurrently": "^6.2.0",
"eslint": "^7.30.0",
"eslint-config-prettier": "~8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"jest": "^27.0.6",
"prettier": "^2.3.2",
"tacks": "^1.3.0",
"typescript": "^4.3.5"
},
"jest": {
"testRegex": ".*?(\\.spec).js",
"watchPathIgnorePatterns": [
"lib/fixture*",
"\\.ts$"
]
},
"prettier": {
"parser": "typescript",
"semi": false,
"singleQuote": true,
"printWidth": 100
},
"commitlint": {
"extends": [
"@commitlint/config-angular"
],
"rules": {
"type-enum": [
2,
"always",
[
"build",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"release",
"revert",
"style",
"test",
"chore"
]
]
}
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"overrides": [
{
"files": [
"*.spec.ts"
],
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/camelcase": 0
}
}
],
"rules": {
"@typescript-eslint/no-unused-vars": [
2,
{
"ignoreRestSiblings": true,
"varsIgnorePattern": "^_*"
}
],
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-use-before-define": 0
}
}
}
|