Skip to content

Commit

Permalink
chore(deps-dev): bump the eslint group with 4 updates (#516)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump the eslint group with 4 updates

Bumps the eslint group with 4 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser), [eslint](https://github.com/eslint/eslint) and [eslint-config-stylelint](https://github.com/stylelint/eslint-config-stylelint).


Updates `@typescript-eslint/eslint-plugin` from 5.5.0 to 7.0.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.2/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 5.30.5 to 7.0.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v7.0.2/packages/parser)

Updates `eslint` from 8.3.0 to 8.56.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](eslint/eslint@v8.3.0...v8.56.0)

Updates `eslint-config-stylelint` from 15.0.0 to 21.0.0
- [Release notes](https://github.com/stylelint/eslint-config-stylelint/releases)
- [Changelog](https://github.com/stylelint/eslint-config-stylelint/blob/main/CHANGELOG.md)
- [Commits](stylelint/eslint-config-stylelint@15.0.0...21.0.0)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: eslint
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: eslint
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: eslint
- dependency-name: eslint-config-stylelint
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: eslint
...

Signed-off-by: dependabot[bot] <[email protected]>

* Replace `eslint-plugin-node` with `eslint-plugin-n` and add `eslint-plugin-jest`

* Fix all ESLint errors

* Fix test failure on `stylelint-resolver.ts`

* Fix ESLint problem on `command-manager.ts`

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <[email protected]>
  • Loading branch information
dependabot[bot] and ybiquitous authored Feb 26, 2024
1 parent d8b99b2 commit fafb23f
Show file tree
Hide file tree
Showing 59 changed files with 1,498 additions and 986 deletions.
19 changes: 10 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/** @type {import('eslint').Linter.Config} */
const config = {
extends: ['stylelint', 'plugin:node/recommended', 'prettier'],
extends: ['stylelint'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
Expand All @@ -14,15 +14,16 @@ const config = {
node: true,
es2020: true,
},
reportUnusedDisableDirectives: true,
rules: {
strict: ['error', 'safe'],
'node/no-missing-require': [
'n/no-missing-require': [
'error',
{ allowModules: ['vscode'], tryExtensions: ['.js', '.json', '.ts'] },
],
'node/no-missing-import': [
'n/no-missing-import': [
'error',
{ allowModules: ['vscode'], tryExtensions: ['.js', '.json', '.ts'] },
{ allowModules: ['vscode'], typescriptExtensionMap: [['.ts', '']] },
],
'require-jsdoc': 'error',
'no-warning-comments': ['warn', { terms: ['todo'], location: 'start' }],
Expand All @@ -39,7 +40,7 @@ const config = {
'no-shadow': 'off',
'no-use-before-define': 'off',
strict: ['error', 'never'],
'node/no-unsupported-features/es-syntax': 'off',
'n/no-unsupported-features/es-syntax': 'off',
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
'@typescript-eslint/explicit-module-boundary-types': ['error'],
'@typescript-eslint/no-shadow': ['error'],
Expand All @@ -58,15 +59,15 @@ const config = {
files: ['**/*.d.ts'],
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'node/no-unpublished-import': 'off',
'n/no-unpublished-import': 'off',
},
},
{
files: ['**/__tests__/**/*', '**/__mocks__/**/*', 'test/**/*'],
plugins: ['jest'],
extends: ['stylelint/jest'],
rules: {
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
'n/no-unpublished-require': 'off',
'n/no-unpublished-import': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/require-await': 'off',
Expand Down
2 changes: 1 addition & 1 deletion __mocks__/vscode-languageserver/node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TracerFn } from '../../src/utils/packages';
import type { TracerFn } from '../../src/utils/packages/index';

const nodeLSP = jest.createMockFromModule<tests.mocks.VSCodeLanguageServerModule.Node>(
'vscode-languageserver/node',
Expand Down
Loading

0 comments on commit fafb23f

Please sign in to comment.