2018-10-20 20:32:02 +08:00
|
|
|
---
|
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
node: true
|
|
|
|
jest/globals: true
|
|
|
|
es6: true
|
|
|
|
|
|
|
|
parser: babel-eslint
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
- import
|
2018-10-30 23:37:42 +08:00
|
|
|
- react-hooks
|
2018-10-20 20:32:02 +08:00
|
|
|
- jest
|
|
|
|
|
|
|
|
extends:
|
2019-03-28 21:43:11 +08:00
|
|
|
- react-app
|
2018-10-20 20:32:02 +08:00
|
|
|
- eslint:recommended
|
|
|
|
- plugin:import/errors
|
|
|
|
|
2018-10-22 11:38:28 +08:00
|
|
|
settings:
|
|
|
|
import/resolver: webpack
|
2018-10-20 20:32:02 +08:00
|
|
|
|
2019-12-26 18:50:45 +08:00
|
|
|
globals:
|
|
|
|
__DEV__: true
|
2018-10-20 20:32:02 +08:00
|
|
|
# Promise: true
|
|
|
|
|
|
|
|
rules:
|
|
|
|
quotes: ["error", "single"]
|
|
|
|
strict: ["error", "never"]
|
|
|
|
no-console: "warn"
|
2018-10-30 23:37:42 +08:00
|
|
|
react-hooks/rules-of-hooks: error
|