Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit 5db8c64

Browse files
authored
Fixes lint-staged, adds tsc check, drops info crap. (#31)
1 parent 42045b6 commit 5db8c64

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

package.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@
8585
"license": "MIT",
8686
"lint-staged": {
8787
"*.js": [
88-
"prettier --write --no-semi --print-width 100 --single-quote \"*.js\"",
89-
"standard --fix \"src/**/*.js\"",
88+
"prettier --write --no-semi --print-width 100 --single-quote",
89+
"standard --fix",
9090
"git add"
9191
],
9292
"*.{ts,tsx}": [
9393
"prettier --write --no-semi --print-width 100 --single-quote",
94-
"tslint \"src/**/*.{ts,tsx}\" --fix",
94+
"tslint --fix",
9595
"git add"
9696
]
9797
},
@@ -100,6 +100,7 @@
100100
"private": true,
101101
"repository": "skellock/electron-starter",
102102
"scripts": {
103+
"check": "tsc -p tsconfig.json --noEmit --pretty",
103104
"clean": "rm -rf .fusebox out dist",
104105
"compile": "NODE_ENV=production node fuse",
105106
"dist": "electron-builder --mac --win --linux --ia32 --x64",
@@ -114,21 +115,6 @@
114115
"test:renderer": "electron-ava src/renderer/**/*.test.js",
115116
"test:snapshots": "electron-ava src/renderer/**/*.test.js -u"
116117
},
117-
"scripts-info": {
118-
"clean": "Removes build artifacts and caches.",
119-
"compile": "Builds both js bundles in production mode.",
120-
"dist": "Creates a executable for distributing.",
121-
"draft": "Releases a version as a draft.",
122-
"info": "Shows available npm scripts.",
123-
"pack": "Creates a executable for trying out.",
124-
"postinstall": "Used by electron-builder to build native dependencies.",
125-
"precommit": "Runs automatically before committing code in git.",
126-
"start": "Starts the app in dev mode.",
127-
"test": "Runs tests.",
128-
"test:main": "Runs the main process tests.",
129-
"test:renderer": "Runs the renderer process tests.",
130-
"test:snapshots": "Updates the snapshots."
131-
},
132118
"standard": {
133119
"parser": "babel-eslint"
134120
},

0 commit comments

Comments
 (0)