-
-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: change printWidth from 80 to 100 (#362)
- Loading branch information
Showing
10 changed files
with
32 additions
and
128 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"printWidth": 80, | ||
"printWidth": 100, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": 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
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,8 +1,4 @@ | ||
import { | ||
getPublishRepo, | ||
setPersonalToken, | ||
setGithubToken | ||
} from '../src/set-tokens'; | ||
import {getPublishRepo, setPersonalToken, setGithubToken} from '../src/set-tokens'; | ||
|
||
beforeEach(() => { | ||
jest.resetModules(); | ||
|
@@ -26,8 +22,7 @@ describe('getPublishRepo()', () => { | |
|
||
describe('setGithubToken()', () => { | ||
test('return remote url with GITHUB_TOKEN gh-pages', () => { | ||
const expected = | ||
'https://x-access-token:[email protected]/owner/repo.git'; | ||
const expected = 'https://x-access-token:[email protected]/owner/repo.git'; | ||
const test = setGithubToken( | ||
'GITHUB_TOKEN', | ||
'owner/repo', | ||
|
@@ -40,8 +35,7 @@ describe('setGithubToken()', () => { | |
}); | ||
|
||
test('return remote url with GITHUB_TOKEN master', () => { | ||
const expected = | ||
'https://x-access-token:[email protected]/owner/repo.git'; | ||
const expected = 'https://x-access-token:[email protected]/owner/repo.git'; | ||
const test = setGithubToken( | ||
'GITHUB_TOKEN', | ||
'owner/repo', | ||
|
@@ -55,14 +49,7 @@ describe('setGithubToken()', () => { | |
|
||
test('throw error master to master', () => { | ||
expect(() => { | ||
setGithubToken( | ||
'GITHUB_TOKEN', | ||
'owner/repo', | ||
'master', | ||
'', | ||
'refs/heads/master', | ||
'push' | ||
); | ||
setGithubToken('GITHUB_TOKEN', 'owner/repo', 'master', '', 'refs/heads/master', 'push'); | ||
}).toThrowError('You deploy from master to master'); | ||
}); | ||
|
||
|
@@ -76,14 +63,11 @@ describe('setGithubToken()', () => { | |
'refs/heads/master', | ||
'push' | ||
); | ||
}).toThrowError( | ||
'GITHUB_TOKEN does not support to push to an external repository' | ||
); | ||
}).toThrowError('GITHUB_TOKEN does not support to push to an external repository'); | ||
}); | ||
|
||
test('return remote url with GITHUB_TOKEN pull_request', () => { | ||
const expected = | ||
'https://x-access-token:[email protected]/owner/repo.git'; | ||
const expected = 'https://x-access-token:[email protected]/owner/repo.git'; | ||
const test = setGithubToken( | ||
'GITHUB_TOKEN', | ||
'owner/repo', | ||
|
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 |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
} | ||
}, | ||
"lint-staged": { | ||
"src/**/*.ts": [ | ||
"{src,__tests__}/**/*.ts": [ | ||
"prettier --check", | ||
"eslint" | ||
], | ||
|
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
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