mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
chore: update VSCode configuration and ESLint settings (#1462)
- Allow IDE to determine the best formatter based on settings, not force ESLint formatter (which has issues in v9) - Added Prettier extension to VSCode extensions list. - Updated ESLint settings to include working directories for better integration. - Removed redundant TypeScript formatter settings. - Excluded `.next` directory from search results in VSCode settings. - Minor formatting adjustments in ESLint configuration files for consistency. References: https://github.com/microsoft/vscode-eslint/issues/1826
This commit is contained in:
parent
599bb722ca
commit
a96dfaef00
4 changed files with 13 additions and 14 deletions
4
.vscode/extensions.json
vendored
4
.vscode/extensions.json
vendored
|
|
@ -4,7 +4,7 @@
|
||||||
"clinyong.vscode-css-modules",
|
"clinyong.vscode-css-modules",
|
||||||
"streetsidesoftware.code-spell-checker",
|
"streetsidesoftware.code-spell-checker",
|
||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"hossaini.bootstrap-intellisense",
|
"stylelint.vscode-stylelint",
|
||||||
"stylelint.vscode-stylelint"
|
"esbenp.prettier-vscode"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
15
.vscode/settings.json
vendored
15
.vscode/settings.json
vendored
|
|
@ -7,18 +7,17 @@
|
||||||
"source.fixAll.eslint": "always",
|
"source.fixAll.eslint": "always",
|
||||||
"source.fixAll.stylelint": "always"
|
"source.fixAll.stylelint": "always"
|
||||||
},
|
},
|
||||||
"[typescript]": {
|
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
||||||
},
|
|
||||||
"[typescriptreact]": {
|
|
||||||
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
||||||
},
|
|
||||||
"[scss]": {
|
"[scss]": {
|
||||||
"editor.defaultFormatter": "stylelint.vscode-stylelint"
|
"editor.defaultFormatter": "stylelint.vscode-stylelint"
|
||||||
},
|
},
|
||||||
"[css]": {
|
"[css]": {
|
||||||
"editor.defaultFormatter": "stylelint.vscode-stylelint"
|
"editor.defaultFormatter": "stylelint.vscode-stylelint"
|
||||||
},
|
},
|
||||||
|
"eslint.workingDirectories": [
|
||||||
|
{
|
||||||
|
"mode": "auto"
|
||||||
|
}
|
||||||
|
],
|
||||||
"stylelint.validate": ["css", "postcss", "scss"],
|
"stylelint.validate": ["css", "postcss", "scss"],
|
||||||
"cssVariables.lookupFiles": [
|
"cssVariables.lookupFiles": [
|
||||||
"**/*.css",
|
"**/*.css",
|
||||||
|
|
@ -30,6 +29,7 @@
|
||||||
"search.exclude": {
|
"search.exclude": {
|
||||||
"**/node_modules": true,
|
"**/node_modules": true,
|
||||||
"**/bower_components": true,
|
"**/bower_components": true,
|
||||||
|
"**/.next": true,
|
||||||
"**/*.code-search": true,
|
"**/*.code-search": true,
|
||||||
"**/*.map": true,
|
"**/*.map": true,
|
||||||
"**/yarn.lock": true,
|
"**/yarn.lock": true,
|
||||||
|
|
@ -42,6 +42,5 @@
|
||||||
"opamp",
|
"opamp",
|
||||||
"pyimport",
|
"pyimport",
|
||||||
"pyodide"
|
"pyodide"
|
||||||
],
|
]
|
||||||
"typescript.tsdk": "node_modules/typescript/lib"
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,9 @@ export default [
|
||||||
plugins: {
|
plugins: {
|
||||||
'@typescript-eslint': tseslint.plugin,
|
'@typescript-eslint': tseslint.plugin,
|
||||||
'simple-import-sort': simpleImportSort,
|
'simple-import-sort': simpleImportSort,
|
||||||
'prettier': prettierPlugin,
|
prettier: prettierPlugin,
|
||||||
'n': nodePlugin,
|
n: nodePlugin,
|
||||||
'security': securityPlugin,
|
security: securityPlugin,
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
...nodePlugin.configs.recommended.rules,
|
...nodePlugin.configs.recommended.rules,
|
||||||
|
|
@ -96,4 +96,3 @@ export default [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,6 +77,7 @@ export default [
|
||||||
ecmaFeatures: {
|
ecmaFeatures: {
|
||||||
jsx: true,
|
jsx: true,
|
||||||
},
|
},
|
||||||
|
tsconfigRootDir: import.meta.dirname,
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
React: 'readonly',
|
React: 'readonly',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue