2018-10-20 20:32:02 +08:00
|
|
|
---
|
|
|
|
env:
|
|
|
|
browser: true
|
|
|
|
node: true
|
|
|
|
jest/globals: true
|
|
|
|
es6: true
|
|
|
|
|
|
|
|
parser: babel-eslint
|
|
|
|
|
|
|
|
plugins:
|
|
|
|
- import
|
|
|
|
- react
|
2018-10-30 23:37:42 +08:00
|
|
|
- react-hooks
|
2018-10-20 20:32:02 +08:00
|
|
|
- jest
|
|
|
|
|
|
|
|
extends:
|
|
|
|
- eslint:recommended
|
|
|
|
- plugin:import/errors
|
|
|
|
- plugin:react/recommended
|
|
|
|
|
2018-10-22 11:38:28 +08:00
|
|
|
settings:
|
|
|
|
import/resolver: webpack
|
2018-12-18 22:18:53 +08:00
|
|
|
react:
|
|
|
|
version: "16.7.0-alpha.2"
|
2018-10-20 20:32:02 +08:00
|
|
|
|
|
|
|
# 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"
|
2018-10-30 23:37:42 +08:00
|
|
|
react-hooks/rules-of-hooks: error
|