clash-and-dashboard/.eslintrc.yml
2021-09-21 12:20:43 +08:00

30 lines
1001 B
YAML

extends:
- standard-with-typescript
- react-app
parser: '@typescript-eslint/parser'
parserOptions:
project: './tsconfig.json'
settings:
import/parsers:
'@typescript-eslint/parser': [.ts, .tsx]
import/resolver:
typescript:
alwaysTryTypes: true
rules:
comma-dangle: [error, always-multiline]
import/order: [error, {
groups: [builtin, external, internal, [parent, sibling, index, object]],
newlines-between: always,
alphabetize: { order: asc }
}]
'@typescript-eslint/indent': [error, 4]
'@typescript-eslint/explicit-function-return-type': off
'@typescript-eslint/restrict-template-expressions': off
'@typescript-eslint/strict-boolean-expressions': off
'@typescript-eslint/no-non-null-assertion': off
'@typescript-eslint/consistent-type-assertions': off
'@typescript-eslint/promise-function-async': off
'@typescript-eslint/no-floating-promises': off
'@typescript-eslint/no-invalid-void-type': off
'@typescript-eslint/no-misused-promises': off