yacd/.eslintrc.yml
Haishan 7f75345c03 refactor(chart): lazy load Chart.js with suspense
- chore: add ico favicon
- chore: lint
- chore: add react-hooks lint rules
2018-11-03 23:06:16 +08:00

34 lines
527 B
YAML

---
env:
browser: true
node: true
jest/globals: true
es6: true
parser: babel-eslint
plugins:
- import
- react
- react-hooks
- jest
extends:
- eslint:recommended
- plugin:import/errors
- plugin:react/recommended
settings:
import/resolver: webpack
# globals:
# Promise: true
rules:
quotes: ["error", "single"]
strict: ["error", "never"]
no-console: "warn"
react/jsx-uses-react: "error"
react/jsx-uses-vars: "error"
react/react-in-jsx-scope: "error"
react-hooks/rules-of-hooks: error