yacd/.eslintrc.yml
2020-05-14 22:44:21 +08:00

36 lines
771 B
YAML

---
parser: '@typescript-eslint/parser'
parserOptions:
project: tsconfig.json
sourceType: module
extends:
- 'plugin:@typescript-eslint/recommended'
- 'prettier'
- prettier/@typescript-eslint
- react-app
env:
node: true
jest: true
globals:
__DEV__: true
rules:
'@typescript-eslint/interface-name-prefix': 'off'
'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/camelcase': 'off'
'@typescript-eslint/no-unused-vars':
- 'error'
- { argsIgnorePattern: '^_' }
'@typescript-eslint/no-use-before-define':
- error
- functions: false
react-hooks/rules-of-hooks: error
# quotes: ["error", "single"]
# strict: ["error", "never"]
# no-console: "warn"