Skip to content

Commit 5692d32

Browse files
committed
Update eslint and a few ZEIT references to Vercel
1 parent 6ef561a commit 5692d32

24 files changed

+263
-184
lines changed

.eslintrc.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@
9393
],
9494
"rules": {
9595
"@typescript-eslint/explicit-function-return-type": "off",
96+
"@typescript-eslint/explicit-module-boundary-types": "off",
9697
"@typescript-eslint/no-explicit-any": "off",
9798
"@typescript-eslint/no-non-null-assertion": "off",
98-
"@typescript-eslint/prefer-optional-chain": "error"
99+
"@typescript-eslint/prefer-optional-chain": "error",
100+
"@typescript-eslint/ban-types": "off"
99101
}
100102
}
101103
]

.github/issue_template.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
-->
88

99
<!-- Checked checkbox should look like this: [x] -->
10-
- [ ] I am on the [latest](https://github.com/zeit/hyper/releases/latest) Hyper.app version
11-
- [ ] I have searched the [issues](https://github.com/zeit/hyper/issues) of this repo and believe that this is not a duplicate
10+
- [ ] I am on the [latest](https://github.com/vercel/hyper/releases/latest) Hyper.app version
11+
- [ ] I have searched the [issues](https://github.com/vercel/hyper/issues) of this repo and believe that this is not a duplicate
1212

1313
<!--
1414
Once those are done, if you're able to fill in the following list with your information,
@@ -22,4 +22,4 @@
2222
- **The issue is reproducible in vanilla Hyper.app**: <!-- Replace with info if applicable, or `Is Vanilla`. (Vanilla means Hyper.app without any add-ons or extras. Straight out of the box.) -->
2323

2424
## Issue
25-
<!-- Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤ -->
25+
<!-- Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤ -->

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
- To help whoever reviews your PR, it'd be extremely helpful for you to list whether your PR is ready to be merged,
44
If there's anything left to do and if there are any related PRs
55
- It'd also be extremely helpful to enable us to update your PR incase we need to rebase or what-not by checking `Allow edits from maintainers`
6-
- If your PR changes some API, please make a PR for hyper website too: https://github.com/zeit/hyper-site.
6+
- If your PR changes some API, please make a PR for hyper website too: https://github.com/vercel/hyper-site.
77
88
Thanks, again! -->

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2018 ZEIT, Inc.
3+
Copyright (c) 2018 Vercel, Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

PLUGINS.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
## Workflow
44

55
### Run Hyper in dev mode
6-
Hyper can be run in dev mode by cloning this repository and following the ["Contributing" section of our README](https://github.com/zeit/hyper#contribute).
6+
Hyper can be run in dev mode by cloning this repository and following the ["Contributing" section of our README](https://github.com/vercel/hyper#contribute).
77

88
In dev mode you'll get more ouput and access to React/Redux dev-tools in Electron.
99

10-
Prerequisites and steps are described in the ["Contributing" section of our README](https://github.com/zeit/hyper#contribute).
10+
Prerequisites and steps are described in the ["Contributing" section of our README](https://github.com/vercel/hyper#contribute).
1111
Be sure to use the `canary` branch.
1212

1313
### Create a dev config file
@@ -30,7 +30,7 @@ module.exports = {
3030
```
3131

3232
### Running your plugin
33-
To load, your plugin should expose at least one API method. All possible methods are listed [here](https://github.com/zeit/hyper/blob/canary/app/plugins/extensions.ts).
33+
To load, your plugin should expose at least one API method. All possible methods are listed [here](https://github.com/vercel/hyper/blob/canary/app/plugins/extensions.ts).
3434

3535
After launching Hyper in dev mode, run `yarn run app`, it should log that your plugin has been correcty loaded: `Plugin hyper-awesome-plugin (0.1.0) loaded.`. Name and version printed are the ones in your plugins `package.json` file.
3636

@@ -70,7 +70,7 @@ exports.decorateTerms = (Terms, {React}) => {
7070
// <Terms onDecorated={this.onDecorated} />
7171
}
7272
}
73-
```
73+
```
7474
:warning: Note that you have to execute `this.props.onDecorated` to not break the handler chain. Without this, you could break other plugins that decorate the same component.
7575
7676
### Keymaps

app/auto-updater-linux.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ class AutoUpdater extends EventEmitter implements Electron.AutoUpdater {
2626
this.emit('update-not-available');
2727
return;
2828
}
29-
// eslint-disable-next-line @typescript-eslint/camelcase
3029
return res.json().then(({name, notes, pub_date}) => {
3130
// Only name is mandatory, needed to construct release URL.
3231
if (!name) {
3332
throw new Error('Malformed server response: release name is missing.');
3433
}
3534
// If `null` is passed to Date constructor, current time will be used. This doesn't work with `undefined`
36-
// eslint-disable-next-line @typescript-eslint/camelcase
3735
const date = new Date(pub_date || null);
3836
this.emit('update-available', {}, notes, name, date);
3937
});

app/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const getDeprecatedCSS = (config: configOptions) => {
1515
const deprecated: string[] = [];
1616
const deprecatedCSS = ['x-screen', 'x-row', 'cursor-node', '::selection'];
1717
deprecatedCSS.forEach((css) => {
18-
if ((config.css && config.css.includes(css)) || (config.termCSS && config.termCSS.includes(css))) {
18+
if (config.css?.includes(css) || config.termCSS?.includes(css)) {
1919
deprecated.push(css);
2020
}
2121
});
@@ -52,7 +52,7 @@ const _watch = () => {
5252
// Windows
5353
if (process.platform === 'win32') {
5454
// watch for changes on config every 2s on Windows
55-
// https://github.com/zeit/hyper/pull/1772
55+
// https://github.com/vercel/hyper/pull/1772
5656
_watcher = fs.watchFile(cfgPath, {interval: 2000}, (curr, prev) => {
5757
if (!curr.mtime || curr.mtime.getTime() === 0) {
5858
console.error('error watching config');
@@ -144,8 +144,8 @@ export const htermConfigTranslate = (config: configOptions) => {
144144
Object.keys(cssReplacements).forEach((pattern) => {
145145
const searchvalue = new RegExp(pattern, 'g');
146146
const newvalue = cssReplacements[pattern];
147-
config.css = config.css && config.css.replace(searchvalue, newvalue);
148-
config.termCSS = config.termCSS && config.termCSS.replace(searchvalue, newvalue);
147+
config.css = config.css?.replace(searchvalue, newvalue);
148+
config.termCSS = config.termCSS?.replace(searchvalue, newvalue);
149149
});
150150
return config;
151151
};

app/config/open.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export default () => {
1212
} catch (err) {
1313
console.error(err);
1414
}
15+
// eslint-disable-next-line @typescript-eslint/no-var-requires
1516
const {exec} = require('child_process') as typeof import('child_process');
1617

1718
const getUserChoiceKey = async () => {

app/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function installDevExtensions(isDev_: boolean) {
119119
if (!isDev_) {
120120
return Promise.resolve([]);
121121
}
122+
// eslint-disable-next-line @typescript-eslint/no-var-requires
122123
const installer = require('electron-devtools-installer') as typeof import('electron-devtools-installer');
123124

124125
const extensions = ['REACT_DEVELOPER_TOOLS', 'REDUX_DEVTOOLS'] as const;

app/menus/menu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const createMenu = (
5454
dialog.showMessageBox({
5555
title: `About ${appName}`,
5656
message: `${appName} ${appVersion} (${updateChannel})`,
57-
detail: `Renderers: ${renderers}\nPlugins: ${pluginList}\n\nCreated by Guillermo Rauch\nCopyright © 2020 ZEIT, Inc.`,
57+
detail: `Renderers: ${renderers}\nPlugins: ${pluginList}\n\nCreated by Guillermo Rauch\nCopyright © 2020 Vercel, Inc.`,
5858
buttons: [],
5959
icon: icon as any
6060
});

0 commit comments

Comments
 (0)