-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add Prettier + husky + lint-staged
- Loading branch information
Showing
56 changed files
with
4,785 additions
and
2,223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'monthly' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: electron-nightly Canary | |
|
||
on: | ||
schedule: | ||
- cron: "15 8 * * *" | ||
- cron: '15 8 * * *' | ||
|
||
jobs: | ||
build: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ npm-debug.log | |
dist/ | ||
src/targets.js | ||
coverage.lcov | ||
.eslintcache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
npx lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"singleQuote": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict' | ||
'use strict'; | ||
|
||
/* eslint-disable no-var */ | ||
// WHY: not consts so that this file can load in Node < 4.0 | ||
var packageJSON = require('../package.json') | ||
var semver = require('semver') | ||
var packageJSON = require('../package.json'); | ||
var semver = require('semver'); | ||
if (!semver.satisfies(process.versions.node, packageJSON.engines.node)) { | ||
console.error('CANNOT RUN WITH NODE ' + process.versions.node) | ||
console.error('Electron Packager requires Node ' + packageJSON.engines.node + '.') | ||
process.exit(1) | ||
console.error('CANNOT RUN WITH NODE ' + process.versions.node); | ||
console.error( | ||
'Electron Packager requires Node ' + packageJSON.engines.node + '.', | ||
); | ||
process.exit(1); | ||
} | ||
|
||
var cli = require('../dist/cli') | ||
cli.run(process.argv.slice(2)) | ||
var cli = require('../dist/cli'); | ||
cli.run(process.argv.slice(2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
declare module 'get-package-info' { | ||
type Props = Array<string | string[]> | ||
type Props = Array<string | string[]>; | ||
|
||
export type GetPackageInfoResultSourceItem = { | ||
/** path to the package.json file */ | ||
src: string | ||
src: string; | ||
|
||
/** property name */ | ||
prop: string | ||
prop: string; | ||
|
||
/** the `package.json` object */ | ||
pkg: Record<string, unknown> | ||
} | ||
pkg: Record<string, unknown>; | ||
}; | ||
|
||
export type GetPackageInfoResult = { | ||
source: Record<string, GetPackageInfoResultSourceItem> | ||
values: Record<string, unknown> | ||
} | ||
source: Record<string, GetPackageInfoResultSourceItem>; | ||
values: Record<string, unknown>; | ||
}; | ||
|
||
function getPackageInfo (props: Props, dir: string): Promise<GetPackageInfoResult> | ||
function getPackageInfo( | ||
props: Props, | ||
dir: string, | ||
): Promise<GetPackageInfoResult>; | ||
|
||
export type GetPackageInfoError = Error & { | ||
missingProps: Props | ||
result: GetPackageInfoResult | ||
} | ||
missingProps: Props; | ||
result: GetPackageInfoResult; | ||
}; | ||
|
||
export = getPackageInfo | ||
export = getPackageInfo; | ||
} |
Oops, something went wrong.