2023-09-03 15:30:56 +08:00
|
|
|
parser: '@typescript-eslint/parser'
|
|
|
|
|
|
|
|
parserOptions:
|
|
|
|
ecmaFeatures:
|
|
|
|
jsx: true
|
|
|
|
ecmaVersion: latest
|
|
|
|
sourceType: module
|
|
|
|
|
|
|
|
env:
|
|
|
|
node: true
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
- '@typescript-eslint'
|
2023-09-09 03:00:04 +08:00
|
|
|
- prettier
|
2023-09-03 15:30:56 +08:00
|
|
|
|
|
|
|
extends:
|
|
|
|
- eslint:recommended
|
|
|
|
- plugin:@typescript-eslint/eslint-recommended
|
|
|
|
- plugin:@typescript-eslint/recommended
|
2023-09-09 03:00:04 +08:00
|
|
|
- prettier
|
2023-09-03 15:30:56 +08:00
|
|
|
|
|
|
|
settings:
|
|
|
|
import/resolver:
|
|
|
|
typescript:
|
|
|
|
node: true
|
|
|
|
|
|
|
|
rules:
|
|
|
|
'@typescript-eslint/no-unused-vars':
|
|
|
|
- error
|
|
|
|
- argsIgnorePattern: '^_'
|
|
|
|
|
|
|
|
no-empty: off
|
|
|
|
|
|
|
|
padding-line-between-statements:
|
|
|
|
- error
|
|
|
|
- blankLine: always
|
|
|
|
prev: '*'
|
|
|
|
next: return
|
|
|
|
- blankLine: always
|
|
|
|
prev: '*'
|
|
|
|
next: if
|
|
|
|
- blankLine: always
|
2023-09-09 03:00:04 +08:00
|
|
|
prev: if
|
2023-09-03 15:30:56 +08:00
|
|
|
next: '*'
|
|
|
|
- blankLine: always
|
|
|
|
prev: '*'
|
|
|
|
next: switch
|
|
|
|
- blankLine: always
|
|
|
|
prev: switch
|
|
|
|
next: '*'
|