-
Notifications
You must be signed in to change notification settings - Fork 60
/
package.json
92 lines (92 loc) · 2.68 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
{
"name": "tesla-style-solar-power-card",
"version": "0.0.0",
"description": "Webcomponent tesla-style-solar-power-card following open-wc recommendations",
"author": "tesla-style-solar-power-card",
"license": "Apache-2.0",
"main": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
"build": "rimraf dist && tsc && rollup -c rollup.config.js",
"prepublish": "tsc",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
"test": "tsc && wtr --coverage",
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
},
"dependencies": {
"custom-card-helpers": "^1.7.0",
"home-assistant-js-websocket": "^5.7.0",
"lit": "^2.2.1"
},
"devDependencies": {
"@babel/eslint-plugin": "^7.12.13",
"@open-wc/building-rollup": "^2.0.1",
"@open-wc/eslint-config": "^4.2.0",
"@open-wc/testing": "^3.1.2",
"@rollup/plugin-node-resolve": "^13.1.3",
"@types/convert-source-map": "^1.5.1",
"@types/istanbul-reports": "^3.0.0",
"@types/mocha": "^9.1.0",
"@typescript-eslint/eslint-plugin": "^4.14.1",
"@typescript-eslint/parser": "^4.14.1",
"@web/dev-server": "^0.1.5",
"@web/dev-server-legacy": "^0.1.7",
"@web/test-runner": "^0.13.27",
"@web/test-runner-commands": "^0.6.1",
"concurrently": "^7.1.0",
"deepmerge": "^4.2.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^7.2.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.7",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"rollup": "^2.45.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.2",
"sinon": "^13.0.1",
"tslib": "^2.1.0",
"typescript": "^4.1.3"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"extends": [
"@open-wc/eslint-config",
"eslint-config-prettier"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error"
],
"import/no-unresolved": "off",
"import/extensions": [
"error",
"always",
{
"ignorePackages": true
}
]
}
},
"prettier": {
"singleQuote": true,
"arrowParens": "avoid"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write --print-width 140"
]
}
}