eslint-config: upgrade @typescript-eslint

This commit is contained in:
undefined committed 2024-08-03 11:50:36 +08:00
1 parent 1018b3fc91
commit a753260bf3
5 files changed
+260 -25

No files matched your search

+16 -19
View File
@@ -1,6 +1,6 @@
extends:
- airbnb-base
- airbnb-typescript/base
- ./typescript
env:
es6: true
globals:
@@ -23,10 +23,6 @@ rules:
'@typescript-eslint/no-throw-literal': 0
'@typescript-eslint/return-await': 0
comma-dangle:
- 1
- always-multiline
no-implicit-coercion:
- warn
- allow: ["!!", "+"]
@@ -35,15 +31,6 @@ rules:
- enforceForLogicalOperands: true
no-empty-pattern: 0
no-multi-str: 0
'@typescript-eslint/no-invalid-this': 0
'@typescript-eslint/type-annotation-spacing': 1
'@typescript-eslint/indent':
- warn
- 4
'@typescript-eslint/lines-between-class-members':
- error
- always
- exceptAfterSingleLine: true
'@typescript-eslint/naming-convention':
- warn
- selector: default
@@ -90,7 +77,20 @@ rules:
'@typescript-eslint/no-redeclare': 0
'@typescript-eslint/default-param-last': 0
default-param-last: 0
'@typescript-eslint/quotes': ['warn', 'single', { avoidEscape: true }]
'@typescript-eslint/no-invalid-this': 0
'@stylistic/indent':
- warn
- 4
'@stylistic/comma-dangle':
- 1
- always-multiline
'@stylistic/lines-between-class-members':
- error
- always
- exceptAfterSingleLine: true
'@stylistic/quotes': ['warn', 'single', { avoidEscape: true }]
class-methods-use-this: 0
global-require: 0
@@ -134,13 +134,10 @@ rules:
function-paren-newline: 0
simple-import-sort/exports: 0
# Note: must disable the base rule as it can report incorrect errors
no-use-before-define: 0
'@typescript-eslint/no-use-before-define': 1
no-unused-vars: 0
'@typescript-eslint/no-unused-vars':
- error
- caughtErrorsIgnorePattern: "^_"
- caughtErrorsIgnorePattern: "^_|e"
argsIgnorePattern: "^_"
no-restricted-syntax: