build(deps): update dependency editorconfig to v1.0.1 (#18564)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Philip <42116482+PhilipAbed@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
renovate[bot] 2022-10-26 11:26:15 +00:00 committed by GitHub
parent 2e4eebe933
commit 952d780940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 40 deletions

View file

@ -1,27 +0,0 @@
#
# .editorconfig
#
# http://editorconfig.org
#
# The EditorConfig project consists of a file format for defining coding styles
# and a collection of text editor plugins that enable editors to read the file
# format and adhere to defined styles.
#
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
# package.json specific rules
[package.json]
indent_size = 2
# .yml specific rules
[*.yml]
indent_size = 2

View file

@ -51,12 +51,16 @@ describe('util/json-writer/editor-config', () => {
expect(format.indentationType).toBe(IndentationType.Space);
});
// temporary ignoring error https://github.com/renovatebot/renovate/issues/18540
it('should temporary give undefined until its fixed on the library', async () => {
it('should return undefined in case of exception', async () => {
expect.assertions(2);
Fixtures.mock({
'.editorconfig': Fixtures.get('.customer_file'),
'.editorconfig': Fixtures.get('.global_editorconfig'),
});
const editorconf = await import('editorconfig');
jest
.spyOn(editorconf, 'parse')
.mockImplementationOnce(new Error('something') as never);
const format = await EditorConfig.getCodeFormat(defaultConfigFile);
expect(format.indentationSize).toBeUndefined();

View file

@ -179,7 +179,7 @@
"delay": "5.0.0",
"dequal": "2.0.3",
"detect-indent": "6.1.0",
"editorconfig": "1.0.0",
"editorconfig": "1.0.1",
"email-addresses": "5.0.0",
"emoji-regex": "10.2.1",
"emojibase": "6.1.0",

View file

@ -2277,10 +2277,10 @@
dependencies:
"@octokit/openapi-types" "^14.0.0"
"@one-ini/wasm@0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@one-ini/wasm/-/wasm-0.1.0.tgz#9afb7db5804f509490de695481cf05a00aef9ccd"
integrity sha512-cP8ZX+YBxw7SykvcX1NNKSia7ByE+PQTLZcRcEuuHsGJL+Zzuid+LSU1gC6QS1Ll3GTdE7z1/+JR5MYeMQkLBQ==
"@one-ini/wasm@0.1.1":
version "0.1.1"
resolved "https://registry.yarnpkg.com/@one-ini/wasm/-/wasm-0.1.1.tgz#6013659736c9dbfccc96e8a9c2b3de317df39323"
integrity sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==
"@openpgp/web-stream-tools@0.0.12":
version "0.0.12"
@ -4665,12 +4665,12 @@ duplexer2@~0.1.0:
dependencies:
readable-stream "^2.0.2"
editorconfig@1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/editorconfig/-/editorconfig-1.0.0.tgz#c2d9d0f287b3c14cb64aaf71dd1d11c8a6ec535c"
integrity sha512-kep0YWCniNr1Z/pkavbAQ3yRQRTkaO+xJBiZPWwObnsS8dlo4C14onTf35IpPtR1nM8bqgDF9XVscDY7QwVEng==
editorconfig@1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/editorconfig/-/editorconfig-1.0.1.tgz#94dee9bf4351ccce3b12eefed663efef29b06046"
integrity sha512-QKhz+SCEjJ6JpIK4Ve64KpSZs8ZIoIkd2qWbhfrVrwbIh60+uVV70QDh3FYcZrhwJwQ+m9UdrOMSbGe/Osxiew==
dependencies:
"@one-ini/wasm" "0.1.0"
"@one-ini/wasm" "0.1.1"
commander "^9.4.1"
minimatch "5.1.0"
semver "^7.3.8"