From 93c8e0c4a4ce9c2c466efedbc92f5ffc22aecd9f Mon Sep 17 00:00:00 2001 From: Lexus Drumgold Date: Mon, 10 Apr 2023 01:14:21 -0400 Subject: [PATCH] chore: sync config files - https://gist.github.com/unicornware/1ecc41e7407de9d8c9e90e088cd88d6d Signed-off-by: Lexus Drumgold --- .dictionary.txt | 1 - .editorconfig | 4 ++++ .eslintignore | 2 +- .eslintrc.base.cjs | 11 ++++++++++- .vscode/settings.json | 12 ++++++++++++ 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.dictionary.txt b/.dictionary.txt index 7c1e0e8f..2a048261 100644 --- a/.dictionary.txt +++ b/.dictionary.txt @@ -3,7 +3,6 @@ bdougie cefc codecov commitlintrc -dawidd dedupe dessant dohm diff --git a/.editorconfig b/.editorconfig index ac2bf51f..697c45b9 100644 --- a/.editorconfig +++ b/.editorconfig @@ -38,6 +38,10 @@ max_line_length = 100 [*.snap] max_line_length = 130 +# xml +[*.xml] +max_line_length = 100 + # yaml [*.yml] max_line_length = 100 diff --git a/.eslintignore b/.eslintignore index ac266802..1e90ed13 100644 --- a/.eslintignore +++ b/.eslintignore @@ -19,7 +19,7 @@ yarn.lock !**/__fixtures__/**/node_modules/ !**/typings/**/dist/ !.codecov.yml -!.commitlintrc.json +!.commitlintrc.* !.cspell.json !.github/ !.graphqlrc.yml diff --git a/.eslintrc.base.cjs b/.eslintrc.base.cjs index 14250c0b..c0fa4d75 100644 --- a/.eslintrc.base.cjs +++ b/.eslintrc.base.cjs @@ -421,6 +421,7 @@ const config = { 'maximum', 'minimum', 'next', + 'packageManager', 'visibleName' ], jsxTags: false @@ -1128,7 +1129,11 @@ const config = { } }, { - files: ['.github/dependabot.yml', '.github/workflows/*.yml'], + files: [ + '.github/dependabot.yml', + '.github/workflows/*.yml', + 'action.yml' + ], rules: { 'yml/sort-keys': 0 } @@ -1191,6 +1196,10 @@ const config = { name: 'namepath-defining', required: ['type'] }, + packageManager: { + name: 'text', + required: ['name'] + }, param: { name: 'namepath-defining', required: ['name', 'type'] diff --git a/.vscode/settings.json b/.vscode/settings.json index 990b2617..5737bf3d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -62,6 +62,13 @@ "editor.wordWrapColumn": 100, "rewrap.wrappingColumn": 100 }, + "[xml]": { + "editor.defaultFormatter": "redhat.vscode-xml", + "editor.rulers": [100], + "editor.wordWrap": "wordWrapColumn", + "editor.wordWrapColumn": 100, + "rewrap.wrappingColumn": 100 + }, "[yaml]": { "editor.rulers": [ { @@ -382,6 +389,11 @@ "workbench.editor.closeOnFileDelete": true, "workbench.editor.enablePreview": false, "workbench.iconTheme": "vscode-icons", + "xml.format.closingBracketNewLine": true, + "xml.format.maxLineWidth": 100, + "xml.format.spaceBeforeEmptyCloseTag": false, + "xml.format.splitAttributes": true, + "xml.format.splitAttributesIndentSize": 0, "yaml.schemas": { "https://json.schemastore.org/github-issue-config": ".github/ISSUE_TEMPLATE/config.yml", "https://json.schemastore.org/github-workflow": ".github/workflows/*.yml"