Skip to content

Commit 6865a9d

Browse files
Dev Utils 2.0 + Linting Fixes
Update dev utils to version 2, update the references where used and fix all linting issues that are a result of the updated changes. Add workspace config to ensure VS Code auto indents with what the linter expects.
1 parent ad971a6 commit 6865a9d

File tree

6 files changed

+1108
-193
lines changed

6 files changed

+1108
-193
lines changed

ObjectID-Converter.code-workspace

Lines changed: 88 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,90 @@
11
{
2-
"folders": [
3-
{
4-
"name": "Object ID Converter",
5-
"path": "."
6-
}
7-
],
8-
"settings": {
9-
"window.border": "purple",
10-
"files.exclude": {
11-
"node_modules": true
12-
},
13-
"cSpell.words": [
14-
"camelcase",
15-
"keyvault",
16-
"endregion",
17-
"Entra",
18-
"fluentui",
19-
"Intune",
20-
"MDVM",
21-
"ODATA",
22-
"reduxjs",
23-
"SCIM",
24-
"SSPR",
25-
"Writeback"
26-
],
27-
"cSpell.enabledFileTypes": {
28-
"*": true,
29-
},
30-
"editor.formatOnSave": true,
31-
"editor.bracketPairColorization.enabled": true,
32-
"editor.stickyScroll.enabled": true,
33-
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
34-
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
35-
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
36-
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
37-
"typescript.format.semicolons": "insert",
38-
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
39-
"typescript.format.insertSpaceAfterTypeAssertion": true,
40-
"typescript.implementationsCodeLens.enabled": true,
41-
"typescript.inlayHints.enumMemberValues.enabled": true,
42-
"typescript.preferences.quoteStyle": "single",
43-
"javascript.preferences.quoteStyle": "single",
44-
"js/ts.implicitProjectConfig.target": "ES2022",
45-
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
46-
"search.exclude": {
47-
"**/*.js": true,
48-
"**/*.js.map": true
49-
},
50-
"files.insertFinalNewline": true,
51-
"files.trimFinalNewlines": true,
52-
"yaml.format.singleQuote": true,
53-
"powershell.codeFormatting.useConstantStrings": true,
54-
"typescript.tsdk": "node_modules\\typescript\\lib",
55-
"eslint.rules.customizations": [
56-
{
57-
"rule": "*",
58-
"severity": "warn"
59-
}
60-
],
61-
"github.copilot.enable": {
62-
"*": false
63-
},
64-
"github.copilot.chat.agent.autoFix": false,
65-
"github.copilot.chat.agent.runTasks": false,
66-
"github.copilot.editor.enableCodeActions": false,
67-
"todo-tree.general.tags": [
68-
"BUG",
69-
"HACK",
70-
"FIXME",
71-
"TODO",
72-
"XXX",
73-
"[ ]",
74-
"[x]",
75-
"* @todo"
76-
]
77-
},
78-
"extensions": {
79-
"recommendations": [
80-
"streetsidesoftware.code-spell-checker",
81-
"dbaeumer.vscode-eslint",
82-
"gruntfuggly.todo-tree",
83-
"PKief.material-icon-theme",
84-
"SocketSecurity.vscode-socket-security",
85-
"MS-CST-E.vscode-devskim"
86-
]
87-
}
2+
"folders": [
3+
{
4+
"name": "Object ID Converter",
5+
"path": "."
6+
}
7+
],
8+
"settings": {
9+
"window.border": "purple",
10+
"files.exclude": {
11+
"node_modules": true
12+
},
13+
"cSpell.words": [
14+
"camelcase",
15+
"keyvault",
16+
"endregion",
17+
"Entra",
18+
"fluentui",
19+
"Intune",
20+
"MDVM",
21+
"ODATA",
22+
"reduxjs",
23+
"SCIM",
24+
"SSPR",
25+
"Writeback"
26+
],
27+
"cSpell.enabledFileTypes": {
28+
"*": true,
29+
},
30+
"editor.formatOnSave": true,
31+
"editor.bracketPairColorization.enabled": true,
32+
"editor.stickyScroll.enabled": true,
33+
"editor.detectIndentation": false,
34+
"editor.tabSize": 4,
35+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
36+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
37+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
38+
"typescript.format.insertSpaceBeforeFunctionParenthesis": false,
39+
"typescript.format.semicolons": "insert",
40+
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": false,
41+
"typescript.format.insertSpaceAfterTypeAssertion": true,
42+
"typescript.implementationsCodeLens.enabled": true,
43+
"typescript.inlayHints.enumMemberValues.enabled": true,
44+
"typescript.preferences.quoteStyle": "single",
45+
"javascript.preferences.quoteStyle": "single",
46+
"js/ts.implicitProjectConfig.target": "ES2022",
47+
"typescript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true,
48+
"search.exclude": {
49+
"**/*.js": true,
50+
"**/*.js.map": true
51+
},
52+
"files.insertFinalNewline": true,
53+
"files.trimFinalNewlines": true,
54+
"yaml.format.singleQuote": true,
55+
"powershell.codeFormatting.useConstantStrings": true,
56+
"typescript.tsdk": "node_modules\\typescript\\lib",
57+
"eslint.rules.customizations": [
58+
{
59+
"rule": "*",
60+
"severity": "warn"
61+
}
62+
],
63+
"github.copilot.enable": {
64+
"*": false
65+
},
66+
"github.copilot.chat.agent.autoFix": false,
67+
"github.copilot.chat.agent.runTasks": false,
68+
"github.copilot.editor.enableCodeActions": false,
69+
"todo-tree.general.tags": [
70+
"BUG",
71+
"HACK",
72+
"FIXME",
73+
"TODO",
74+
"XXX",
75+
"[ ]",
76+
"[x]",
77+
"* @todo"
78+
]
79+
},
80+
"extensions": {
81+
"recommendations": [
82+
"streetsidesoftware.code-spell-checker",
83+
"dbaeumer.vscode-eslint",
84+
"gruntfuggly.todo-tree",
85+
"PKief.material-icon-theme",
86+
"SocketSecurity.vscode-socket-security",
87+
"MS-CST-E.vscode-devskim"
88+
]
89+
}
8890
}

eslint.config.mjs

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import { eslintConfig } from '@shi-corp/development-utilities'
1+
import { eslintConfig } from '@shi-corp/development-utilities/optimized/lint/base.js'
2+
import { defineConfig } from 'eslint/config'
23

3-
export default [
4-
...eslintConfig,
5-
{
6-
'ignores': [
7-
'bin/',
8-
'dist/',
9-
'eslint.config.mjs'
10-
]
11-
}
12-
]
4+
export default defineConfig(eslintConfig)

0 commit comments

Comments
 (0)