-
Notifications
You must be signed in to change notification settings - Fork 101
Feature/convert editor settings 133 #250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
JoshuaKGoldberg
merged 45 commits into
typescript-eslint:master
from
MrCube42:feature/convert-editor-settings_133
Dec 17, 2019
Merged
Changes from 31 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
1deac7b
feat (editor): add cli option to specify editor config path to conver…
d8d92b0
fix (editor): remove option configuration to fix default value
59bcca2
feat (editor): add editor cli option to TSLintToESLintSettings
d600d78
feat(editor): conversion of multiple configs, read config and replace
MrCube42 7452b3d
test(editor): adjust tests to receive convertConfigs array
MrCube42 be3704d
style (editor): fix incorrect import statement with js ending
MrCube42 7ee90c1
Merge branch 'master' into feature/convert-editor-settings_133
MrCube42 ffb7f54
fix(editor): get error return value instead of try/catch
MrCube42 da92c2b
style: format with prettier
MrCube42 129de28
fix: capture every error while processing multiple configs
MrCube42 85c9db2
Merge branch 'master' into feature/convert-editor-settings_133
MrCube42 ce99325
fix: log success only once
MrCube42 119849f
feat(editor): add error for editor settings conversion
MrCube42 a0b6bcd
feat(editor): make editor conversion extendable like rule conversion,…
MrCube42 8f409ca
refactor(editor): extract vscode settings path and editor config into…
MrCube42 77eee95
fix: remove file ending from import statement
MrCube42 effbacc
fix: change import of DeepPartial
MrCube42 48956ea
feat(editor): report converted settings
MrCube42 d53f7b2
Merge branch 'refs/heads/master' into feature/convert-editor-settings…
MrCube42 07ad57f
refactor: extract general log outputs from report rules and settings …
MrCube42 b2a5db1
test: report setting conversion results
MrCube42 6e3cc18
test: conversion of editor.codeActions source.fixAll.tslint into esli…
MrCube42 fe3034b
test: convert setting
MrCube42 186c128
test: convert settings, adjust missing and converted conversion results
MrCube42 1d427ee
test: exlcude settings converters from coverage
MrCube42 9eb7843
test: find editor configuration, stub file system
MrCube42 98cc72c
feat: simplify convertSettings because multiple setting changes don't…
MrCube42 83b9dcc
refactor: adjust naming of test variable
MrCube42 85b1e25
test: write editor config conversion results to proper path
MrCube42 7d6ce31
test: write editor config output with sorted keys to file system
MrCube42 d63d03b
test: conversion of editor config
MrCube42 53f858d
refactor: change generics into actual types
MrCube42 75ba2da
refactor: rename converters to specific rulesConverters and settingsC…
MrCube42 a8af16e
test: clean up outcommented code
MrCube42 5e6879e
fix: change ignored coverage path
MrCube42 03e8372
fix: add typing and dependency property name
MrCube42 b339028
fix: only convert editor settings from the editor configuration
MrCube42 fbd54df
fix: set the already converted setting properly to the conversion res…
MrCube42 beca462
feat: use findRawConfiguration to read editor configuration with json…
MrCube42 88fbe88
test: adjust tests for usage of findRawConfiguration in findEditorCon…
MrCube42 1c6b364
Merge branch 'refs/heads/master' into feature/convert-editor-settings…
MrCube42 53f37d4
refactor: specify naming, every "setting" to be an "editorSetting"
MrCube42 db860ff
style: format imports
MrCube42 8733b0d
style: change sample name of editor-setting in tests
MrCube42 419b939
fix: revert removal of no-explicit-any
MrCube42 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,11 @@ | ||
export const createStubFileSystem = ({ data = {}, exists = true } = {}) => ({ | ||
fileExists: jest.fn().mockReturnValue(exists), | ||
readFile: jest.fn().mockReturnValue(Promise.resolve(data)), | ||
writeFile: jest.fn(), | ||
}); | ||
|
||
export const createStubThrowingFileSystem = ({ err = "" } = {}) => ({ | ||
fileExists: jest.fn().mockRejectedValue(Promise.resolve(new Error(err))), | ||
readFile: jest.fn().mockRejectedValue(Promise.resolve(new Error(err))), | ||
writeFile: jest.fn().mockRejectedValue(Promise.resolve(new Error(err))), | ||
}); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.