-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 2.81 KB
/
package.json
File metadata and controls
109 lines (109 loc) · 2.81 KB
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
{
"name": "@pkmn/dmg",
"version": "0.0.1",
"main": "build/index.js",
"types": "build/index.d.ts",
"unpkg": "build/index.umd.js",
"bin": {
"dmg": "dmg"
},
"description": "Pokémon damage calculator",
"repository": "github:pkmn/dmg",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"files": ["build", "!build/test", "src", "!src/test"],
"dependencies": {
"@pkmn/data": "^0.8.7"
},
"devDependencies": {
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@pkmn/eslint-config": "^6.6.0",
"@pkmn/sim": "^0.8.7",
"@smogon/calc": "^0.9.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.16",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"eslint": "^8.56.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^27.6.3",
"jest": "^29.7.0",
"microbundle": "^0.15.1",
"typescript": "^5.3.3"
},
"scripts": {
"lint": "eslint --cache src --ext ts",
"fix": "eslint --fix src --ext ts",
"compile": "tsc -p .",
"bundle": "microbundle --name dmg --format umd --tsconfig bundle.json --strict",
"build": "npm run compile && npm run bundle",
"test": "jest",
"test:integration": "npm run test && node integration",
"prepare": "npm run build",
"pretest": "npm run build",
"posttest": "npm run lint"
},
"jest": {
"testEnvironment": "node",
"testPathIgnorePatterns": ["node_modules/", "build/"],
"coveragePathIgnorePatterns": ["node_modules/", "build/", "src/test/helpers/"],
"coverageDirectory": ".coverage"
},
"babel": {
"presets": [
"@babel/preset-typescript",
["@babel/preset-env", {"targets": {"node": "current"}}]
]
},
"eslintConfig": {
"extends": "@pkmn",
"overrides": [
{
"files": ["src/mechanics/*.ts","!src/test/mechanics/index.ts"],
"rules": {
"consistent-return": "off",
"max-len": "off"
}
},
{
"files": ["src/test/mechanics/*.ts"],
"rules": {
"max-len": "off"
}
},
{
"files": ["src/result.ts"],
"rules": {
"@typescript-eslint/prefer-for-of": "off"
}
},
{
"files": ["src/utils.ts"],
"rules": {
"@typescript-eslint/no-this-alias": "off"
}
},
{
"files": ["src/**/*.ts"],
"rules": {
"import/order": "off",
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/ban-types": [
"error",
{
"types": {
"object": false,
"{}": false,
"Function": false
},
"extendDefaults": true
}
]
}
}
]
}
}