Skip to content

Commit

Permalink
feat(deps): update @typescript-eslint/* dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Contains changes to `@typescript-eslint/*` rules and configuration.
  • Loading branch information
mrmckeb committed Mar 5, 2024
1 parent 4efc908 commit 21ca2e9
Show file tree
Hide file tree
Showing 5 changed files with 116 additions and 63 deletions.
9 changes: 8 additions & 1 deletion eslint/rules/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ module.exports = {
*
* 🔧 Fixable - https://typescript-eslint.io/rules/consistent-type-imports/
*/
'@typescript-eslint/consistent-type-imports': 'warn',
'@typescript-eslint/consistent-type-imports': [
'warn',
{
disallowTypeAnnotations: true,
fixStyle: 'inline-type-imports',
prefer: 'type-imports',
},
],
/**
* Require explicit return types on functions and class methods.
*
Expand Down
12 changes: 0 additions & 12 deletions eslint/rules/typescript/strict.js

This file was deleted.

4 changes: 0 additions & 4 deletions eslint/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,14 @@ module.exports = {
{
files: TYPESCRIPT_FILES,
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/strict',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:@typescript-eslint/stylistic',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:import/typescript',
'prettier',
require.resolve('./rules/typescript'),
require.resolve('./rules/typescript/extension'),
require.resolve('./rules/typescript/import'),
require.resolve('./rules/typescript/strict'),
require.resolve('./rules/tsdoc'),
],
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"@babel/core": "^7.24.0",
"@babel/eslint-parser": "^7.23.10",
"@rushstack/eslint-patch": "^1.7.2",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.6.1",
Expand Down
Loading

0 comments on commit 21ca2e9

Please sign in to comment.