Skip to content
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

Bump the vscode-dependencies group across 1 directory with 5 updates #302

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ root = true
[*]
indent_size = 4
charset = utf-8
end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ updates:
- dependency-name: "@types/node" # Pinned because VS Code uses Node.js v16.
- dependency-name: "chai" # Pinned because v5 is ESM only.
- dependency-name: "sinon-chai" # Pinned because chai@5 is ESM only.
- dependency-name: "eslint" # Pinned because of lack of support for eslint@9.

- package-ecosystem: "nuget"
directory: "/visual-studio"
Expand Down
118 changes: 0 additions & 118 deletions vscode/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion vscode/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"arrowParens": "always",
"endOfLine": "crlf",
"endOfLine": "auto",
"semi": true,
"tabWidth": 4,
"trailingComma": "none",
Expand Down
139 changes: 139 additions & 0 deletions vscode/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
// @ts-check

const eslint = require('@eslint/js');
const jest = require('eslint-plugin-jest');
const jsdoc = require('eslint-plugin-jsdoc');
const n = require('eslint-plugin-n');
const perfectionist = require('eslint-plugin-perfectionist');
const prettier = require('eslint-plugin-prettier/recommended');
const tseslint = require('typescript-eslint');

module.exports = tseslint.config(
{ name: '@eslint/js', ...eslint.configs.recommended },
...tseslint.configs.recommendedTypeChecked,
jsdoc.configs['flat/recommended'],
n.configs['flat/recommended-module'],
{ name: 'prettier', ...prettier },
{
name: 'ignores',
ignores: [
'.vscode-test.mjs',
'.vscode-test',
'dist',
'eslint.config.js',
'out-test',
'webpack.config.js'
]
},
{
name: 'base',
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: __dirname
}
}
},
{
name: 'customizations',
files: ['**/*.ts'],
plugins: {
'@typescript-eslint': tseslint.plugin,
jest,
perfectionist
},
rules: {
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/array-type': ['warn', { default: 'array' }],
'@typescript-eslint/consistent-indexed-object-style': ['warn', 'record'],
'@typescript-eslint/consistent-type-assertions': [
'warn',
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'allow' }
],
'@typescript-eslint/explicit-function-return-type': [
'warn',
{
allowExpressions: true,
allowTypedFunctionExpressions: true,
allowHigherOrderFunctions: true,
allowDirectConstAssertionInArrowFunctions: true,
allowConciseArrowFunctionExpressionsStartingWithVoid: true
}
],
'@typescript-eslint/explicit-member-accessibility': [
'warn',
{
accessibility: 'explicit',
overrides: {
constructors: 'no-public'
}
}
],
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
'@typescript-eslint/prefer-readonly': 'warn',
'@typescript-eslint/promise-function-async': 'warn',
'@typescript-eslint/restrict-template-expressions': 'off',
'perfectionist/sort-imports': [
'warn',
{
groups: [
['builtin-type', 'external-type', 'internal-type'],
'parent-type',
['sibling-type', 'index-type'],
['builtin', 'external', 'internal'],
'parent',
['sibling', 'index', 'object'],
'unknown'
]
}
],
'jest/no-focused-tests': 'warn',
'jsdoc/require-description': ['warn', { checkConstructors: false }],
'jsdoc/require-returns': ['warn', { checkGetters: false }],
'jsdoc/require-returns-check': 'off',
'jsdoc/require-jsdoc': [
'warn',
{
checkGetters: true,
require: {
ArrowFunctionExpression: false,
ClassDeclaration: true,
ClassExpression: true,
FunctionDeclaration: true,
FunctionExpression: true,
MethodDefinition: true
}
}
],
'jsdoc/tag-lines': ['warn', 'never', { startLines: 1 }],
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns-type': 'off',
'n/no-sync': 'error',
'n/no-unpublished-import': 'off',
'n/no-missing-import': 'off',
'n/no-unsupported-features/es-syntax': 'off',
'no-console': 'error',
'prefer-const': 'off'
},
settings: {
jsdoc: {
tagNamePreference: {
class: 'constructor'
},
ignorePrivate: false
}
}
},
{
name: 'tests',
files: ['**/*.test.ts'],
plugins: {
'@typescript-eslint': tseslint.plugin,
jsdoc
},
rules: {
'@typescript-eslint/no-unused-expressions': 'off',
'jsdoc/require-jsdoc': 'off'
}
}
);
Loading